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