Example #1
0
    public static void Shake(string name, float _time, float scale, float speed)
    {
        AssetInfo infor = null;

        if (!assetList.TryGetValue(name, out infor))
        {
            //"effect_zhenping_zuoyou"
            //"effect_zhenping_shangxia"
            //"effect_zhenping_yuanquan"
            assetList[name] = AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath(name));
            return;
        }
        if (infor.isDone())
        {
            GameObject g    = GameObject.Instantiate(infor.bundle.mainAsset) as GameObject;
            Animation  anim = g.GetComponent <Animation>();
            if (null == anim || anim.clip == null)
            {
                GameObject.Destroy(g);
                return;
            }
            anim[anim.clip.name].normalizedSpeed = speed;

            g.transform.localScale = new Vector3(scale, scale, scale);
            GameObject c = new GameObject("aim");
            c.transform.parent = g.transform;
            DestoryObject dos = g.AddComponent <DestoryObject>();
            dos.delta = _time;
            shakeObjects.Add(c);
        }
    }
        private void UpdateMissionSign(MissionInfo.MisssionStatus status)
        {
            if (missionStatus == status)
            {
                return;
            }
            missionStatus = status;
            if (Owner.BodyGo == null)
            {
                return;
            }

            RemoveSign();
            switch (missionStatus)
            {
            case MissionInfo.MisssionStatus.Accept:
                AssetLoader.GetInstance().Load(URLUtil.GetEffectPath("effect_tanhao"), Sign_LoadComplete, AssetType.BUNDLER);
                break;

            case MissionInfo.MisssionStatus.BeenAccepted:
                AssetLoader.GetInstance().Load(URLUtil.GetEffectPath("effect_wenhao_hui"), Sign_LoadComplete, AssetType.BUNDLER);
                break;

            case MissionInfo.MisssionStatus.Finish:
                AssetLoader.GetInstance().Load(URLUtil.GetEffectPath("effect_wenhao"), Sign_LoadComplete, AssetType.BUNDLER);
                break;

            default:
                break;
            }
        }
Example #3
0
    /// <summary>
    /// 激活行为.
    /// </summary>
    public override void Active()
    {
        base.Active();
        AssetInfo infor = AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_guaiwusiwang2"));

        if (infor.isDone() && null != infor.bundle)
        {
            GameObject fx = GameObject.Instantiate(infor.bundle.mainAsset) as GameObject;
            fx.transform.position = hero.transform.position;
            fx.transform.rotation = hero.transform.rotation;

            float _scale = hero.heroSetting.Scale;
            /*float _scale = hero.property.characterController.radius * hero.transform.localScale.y/ 0.6f;*/
            fx.transform.localScale = new Vector3(_scale, _scale, _scale);
            ParticleSystemScaleManager.instance.Scale(_scale, fx);
            if (null != hero.BodyGo)
            {
                hero.BodyGo.SetActive(false);
            }
        }
        else
        {
            ActionDie die = new ActionDie(hero);
            hero.ActiveAction = die;
            return;
        }
        hero.DispatchEvent(ControllerCommand.CLEAR_BUFF);
    }
Example #4
0
    private void InitCoreManager()
    {
        RegisterLog();
        DontDestroyOnLoad(this.gameObject);
        log.Debug("Start game application...");
        GameWorld.GetInstance();
        LoggerView.GetInstance();
        CameraLayerManager.GetInstance();
        AssetLoader.GetInstance();
        ViewCameraManager.GetInstance().Init();
        LayerManager.GetInstance().Init();
        RemoteCallLogic.GetInstance();
        NGUIManager.GetInstance();

        LoginController.GetInstance();
        SceneLogic.GetInstance();
        PlayerController.GetInstance();
        BagLogic.GetInstance();
        NpcLogic.GetInstance();
        TimeManager.GetInstance();
        ViewManager.GetInstance();
        gameObject.AddComponent("CronJob");
        LoadResource();

        //ActiveRush.InitFx();



        AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_skill_badao03_xuanfengzhan_g2"));
        AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_skill_badao01_lipihuashantexiao"));
        AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_skill_badao03_xuanfengzhan"));
        AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_skill_badao03_xuanfengzhan_mingzhong2"));

        AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_skill_badao04_yuanyuewandao_mingzhong"));
        AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_skill_badao04_yuanyuewandao_mingzhong_g"));
        AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_skill_badao04_yuanyuewandao_wuqifeixing"));
        AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_skill_badao04_yuanyuewandao"));

        AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_skill_badao02_nuzhanbahuang_gongji"));
        AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_skill_daobin_06_nuhou_shifa"));

        AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_skill_daobin_05_zhenfei"));
        AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_skill_daobin_04_chongfeng"));
        AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_skill_daobin_04_chongfeng_mingzhong"));

        AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_guaiwusiwang2"));

        AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_levelup"));

        AssetLoader.GetInstance().Load(URLUtil.GetEffectPath("effect_guangquan_yellow"), PLAYER_SEL_LoadComplete, AssetType.BUNDLER);
        AssetLoader.GetInstance().Load(URLUtil.GetEffectPath("effect_guangquan2_red"), NPC_SEL_LoadComplete, AssetType.BUNDLER);

        PreLoad.GetInstance().OnEnterScene();
        SelecterManager.GetInstance();
    }
