protected void registerHandler() { ModuleHandleItem item; item = new ModuleHandleItem(); item.m_loadEventHandle = onLoginLoadEventHandle; item.m_moduleID = ModuleID.LOGINMN; item.m_moduleLayerPath = ModulePath.LOGINMN; item.m_path = string.Format("{0}{1}{2}", Ctx.m_instance.m_cfg.m_pathLst[(int)ResPathType.ePathModule], ModuleName.LOGINMN, ".prefab"); m_type2ItemDic[item.m_moduleID] = item; item = new ModuleHandleItem(); item.m_loadEventHandle = onGameLoadEventHandle; item.m_moduleID = ModuleID.GAMEMN; item.m_moduleLayerPath = ModulePath.GAMEMN; item.m_path = string.Format("{0}{1}{2}", Ctx.m_instance.m_cfg.m_pathLst[(int)ResPathType.ePathModule], ModuleName.GAMEMN, ".prefab"); m_type2ItemDic[item.m_moduleID] = item; item = new ModuleHandleItem(); item.m_loadEventHandle = onAutoUpdateLoadEventHandle; item.m_moduleID = ModuleID.AUTOUPDATEMN; item.m_moduleLayerPath = ModulePath.AUTOUPDATEMN; item.m_path = string.Format("{0}{1}{2}", Ctx.m_instance.m_cfg.m_pathLst[(int)ResPathType.ePathModule], ModuleName.AUTOUPDATEMN, ".prefab"); m_type2ItemDic[item.m_moduleID] = item; }