Beispiel #1
0
        public void CreateBlock()
        {
            var ac = ResMgr.Ins.Load <AudioClip>("audios.ab", "click");

            AudioDevice.Get("effect").Play(gameObject, ac);
            //以异步方式创建Block
            ViewFactory.CreateAsync <Block>(AssetBundleName.PREFABS_STAGES_GAMESTAGE, "Block", _blocks, null, OnCreatedBlock, OnProgressBlock, OnLoadedBlock);
        }
Beispiel #2
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);
 }
Beispiel #3
0
        public void CreateBlock()
        {
            var ac = ResMgr.Ins.Load <AudioClip>("hot_res/audios.ab", "click");

            AudioDevice.Get("effect").Play(gameObject, ac);
            //以异步方式创建Block
            ViewFactory.CreateAsync <Block>("hot_res/prefabs/stages/gamestage.ab", "Block", _blocks, null, OnCreatedBlock, OnProgressBlock, OnLoadedBlock);
        }
Beispiel #4
0
        public void CreateBlock()
        {
            var ac = ResMgr.Ins.Load <AudioClip>("audios.ab", "click");

            AudioDevice.Get("effect").Play(gameObject, ac);
            //以异步方式创建Block
            ViewFactory.CreateAsync <Block>(AB.ROUSHAN.NAME, AB.ROUSHAN.Block, _blocks, null, OnCreatedBlock, OnProgressBlock, OnLoadedBlock);
            //ViewFactory.Create<Block>(_blocks);
        }
Beispiel #5
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>();
        }