예제 #1
0
파일: Tag.cs 프로젝트: alex512mb/bomberman
 private void OnObjectDestroed()
 {
     damageReceiver.OnDeath -= OnObjectDestroed;
     TagCollector.UnregistryTag(gameObject.tag, this);
 }
예제 #2
0
파일: Tag.cs 프로젝트: alex512mb/bomberman
 private void Awake()
 {
     damageReceiver          = GetComponent <DamageReceiver>();
     damageReceiver.OnDeath += OnObjectDestroed;
     TagCollector.RegistryTag(gameObject.tag, this);
 }