void PlayerJump(PlayerInput playerInput) { playerInput.isHighJump = true; playerInput.isJumping = true; trampolineAnimatable.Bounce(); SoundManager.Instance.Play(AudibleNames.Trampoline.BOUNCE, false); if (lampManager != null) { lampManager.Refresh(); } }
IEnumerator PlayerJump(PlayerInput playerInput) { playerInput.isHighJump = true; playerInput.isJumping = true; this.isActivated = false; // playerInput.Move (); trampolineAnimatable.Bounce(); while (trampolineAnimatable.IsPlaying()) { yield return(null); } Debug.Log("BOUNCE EXIT"); if (lampManager != null) { lampManager.Refresh(); } }