public void Reset() { if (!CurrentAnimState.IsFinished()) { CurrentAnimState.SetFinished(true); CurrentAnimState.Reset(); } }
public void UpdateAnimStates() { AnimEngine.Update(); if (CurrentAnimState.IsFinished()) { CurrentAnimState.OnDeactivate(); CurrentAnimState = DefaultAnimState; CurrentAnimState.OnActivate(null); } CurrentAnimState.Update(); }