private void Awake() { DamageReceiver receiver = GetComponent <DamageReceiver>(); receiver.OnDeath += OnObjectDestoyed; }
private void Awake() { damageReceiver = GetComponent <DamageReceiver>(); damageReceiver.OnDeath += OnObjectDestroed; TagCollector.RegistryTag(gameObject.tag, this); }