Beispiel #1
0
 /// <summary>
 /// 플레이어가 한번 점프한 상태
 /// </summary>
 public void PlayerStateJump()
 {
     m_positionState = PLAYER_STATE_POSITION.PLAYER_POSITION_AIR;
     m_jumpState     = PLAYER_STATE_JUMP.PLAYER_STATE_JUMP;
     if (m_actionState != PLAYER_STATE_ACTION.PLAYER_STATE_ATTACK)
     {
         m_actionState = PLAYER_STATE_ACTION.PLAYER_STATE_JUMP;
     }
 }
Beispiel #2
0
 /// <summary>
 ///플레이어 상태 초기화
 /// </summary>
 public void PlayerStateReset()
 {
     m_positionState = PLAYER_STATE_POSITION.PLAYER_POSITION_GROUND;
     m_jumpState     = PLAYER_STATE_JUMP.PLAYER_STATE_NONEJUMP;
     m_actionState   = PLAYER_STATE_ACTION.PLAYER_STATE_STAND;
 }
Beispiel #3
0
 /// <summary>
 /// 플레이어가 떨어짐(공격 불가능)
 /// </summary>
 public void PlayerStateFalling()
 {
     m_positionState = PLAYER_STATE_POSITION.PLAYER_POSITION_AIR;
     m_jumpState     = PLAYER_STATE_JUMP.PLAYER_STATE_JUMP;
     m_actionState   = PLAYER_STATE_ACTION.PLAYER_STATE_JUMP;
 }
Beispiel #4
0
 /// <summary>
 /// 플레이어가 두번 점프한 상태
 /// </summary>
 public void PlayerStateDoubleJump()
 {
     m_positionState = PLAYER_STATE_POSITION.PLAYER_POSITION_AIR;
     m_jumpState     = PLAYER_STATE_JUMP.PLAYER_STATE_DOUBLEJUMP;
     m_actionState   = PLAYER_STATE_ACTION.PLAYER_STATE_JUMP;
 }