Beispiel #1
0
 void SetAnimatorState(HillsAnimationState state)
 {
     foreach (Animator an in hillAnimators)
     {
         an.SetInteger("State", (int)state);
     }
 }
Beispiel #2
0
        IEnumerator CheckStatusCO()
        {
            HillsAnimationState oldState = hillsData.GetState();

            while (true)
            {
                mediator.SetAnimStateFromGameStatus(hillsData);

                if (oldState != hillsData.GetState())
                {
                    oldState = hillsData.GetState();
                    SetAnimatorState(oldState);
                }

                yield return(new WaitForSeconds(0.1f));
            }
        }
 public void SetState(HillsAnimationState state)
 {
     data.state = state;
 }