UnityEngine.Networking.NetworkAnimator.SetParameterAutoSend C# (CSharp) Method

SetParameterAutoSend() public method

public SetParameterAutoSend ( int index, bool value ) : void
index int
value bool
return void
        public void SetParameterAutoSend(int index, bool value)
        {
            if (value)
            {
                this.m_ParameterSendBits |= ((uint) 1) << index;
            }
            else
            {
                this.m_ParameterSendBits &= (uint) ~(((int) 1) << index);
            }
        }

Usage Example

コード例 #1
0
ファイル: Humanoid.cs プロジェクト: OlivierBeaudet/laboratory
 void Start()
 {
     if (!isLocalPlayer) return;
     animator = GetComponent<Animator>();
     networkAnimator = GetComponent<NetworkAnimator>();
     networkAnimator.SetParameterAutoSend(0, true);
     networkAnimator.SetParameterAutoSend(1, true);
     networkAnimator.SetParameterAutoSend(2, true);
     networkAnimator.SetParameterAutoSend(3, true);
     networkAnimator.SetParameterAutoSend(4, true);
     Camera.main.GetComponent<OrbitControls>().target = transform;
 }