Exemplo n.º 1
0
    // Updating first state from server
    public void RemoteStateUpdate(string message)
    {
        BaseAnimationState state = (BaseAnimationState)Enum.Parse(typeof(AnimationSynchronizer.BaseAnimationState), message);

        this.baseState = state;
        UpdateAnimation();
    }
Exemplo n.º 2
0
 // Settin first state
 void SetAnimationState(BaseAnimationState state)
 {
     if (state != this.baseState)
     {
         this.baseState = state;
         NetworkManager.Instance.SendAnimationState(state.ToString(), 0);
     }
 }
Exemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     animationState_           = GetComponent <BaseAnimationState>();
     animationState_.Animation = this;
     anim = GetComponent <Animator>();
 }
 // Updating first state from server
 public void RemoteStateUpdate(string message)
 {
     BaseAnimationState state = (BaseAnimationState)Enum.Parse(typeof(AnimationSynchronizer.BaseAnimationState), message);
     this.baseState = state;
     UpdateAnimation();
 }
 // Settin first state
 void SetAnimationState(BaseAnimationState state)
 {
     if (state!=this.baseState) {
         this.baseState = state;
         NetworkManager.Instance.SendAnimationState(state.ToString(), 0);
     }
 }
Exemplo n.º 6
0
 //アニメーションステートのセット
 public void SetAnimation(BaseAnimationState animation)
 {
     animation = this;
 }