Beispiel #1
0
 /// <summary>语言包加载完成</summary>
 private void OnComplete_LoadedLang()
 {
     TextManager.SetQueryString();
     ItemManager.Init();
     CommonConfig.Init();
     LotterRewardManager.Init();
     SuitConfig.Init();
     ClothesConfig.Init();
     ClothesSlevelConfig.Init();
     ClothesLevelConfig.Init();
     BabyLikingConfig.Init();
     UseEquipConfig.Init();
     ClothesInheritConfig.Init();
     ClothesMapConfig.Init();
     CloneLevelConfig.Init();
     LevelRewardConfig.Init();
     ArenaConfig.Init();
     SkillLevelConfig.Init();
     PropertySkillLevelConfig.Init();
     BossDailyConfig.Init();
     BossRewardConfig.Init();
     InstanceProxy.Get <PieceSwitchConfig>().LoadXml();
     InstanceProxy.Get <PlayerPositionConfig>().LoadXml();
     InstanceProxy.Get <MatchArrayConfig>().LoadXml();
     InstanceProxy.Get <PositionAttributeConfig>().LoadXml();
     InstanceProxy.Get <RandNameConfig>().LoadXml();
     InstanceProxy.Get <SkinConfig>().LoadXml();
     InstanceProxy.Get <MonsterConfig>().LoadXml();
     InstanceProxy.Get <CloneConfig>().LoadXml();
     InstanceProxy.Get <CameraConfig>().LoadXml();
     InstanceProxy.Get <MentalityMaxConfig>().LoadXml();
     InstanceProxy.Get <AbilityConfig>().LoadXml();
     InstanceProxy.Get <SkillConfig>().LoadXml();
     InstanceProxy.Get <SkillAIConfig>().LoadXml();
 }
Beispiel #2
0
    /// <summary>设置皮肤</summary>
    public void SetSkin(int cfgId, Transform target)
    {
        TD_TeamSkin item = InstanceProxy.Get <SkinConfig>().GetItem(cfgId);

        SetSkin(target, item.skin, E_SkinPart.Skin);
        SetSkin(target, item.hair, E_SkinPart.Hair);
        SetSkin(target, item.cloth, E_SkinPart.Cloth);
    }
Beispiel #3
0
    /// <summary>语言包加载完成</summary>
    private void OnComplete_LoadedLang()
    {
        if (null != InitTextManagerComplete)
        {
            InitTextManagerComplete();
            InitTextManagerComplete = null;
        }

        TextManager.SetQueryString();

        InstanceProxy.Get <EffConfig>().LoadXml();
        InstanceProxy.Get <CardConfig>().LoadXml();
        InstanceProxy.Get <HeroConfig>().LoadXml();
        InstanceProxy.Get <SkillConfig>().LoadXml();
        InstanceProxy.Get <SkillPrefabInfoConfig>().LoadXml();
    }
Beispiel #4
0
    /// <summary>设置皮肤  isMain是否是主场</summary>
    public void SetGKSkin(bool isMain, Transform target)
    {
        TD_GKSkin cfg = InstanceProxy.Get <SkinConfig>().GKSkin;

        if (isMain)
        {
            SetSkin(target, cfg.skin, E_SkinPart.Skin);
            SetSkin(target, cfg.hair, E_SkinPart.Hair);
            SetSkin(target, cfg.cloth, E_SkinPart.Cloth);
        }
        else
        {
            SetSkin(target, cfg.skin2, E_SkinPart.Skin);
            SetSkin(target, cfg.hair2, E_SkinPart.Hair);
            SetSkin(target, cfg.cloth2, E_SkinPart.Cloth);
        }
    }