示例#1
0
        //--------------------------------------
        //  Methods
        //--------------------------------------
        private void Instantiate()
        {
            Type type     = _singletonMonoBehaviour.GetType();
            var  instance = GameObject.FindObjectOfType(type);

            if (instance == null)
            {
                SingletonMonoBehaviour singletonMonoBehaviour = Instantiate(_singletonMonoBehaviour, _parentTransform);
            }
        }