public override void OnEnter(ActorObj actor) { if (null == actor) { return; } m_actor = actor; m_actor.GetDownHorse(); m_actor.PlayAction("open"); CancelInvoke("AutoExitState"); float lastTime = m_actor.GetActionLength("open"); Invoke("AutoExitState", lastTime); }