//-------------------------------------- // Methods //-------------------------------------- private void Instantiate() { Type type = _singletonMonoBehaviour.GetType(); var instance = GameObject.FindObjectOfType(type); if (instance == null) { SingletonMonoBehaviour singletonMonoBehaviour = Instantiate(_singletonMonoBehaviour, _parentTransform); } }