public void UpdateAnimStates() { AnimEngine.Update(); if (CurrentAnimState.IsFinished()) { CurrentAnimState.OnDeactivate(); CurrentAnimState = DefaultAnimState; CurrentAnimState.OnActivate(null); } CurrentAnimState.Update(); }
public void Update(uint elapsed) { if (!mHasSetup) { return; } if (mAnimManager != null) { mAnimManager.Update(); } //更新状态 foreach (AnimFSM fsm in mAnimStates) { fsm.UpdateAnimStates(); } }