Esempio n. 1
0
 /// <summary>
 /// 解析驱动内容
 /// </summary>
 /// <param name="content">内容</param>
 public void ParseContent(string content)
 {
     ability = DataDrivenFactory.ParseConfig(content);
     if (ability == null)
     {
         this.ShowNotification(new GUIContent("解析驱动失败!!!"));
         return;
     }
     _status = EditorStatus.Editor;
 }
Esempio n. 2
0
 /// <summary>
 /// 切换驱动类型
 /// </summary>
 /// <param name="iType">目标类型</param>
 public void ChangeDrivenTypeTo(DDConfig.DrivenType iType)
 {
     ability = DataDrivenFactory.Trans(ability, "DataDriven." + System.Enum.GetName(typeof(DDConfig.DrivenType), iType));
 }