Esempio n. 1
0
 public void Go()
 {
     //Log.GUI("This demo is code by Jing");
     GUIDeviceInfo.Show();
     UIPanelMgr.Ins.SwitchASync <MenuPanel>();
     //播放背景音乐
     AudioDevice.Get("bgm").Play(ResMgr.Ins.Load <AudioClip>("audios/bgm"), true);
 }
Esempio n. 2
0
        public static void Main()
        {
            Global.Ins.defaultResolution.x = Screen.width;
            Global.Ins.defaultResolution.y = Screen.height;
            Global.Ins.RefreshConfig();

            DOTween.defaultEaseType = Ease.Linear;
            DOTween.Init();
            UIPanelMgr.Ins.Init(GameObject.Find("UIPanel").transform);
            StageMgr.Ins.Init(GameObject.Find("Stage").transform);
            UIWinMgr.Ins.Init(GameObject.Find("UIWin").transform);
            RegistViews();

            if (Debug.isDebugBuild)
            {
                GUIDeviceInfo.Show();
            }

            Global.Ins.audioDevice = AudioDevice.Get("music");

            UIPanelMgr.Ins.SwitchASync <MenuPanel>();
        }
Esempio n. 3
0
        public static void Main()
        {
            new ScreenChecker();
            DOTween.defaultEaseType = Ease.Linear;
            DOTween.Init();
            Application.targetFrameRate = 60;
            UIPanelMgr.Ins.Init(GameObject.Find("UIPanel").transform);
            StageMgr.Ins.Init(GameObject.Find("Stage").transform);
            UIWinMgr.Ins.Init(GameObject.Find("UIWin").transform);
            RegistViews();
            Global.Ins.menu.ShowMenu();

            Global.Ins.bgmDevice    = AudioDevice.Create("Bgm");
            Global.Ins.effectDevice = AudioDevice.Create("Effect");

            Global.Ins.bgmDevice.Play(ResMgr.Ins.Load <AudioClip>("hot_res/audios/bgm"));

            if (Debug.isDebugBuild)
            {
                GUIDeviceInfo.Show();
            }
        }
Esempio n. 4
0
 public void Go()
 {
     //Log.GUI("This demo is code by Jing");
     GUIDeviceInfo.Show();
     UIPanelMgr.Ins.SwitchASync <MenuPanel>();
 }