Example #1
0
        private void Awake()
        {
            if (null == sInstance)
            {
                sInstance = this;
                if (mTasks == null)
                {
                    mTasks = new Queue <ITask>();
                }
                if (mLateTasks == null)
                {
                    mLateTasks = new Queue <ITask>();
                }
#if UNITY_EDITOR
                if (Application.isPlaying)
#endif
                DontDestroyOnLoad(gameObject);
                sInitilized = true;
            }
        }