Esempio n. 1
0
    private void OnTriggerStay2D(Collider2D other)
    {
        Jump playerController = other.GetComponent <Jump>();

        if (playerController != null)
        {
            if (playerController.health > 0)
            {
                playerController.ChangeHealth(-1);
            }
        }
    }