예제 #1
0
    public override void Enter()
    {
        base.Enter();

        m_automaton    = stateMachine.automaton;
        m_physics      = m_automaton.physics;
        m_inputManager = stateMachine.automaton.inputManager;

        // Necessary to keep track of history.
        SaveToHistory();
    }
예제 #2
0
    public override void Enter()
    {
        base.Enter();

        m_automaton = stateMachine.automaton;
        int direction = m_automaton.inputManager.movePos > 0 ? 1 : -1;

        m_automaton.physics.direction = direction;

        m_inputManager = stateMachine.automaton.inputManager;

        // Necessary to keep track of history.
        SaveToHistory();
    }