Пример #1
0
 //stop listening to feed the dog
 private void OnDestroy()
 {
     _feedSignal.Unlisten(increaseSize);
     _restartSignal.Unlisten(setup);
 }
Пример #2
0
 private void OnDestroy()
 {
     _deadSignal.Unlisten(stopCreation);
     _restartSignal.Unlisten(startCreation);
 }