示例#1
0
        public void Initialize(FSMController controller)
        {
            _controller = controller;

            if (_action != null)
            {
                _action.Initialize(controller);
            }
            for (int i = 0; i < _transitions.Count; i++)
            {
                _transitions[i].Condition.Initialize(controller);
            }
        }
示例#2
0
文件: FSM.cs 项目: Venbb/VGame
 public FSMState(FSMController ctrl)
 {
     this.ctrl = ctrl;
 }
示例#3
0
 public virtual void Initialize(FSMController controller)
 {
     Controller = controller;
 }