Пример #1
0
        /// <summary>
        /// Initialize and create an instance of the callbacks manager
        /// </summary>
        public static void CreateAndInitialize()
        {
            if (_instance == null)
            {
                _instance = GameObject.FindObjectOfType <UCCallbacksManager>();

                if (_instance == null)
                {
                    GameObject go = new GameObject();
                    _instance         = go.AddComponent <UCCallbacksManager>();
                    go.transform.name = "uConstructCallbacksManager";
                }
            }
        }
Пример #2
0
        /// <summary>
        /// Assign instance and start thread.
        /// </summary>
        void Awake()
        {
            _instance = this;

            ThreadManager.StartThread();
        }