Пример #1
0
    // OnStateEnter is called when a transition starts and the state machine starts to evaluate this state
    override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    {
        m_RoleController = RoleController.thisScript;

        m_RoleController.m_curPlayerState = PLAYER_STATE.Hit;
        m_RoleController.ChangeToMoveState(stateInfo.length);
    }