| | |
| | | using UnityEngine; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | |
| | | #if UNITY_EDITOR |
| | | public enum SkillCastEnum |
| | | { |
| | | MainSkill, |
| | | SubSkill, |
| | | } |
| | | |
| | | #endif |
| | | |
| | | public class SkillRecordAction : RecordAction |
| | | { |
| | |
| | | #else |
| | | protected |
| | | #endif |
| | | |
| | | |
| | | SkillBase skillBase; |
| | | |
| | | #if UNITY_EDITOR |
| | | public SkillCastEnum skillCastEnum = SkillCastEnum.MainSkill; |
| | | #endif |
| | | |
| | | public HB427_tagSCUseSkill hB427_TagSCUseSkill; |
| | | |
| | |
| | | { |
| | | skillBase.ForceFinished(); |
| | | } |
| | | |
| | | #if UNITY_EDITOR |
| | | // 标记包执行完成 |
| | | if (tracePackUID != 0 && !string.IsNullOrEmpty(GetBattleFieldGuid())) |
| | | { |
| | | try |
| | | { |
| | | var editorAssembly = System.AppDomain.CurrentDomain.GetAssemblies() |
| | | .FirstOrDefault(a => a.GetName().Name == "Assembly-CSharp-Editor"); |
| | | if (editorAssembly != null) |
| | | { |
| | | var checkerType = editorAssembly.GetType("BattleReportChecker"); |
| | | if (checkerType != null) |
| | | { |
| | | var method = checkerType.GetMethod("MarkPackageExecuted", |
| | | System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Static); |
| | | if (method != null) |
| | | { |
| | | method.Invoke(null, new object[] { GetBattleFieldGuid(), tracePackUID }); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | catch { } |
| | | } |
| | | #endif |
| | | |
| | | base.ForceFinish(); |
| | | } |
| | | |
| | |
| | | { |
| | | base.Run(); |
| | | |
| | | #if UNITY_EDITOR |
| | | // 标记包开始执行 |
| | | if (tracePackUID != 0 && !string.IsNullOrEmpty(GetBattleFieldGuid())) |
| | | { |
| | | try |
| | | { |
| | | var editorAssembly = System.AppDomain.CurrentDomain.GetAssemblies() |
| | | .FirstOrDefault(a => a.GetName().Name == "Assembly-CSharp-Editor"); |
| | | if (editorAssembly != null) |
| | | { |
| | | var checkerType = editorAssembly.GetType("BattleReportChecker"); |
| | | if (checkerType != null) |
| | | { |
| | | var method = checkerType.GetMethod("MarkPackageExecuting", |
| | | System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Static); |
| | | if (method != null) |
| | | { |
| | | method.Invoke(null, new object[] { GetBattleFieldGuid(), tracePackUID }); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | catch { } |
| | | } |
| | | #endif |
| | | |
| | | if (null == skillBase) |
| | | { |
| | | return; |