Exemple #1
0
    protected override void OnTriggerEnter2D(Collider2D other)
    {
        RPGPlayer player = other.gameObject.GetComponent <RPGPlayer>();

        if (player != null)
        {
            player.Heal(Healing);
        }
        base.OnTriggerEnter2D(other);
    }