Example #1
0
    void BeginPlayerState(TrashPlayerState state)
    {
        switch (state)
        {
        case TrashPlayerState.None:
        {
            break;
        }

        case TrashPlayerState.Powering_Up:
        {
            SetAnimationState(state.ToString(), true, false);
            break;
        }

        case TrashPlayerState.Hitting:
        {
            SetAnimationTrigger(state.ToString());
            break;
        }
        }
    }
Example #2
0
    void EndPlayerState(TrashPlayerState state)
    {
        switch (state)
        {
        case TrashPlayerState.None:
        {
            break;
        }

        case TrashPlayerState.Powering_Up:
        {
            SetAnimationState(state.ToString(), false, false);
            break;
        }

        case TrashPlayerState.Hitting:
        {
            break;
        }
        }
    }