Ejemplo n.º 1
0
    void OnTriggerEnter2D(Collider2D col)
    {
        if (col.gameObject.name == "Player")
        {
            PlayerMove playerMove = col.gameObject.GetComponent <PlayerMove> ();

            if (playerMove != null)
            {
                playerMove.ApplyJumpBoost(boostedJumpForce, boostDuration);

                GameObject.Destroy(gameObject);
            }
        }
    }