protected override void OnEnter(IFsm <ActorBase> fsm) { base.OnEnter(fsm); InteractiveCommand ev = m_Command as InteractiveCommand; if (ev.LastTime > 0) { GameEntry.Timer.Register(ev.LastTime, Break); } m_Owner.OnInteractive(ev); }
/// <summary> /// 交互 /// </summary> /// <param name="ev"></param> public void OnInteractive(InteractiveCommand ev) { StopPathFinding(); Action callback = delegate() { GotoEmptyFsm(); ev.OnFinish?.Invoke(); }; m_AnimController.Play(ev.AnimName, callback, false); }