private void GameOverMenu_EventTriggered(PlayerAnimationEvents.EventType type) { if (type == PlayerAnimationEvents.EventType.FinishedDeath) { _animator.SetTrigger("Show"); } }
private void VictoryActivator_EventTriggered(PlayerAnimationEvents.EventType type) { if (type == PlayerAnimationEvents.EventType.FinishedVictory) { _victorScreenAnimator.enabled = true; } }
private void _events_EventTriggered(PlayerAnimationEvents.EventType type) { switch (type) { case PlayerAnimationEvents.EventType.OpenStrikeWindow: _weapon.BeginAttack(); break; case PlayerAnimationEvents.EventType.CloseStrikeWindow: _weapon.EndAttack(); break; } }