Ejemplo n.º 1
0
 public void ActivateJumpPad()
 {
     Debug.Log("Activating jump pad!");
     jumppadState = JumpPadState.ON;
     LeanTween.move(fakePad, Vector3.up * 10f, 1.5f).setEaseInSine().setLoopOnce();
     StartCoroutine(DeactivateJumpPad(0.5f));
 }
Ejemplo n.º 2
0
    IEnumerator DeactivateJumpPad(float delay)
    {
        yield return(new WaitForSeconds(delay));

        jumppadState = JumpPadState.OFF;
    }