Пример #1
0
 private void OnDestroy()
 {
     if (Prefabs.Instance == this)
     {
         Prefabs.Instance = null;
     }
 }
Пример #2
0
 private void Awake()
 {
     Prefabs.Instance = this;
 }
Пример #3
0
 private void Awake()
 {
     Prefabs.Instance = this;
 }