Esempio n. 1
0
    void SendDamage(HealthComponent healtComp)
    {
        healtComp.SendMessage("TakeDamage", GetWeaponDamage(), SendMessageOptions.DontRequireReceiver);

        if (gameObject.tag == "EnemyProjectile")
        {
            Destroy(gameObject);
        }
    }