Пример #1
0
 private void OnValidate()
 {
     if (_manager == null)
     {
         _manager = FindObjectOfType <ObjectsManager>();
     }
 }
Пример #2
0
 void Awake()
 {
     if (_manager == null)
     {
         _manager = FindObjectOfType <ObjectsManager>();
     }
 }