Esempio n. 1
0
        private void Awake()
        {
            DamageReceiver receiver = GetComponent <DamageReceiver>();

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