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