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