예제 #1
0
 private void Init()
 {
     titleContent = new GUIContent("Builder");
     minSize      = new Vector2(300f, 400f);
     _config      = _config ?? new BuilderConfig();
     GameConfig.Load();
 }
예제 #2
0
        private void Init()
        {
            //titleContent = new GUIContent("Builder");
            minSize = new Vector2(300f, 400f);

            /**
             * 空合并运算符(??):
             * 用于定义可空类型和引用类型的默认值。如果此运算符的左操作数不为null,则此运算符将返回左操作数,否则返回右操作数。
             * 例如:a??b 当a为null时则返回b,a不为null时则返回a本身。
             * 空合并运算符为右结合运算符,即操作时从右向左进行组合的。如,“a??b??c”的形式按“a??(b??c)”计算
             **/
            _config = _config ?? new BuilderConfig();
            GameConfig.Load();
        }
예제 #3
0
        //private DebugView mDebugView;
        //public DebugView DebugView{ get { return mDebugView; }}

        #region MonoBehaviour
        void Awake()
        {
            isRunning = true;
            GameConfig.Load();
            initLogFile();
            //初始化Platform,主要是插件相关
            initGamePlatform();

            ObjPools.Init();

            mCorMgr = GameCoroutineManager.Instance;
            mResMgr = ResManager.Instance;
            mLuaMgr = GameLuaManager.Instance;
            //mUpMgr = GameUpdateManager.Instance;
            mUiMgr = GameUIManager.Instance;
        }
예제 #4
0
        //private DebugView mDebugView;
        //public DebugView DebugView{ get { return mDebugView; }}

        #region MonoBehaviour
        void Awake()
        {
            AppVer = Application.version;

            isRunning = true;
            GameConfig.Load();
            _initLogFile();
            //初始化Platform,主要是插件相关
            _initGamePlatform();

            ObjPools.Init();

            mCorMgr = CoroutineMgr.Instance;
            mResMgr = ResManager.Instance;
            mLuaMgr = LuaMgr.Instance;
            //mUpMgr = GameUpdateManager.Instance;
            mUiMgr = UIMgr.Instance;
        }