| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 | 
							- using Excel2Json;
 
- using Fort23.Core;
 
- using Fort23.UTool;
 
- using GameLogic.Combat.Skill;
 
- using Utility;
 
- namespace GameLogic.Combat.CombatTool
 
- {
 
-     public class SkillScriptManager : Singleton<SkillScriptManager>
 
-     {
 
-         public static object ActivatorLoock = "lock";
 
-         public SkillBasic CreateSkillBasic(SkillConfig skillConfig)
 
-         {
 
-             try
 
-             {
 
-                 string typeName = "GameLogic.Combat.Skill." + skillConfig.scriptName;
 
-                 // lock (ActivatorLoock)
 
-                 {
 
-                     System.Type type = System.Type.GetType(typeName);
 
-                     if (type == null)
 
-                     {
 
-                         typeName = "GameLogic.Combat.Skill.MagicSkill." + skillConfig.scriptName;
 
-                         type = System.Type.GetType(typeName);
 
-                         if (type == null)
 
-                         {
 
-                             if (skillConfig.SkillType != 5 && skillConfig.SkillType != 6)
 
-                             {
 
-                                 LogTool.Error("没有技能脚本" + typeName);
 
-                             }
 
-                             return null;
 
-                         }
 
-                     }
 
-                     // SkillBasic 
 
-                     SkillBasic sb = (SkillBasic)CObjectPool.Instance.Fetch(type);
 
-                   
 
-                     return sb;
 
-                 }
 
-             }
 
-             catch (System.Exception e)
 
-             {
 
-                 LogTool.Log(e + "错误技能" + skillConfig.scriptName);
 
-             }
 
-             return null;
 
-         }
 
-         // public SuitBasic CreateSkillBasic(RelicSuitConfig relicSuitConfig)
 
-         // {
 
-         //     try
 
-         //     {
 
-         //         string typeName = "Common.Combat.Suit." + relicSuitConfig.ScriptName;
 
-         //         // lock (ActivatorLoock)
 
-         //         {
 
-         //             System.Type type = System.Type.GetType(typeName);
 
-         //             if (type == null)
 
-         //             {
 
-         //                 return null;
 
-         //             }
 
-         //
 
-         //             SuitBasic suitBasic = (SuitBasic)System.Activator.CreateInstance(type);
 
-         //             suitBasic.Init(relicSuitConfig);
 
-         //             return suitBasic;
 
-         //         }
 
-         //     }
 
-         //     catch (System.Exception e)
 
-         //     {
 
-         //         LogTool.Log("错误套装" + relicSuitConfig.ScriptName);
 
-         //     }
 
-         //
 
-         //     return null;
 
-         // }
 
-     }
 
- }
 
 
  |