Example #5
0
 private void PlayMouseClickEffect(Vector3 position)
 {
     if (mouseClickEffect == null)
     {
         AssetLoader.GetInstance().Load(URLUtil.GetEffectPath("effect_shubiaodianjitexiao"), MouseClickEffect_LoadComplete, AssetType.BUNDLER);
     }
     else
     {
         TimeManager.GetInstance().AddOnce(MouseClickEffect_TimeOver, 1000);
         mouseClickEffect.transform.position = clickPosition;
         mouseClickEffect.transform.up       = Vector3.up;
         mouseClickEffect.SetActive(true);
     }
 }
        private void OnRoleUpdateLevel(KProtoBuf buf)
        {
            S2C_UPDATE_LEVEL respond     = buf as S2C_UPDATE_LEVEL;
            MajorPlayer      majorPlayer = PlayerManager.GetInstance().MajorPlayer;

            byte level = (byte)respond.nlevel;

            if (level != majorPlayer.level)
            {
                majorPlayer.level = level;
                majorPlayer.Exp   = 0;
                KPlayerLevelExpSetting playerLevelExpSetting = KConfigFileManager.GetInstance().playerLevelSetting.getData((majorPlayer.level + 1).ToString());
                majorPlayer.maxExp = playerLevelExpSetting.Exp;
                if (null != SceneLogic.GetInstance().MainHero)
                {
                    AssetLoader.GetInstance().Load(URLUtil.GetEffectPath("effect_levelup"), LoadLevelUpComplete, AssetType.BINARY);

                    //effect_levelup
                    //SceneLogic.GetInstance().MainHero.TipsCmp.CreateTip( new Vector3(0,SceneLogic.GetInstance().MainHero.heroSetting.TipPos0,0), "+" + respond.addExp, "ExpFont","effect_ui_shuzitanchu_putong.res");
                }
                EventDispatcher.GameWorld.Dispath(ControllerCommand.PLAYER_LEVEL_UP, level);
            }
        }
