void PauseWaypoints() { if (IsWayPointPaused == false) //only want this to happen once per state change not once per frame { WaypointScript.Pause(); IsWayPointPaused = true; } }
// Update is called once per frame public IEnumerator WaveCoroutine() { nav.Pause(); anim.Play("Wave"); yield return(new WaitForSeconds(3)); anim.CrossFade("Grounded", 0.5f); yield return(new WaitForSeconds(1)); nav.Resume(); }