Esempio n. 1
0
 public void Reset()
 {
     if (!CurrentAnimState.IsFinished())
     {
         CurrentAnimState.SetFinished(true);
         CurrentAnimState.Reset();
     }
 }
Esempio n. 2
0
    public void UpdateAnimStates()
    {
        AnimEngine.Update();

        if (CurrentAnimState.IsFinished())
        {
            CurrentAnimState.OnDeactivate();
            CurrentAnimState = DefaultAnimState;
            CurrentAnimState.OnActivate(null);
        }
        CurrentAnimState.Update();
    }