public static void UseSkillArt(SkillUnit.SkillArt oart)
        {
            SkillArt art = EditorDataContainer.currentskillAssetData.skillArt;

            DataConvert.ConvertSkillArt(art, oart);

            string effectName = EditorDataContainer.GetStringById(oart.unitEffect.effect);

            if (art.unitEffect == null)
            {
                art.unitEffect = new List <SkillEffectUnit>();
            }
            if (art.unitEffect.Count == 0)
            {
                art.unitEffect.Add(new SkillEffectUnit());
            }
            art.unitEffect[0].artEffect.effectObj = AssetUtility.GetSkillEffect(art.modelType, art.modelName, effectName);

            string hitEffectName = EditorDataContainer.GetStringById(oart.hitEffect.effect);

            if (art.hitEffect == null)
            {
                art.hitEffect = new List <SkillEffectUnit>();
            }
            if (art.hitEffect.Count == 0)
            {
                art.hitEffect.Add(new SkillEffectUnit());
            }
            art.hitEffect[0].artEffect.effectObj = AssetUtility.GetSkillEffect(art.modelType, art.modelName, hitEffectName);


            if (art.tipEffect == null)
            {
                art.tipEffect = new List <SkillEffectUnit>();
            }
            if (art.tipEffect.Count == 0)
            {
                art.tipEffect.Add(new SkillEffectUnit());
            }
            art.tipEffect[0].artEffect.effectObj = AssetUtility.GetSkillEffect(art.modelType, art.modelName, hitEffectName);

            for (int i = 0; i < oart.beginEffect.Count; i++)
            {
                string beginEffectName = EditorDataContainer.GetStringById(oart.beginEffect[i].effect);
                art.beginEffect[i].artEffect.effectObj = AssetUtility.GetSkillEffect(art.modelType, art.modelName, beginEffectName);
            }
        }
 public static string GetStringById(int id)
 {
     return(EditorDataContainer.GetStringById(id));
 }