Ejemplo n.º 1
0
 void OnDestroy()
 {
     DeathEvent.UnregisterListener(OnDeath);
 }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     DeathEvent.RegisterListener(OnDeath);
 }