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); }
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>(); }
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(); } }
public void Go() { //Log.GUI("This demo is code by Jing"); GUIDeviceInfo.Show(); UIPanelMgr.Ins.SwitchASync <MenuPanel>(); }