Exemplo n.º 1
0
    protected override void Regenerate(Transform player)
    {
        HealthController health = player.GetComponent <HealthController>();

        if (health != null)
        {
            health.Add(regenarationValue);
            Destroy(this.gameObject);
        }
    }