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; } } }
void EndPlayerState(TrashPlayerState state) { switch (state) { case TrashPlayerState.None: { break; } case TrashPlayerState.Powering_Up: { SetAnimationState(state.ToString(), false, false); break; } case TrashPlayerState.Hitting: { break; } } }