void PlayerJump(PlayerInput playerInput)
    {
        playerInput.isHighJump = true;
        playerInput.isJumping  = true;

        trampolineAnimatable.Bounce();
        SoundManager.Instance.Play(AudibleNames.Trampoline.BOUNCE, false);
        if (lampManager != null)
        {
            lampManager.Refresh();
        }
    }
Пример #2
0
    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();
        }
    }