Ejemplo n.º 1
0
        void Awake()
        {
            Instance = this;
            var sceneId = WorldManager.worldManager.GetActive().def.id;

            Log.Sys("Inital SceneId Layout " + sceneId);
            LevelConfigData.Init();
            configLists = LevelConfigData.LevelLayout [sceneId];
            Log.Sys("ConfigList " + configLists.Count);
        }
Ejemplo n.º 2
0
        void Awake()
        {
            Instance = this;
            var sceneId = WorldManager.worldManager.GetActive().def.id;
            var active  = WorldManager.worldManager.GetActive();

            if (active.IsNet && !active.IsMatch)
            {
                //服务器推送的房间随机配置Id
                zoneId = NetMatchScene.Instance.roomInfo.LevelId;
            }

            Log.Sys("Inital SceneId Layout " + sceneId);
            MobaLevelConfigData.Init();
            configLists = MobaLevelConfigData.LevelLayout [sceneId];
            Log.Sys("ConfigList " + configLists.Count);
        }