示例#1
0
 /// <summary>
 /// 注销结束事件(仅元素被销毁后执行)
 /// </summary>
 /// <param name="arg0"></param>
 protected void RemoveComplete(ActionItem arg0)
 {
     if (arg0 is ActionItem)
     {
         var feature = arg0.RetriveFeature <CompleteAbleItemFeature>();
         feature.RemoveOnComplete(target);
     }
 }
示例#2
0
 /// <summary>
 /// 注册结束事件(仅元素在本步骤开始后创建时执行注册)
 /// </summary>
 /// <param name="arg0"></param>
 protected void RegistComplete(ActionItem arg0)
 {
     if (target.Statu == ExecuteStatu.Executing)
     {
         if (arg0 is ActionItem)
         {
             // 注册元素结束事件
             var feature = arg0.RetriveFeature <CompleteAbleItemFeature>();
             feature.RegistOnCompleteSafety(target, TryComplete);
         }
     }
 }
示例#3
0
 /// <summary>
 /// 注销结束事件(仅元素被销毁后执行)
 /// </summary>
 /// <param name="arg0"></param>
 protected void RemoveComplete(ActionItem arg0)
 {
     if (arg0 is ActionItem)
     {
         var feature = arg0.RetriveFeature <CompleteAbleItemFeature>();
         if (feature == null)
         {
             Debug.Log(arg0 + "中没有:CompleteAbleItemFeature");
         }
         else
         {
             feature.RemoveOnComplete(target);
         }
     }
 }