Ejemplo n.º 1
0
 private void ConvertStateIfNeed(PlayerBase.State arg_playerState, IPhantomState arg_phantomState)
 {
     if (IsSameState(arg_playerState, m_phantom.GetCurrentState()))
     {
         return;
     }
     m_phantom.StateTransition(arg_phantomState);
 }
Ejemplo n.º 2
0
 public void StateTransition(IPhantomState arg_nextPhase)
 {
     m_currentState.OnExit(this);
     m_currentState = arg_nextPhase;
     m_currentState.OnEnter(this);
 }
Ejemplo n.º 3
0
 public void Initialize()
 {
     m_speed        = 0.5f;
     m_currentState = new PhantomMove();
     m_currentState.OnEnter(this);
 }