Example #7
0
        public bool OnEnterScene()
        {
            // int nNextScene = GetNextScene();
            // 以下预加载场景

            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetScenePath(4));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetScenePath(2));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetScenePath(3));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetScenePath(1));

            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetHeroPath("2001"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetHeroPath("2002"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetHeroPath("2003"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetHeroPath("2007"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetHeroPath("2008"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetHeroPath("2009"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetHeroPath("2010"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetHeroPath("2011"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetHeroPath("2013"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetHeroPath("2014"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetHeroPath("2015"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetHeroPath("2016"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetHeroPath("2017"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetHeroPath("2018"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetHeroPath("2020"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetHeroPath("2021"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetHeroPath("2022"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetHeroPath("2023"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetHeroPath("2024"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetHeroPath("2044"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetHeroPath("2045"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetHeroPath("3001"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetHeroPath("3002"));

            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_chuangsongmen"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_chuanshong"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_dianji"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_guangquan_green"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_guangquan_red"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_guangquan_yellow"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_hero_light"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_npc_light"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("player_light"));

            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_cave_bianfu"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_cave_guangxian01"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_cave_guangxian02"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_cave_huodui"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_cave_plant_grass001"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_cave_plant_grass001a"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_cave_pop_fireheap002_huoba"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_cave_pubu"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_cave_pubu_shuibo01"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_cave_pubu_shuibo02"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_cave_pubu_shuihua01"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_cave_pubu_shuihua02"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_cave_shuimian"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_cave_shuimian_guangdian"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_Hlz_building_bridge"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_Hlz_building_weiwu_02"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_hlz_crow"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_Hlz_dapubu"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_hlz_hudie01"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_hlz_hudie02"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_hlz_prop_disc001"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_hlz_prop_light001"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_hlz_prop_stone017"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_hlz_yangguang"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_hlz_yun"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_pvp_huodui"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_Pvp_rongyan"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_Pvp_shuimian"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_Pvp_shuimian_anbu"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_Pvp_shuiwen"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_shuye01"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_shuye02"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_shuye03"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_wuziliushui"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_yuanjingpubu"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_zhiwutexiao"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_changjing_zhongpubu"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_chuangsongmen"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_chuanshong"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_dianji"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_guangquan_green"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_guangquan_red"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_guangquan_yellow"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_levelup"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_npc_light"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_shubiaodianjitexiao"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_badao01_lipihuashantexiao"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_badao02_nuzhanbahuang_gongji"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_badao03_xuanfengzhan"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_badao03_xuanfengzhan_mingzhong2"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_badao04_yuanyuewandao"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_badao04_yuanyuewandao_mingzhong"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_badao04_yuanyuewandao_wuqifeixing"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_boss_H_2013_Qiangdaotouzi_gongji_01"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_boss_H_2013_Qiangdaotouzi_gongji_02"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_daobin_01_pugong"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_daobin_01_pugong_Female"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_daobin_01_pugong_gfemale"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_daobin_01_pugong_gmale"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_daobin_01_pugong_mingzhong"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_daobin_01_pugong_nan"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_daobin_01_shunpi"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_daobin_01_shunpi_Female"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_daobin_01_shunpi_gfemale"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_daobin_01_shunpi_gmale"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_daobin_01_shunpi_mingzhong"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_daobin_01_shunpi_mingzhong_g1"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_daobin_01_shunpi_nan_g"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_daobin_02_dafengche"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_daobin_02_dafengche_mingzhong"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_daobin_03_qiaodiban"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_daobin_03_qiaodiban_chaofeng"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_daobin_03_qiaodiban_g1"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_daobin_03_qiaodiban_mingzhong"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_daobin_04_chongfeng"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_daobin_04_chongfeng_mingzhong"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_daobin_04_chongfeng_xuanyun"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_daobin_05_zhenfei"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_daobin_05_zhenfei_g1"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_daobin_05_zhenfei_jiansu"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_daobin_06_nuhou_buff"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_daobin_06_nuhou_shifa"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_H2004_ELang_gongji01"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_H2004_ELang_mingzhong"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_H2004_ELang_shentiyanwutexiao"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_H_2003_Zhangfei_jineng"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_h_2008_qiangdao_gongji01"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_h_2008_qiangdao_gongji02"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_h_2009_heiyiren_gongji"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_skill_H_2045_Jingongsishi_pugong"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_tanhao"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_ui_create_badao"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_ui_create_blue"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_ui_create_red"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_ui_create_shitian"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_ui_create_wolong"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_ui_create_yellow"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_ui_renwu_xinrenwu"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_ui_shuzitanchu"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_ui_shuzitanchu_baoji2"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_ui_shuzitanchu_putong"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_ui_renwu_wanchengrenwu"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_wenhao"));
            AssetLoader.GetInstance().PreLoadOnlyDownload(URLUtil.GetEffectPath("effect_wenhao_hui"));


            return(true);
        }
Example #8
0
 private void PlayEffect(string effectName)
 {
     AssetLoader.GetInstance().Load(URLUtil.GetEffectPath(effectName), EffectLoadComplete, AssetType.BUNDLER);
 }
Example #9
0
 void LoadShader()
 {
     AssetLoader.GetInstance().Load(URLUtil.GetEffectPath("ShaderManager"), LoadShaderComplete, AssetType.BUNDLER);
 }