示例#1
0
文件: Ship.cs 项目: hyakugei/Zenject
        public void ChangeState(EShipState state, params object[] constructorArgs)
        {
            if (_state != null)
            {
                _state.Stop();
            }

            _state = _stateFactory.Create(state, constructorArgs);
            _state.Start();
        }
示例#2
0
        public void ChangeState(ShipStates state, params object[] constructorArgs)
        {
            if (_state != null)
            {
                _state.Stop();
            }

            _state = _stateFactory.Create(state, constructorArgs);
            _state.Start();
        }
示例#3
0
文件: Ship.cs 项目: hyakugei/Zenject
 public void Start()
 {
     _state = _stateFactory.Create(EShipState.WaitingToStart, this);
 }
示例#4
0
 public void Initialize()
 {
     _state = _stateFactory.Create(ShipStates.WaitingToStart, this);
     _hooks.TriggerEnter += OnTriggerEnter;
 }
示例#5
0
 public void Initialize()
 {
     _state = _stateFactory.Create(ShipStates.WaitingToStart, this);
     _hooks.TriggerEnter += OnTriggerEnter;
 }