Пример #1
0
 void OnDestroy()
 {
     MonoBehaviourManager.Remove(this);
 }
Пример #2
0
 void OnEnable()
 {
     MonoBehaviourManager.Add(this);
 }