Exemplo n.º 1
0
    public void TransitionToIdle()
    {
        if (SelectedProgrammer != null)
        {
            var state = PlayingAnimator.GetBehaviour <IdleState>();
            state.ReserveSetSelectedObject(SelectedProgrammer.gameObject);
        }

        PlayingAnimator.SetStateBool(StateParameter.Pause, false);
    }
Exemplo n.º 2
0
    public void TransitionToPauseState()
    {
        var state = PlayingAnimator.GetBehaviour <PauseState>();

        if (SelectedObject != null)
        {
            state.SelectedProgrammer = SelectedObject.GetComponent <Programmer>();
        }

        PlayingAnimator.SetStateBool(StateParameter.Pause, true);
    }