private void OnValidate() { if (_manager == null) { _manager = FindObjectOfType <ObjectsManager>(); } }
void Awake() { if (_manager == null) { _manager = FindObjectOfType <ObjectsManager>(); } }