Beispiel #1
0
        public bool Startup()
        {
            Input.multiTouchEnabled = true;

            LocalCache.LoadCache();
            LocalData.Generate();
            Lang.Load();

            AudioManager.MuteAllAudio(true);

            foreach (var Entity in UIConfigure.UIList)
            {
                LiteConfigure.UIDescList.Add(Entity.Key, Entity.Value);
            }

            if (!CombatManager.Startup() || !PlayerManager.Startup())
            {
                return(false);
            }

            AudioManager.PlayMusic(new AssetUri("audio/bgm_titan.mp3"), true, 0.5f);

            TestSkill();
            //PlayerManager.CreateMainEmitter();
            //WaveManager.LoadWave((uint)PlayerManager.Player.Wave);

            LuaRuntime.ExecuteMainLuaFile("main");
            return(true);
        }