private void Awake() { if (_instance == null) { _instance = this; DontDestroyOnLoad(this); } else { Destroy(this); } }
private void Awake() { if (_instance == null) { _instance = this; DontDestroyOnLoad(this); } else { Destroy(this); } if (!_objectLoadersPool.initialized) { _objectLoadersPool.Initialize(10); } }