Exemple #1
0
 private void OnValidate()
 {
     if (_manager == null)
     {
         _manager = FindObjectOfType <ObjectsManager>();
     }
 }
Exemple #2
0
 void Awake()
 {
     if (_manager == null)
     {
         _manager = FindObjectOfType <ObjectsManager>();
     }
 }