Exemplo n.º 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);
        }
Exemplo n.º 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);
 }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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>();
        }