Beispiel #1
0
        public static void Open()
        {
#if LOG_DEBUG
#if UNITY_EDITOR
            UnityEngine.Debug.Log(string.Format("SINGLETON:OPEN:{0}", typeof(T)));
#endif // UNITY_EDITOR
#endif // LOG_DEBUG
            InternalSingleton <T> .Close();

            var instance = new T();
            InternalSingleton <T> .instance = instance;
            InternalSingleton <T> .instance.OpenSingleton();
        }
Beispiel #2
0
        public new static void Close()
        {
            InternalSingleton <T> .Close();

            ManagedSingletonDisposer.Remove <T>();
        }