private void StartDashing() { DashState = DashStateType.Dashing; playerAnimator.Play(GetDashAnimation()); AudioManager.Instance.PlaySound(AudioManager.SoundTypes.PlayerDash); }
public void CancelDash() { DashState = DashStateType.Nothing; AudioManager.Instance.StopSound(AudioManager.SoundTypes.PlayerDash); }
void Awake() { this.playerAnimator = this.GetComponent <Animator>(); this.player = this.GetComponent <Player>(); DashState = DashStateType.Nothing; }
public void IgniteDash() { // begin prepping prepTimer = 0; this.DashState = DashStateType.Preparing; }