/// <summary> /// 注销结束事件(仅元素被销毁后执行) /// </summary> /// <param name="arg0"></param> protected void RemoveComplete(ActionItem arg0) { if (arg0 is ActionItem) { var feature = arg0.RetriveFeature <CompleteAbleItemFeature>(); feature.RemoveOnComplete(target); } }
/// <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); } } }
/// <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); } } }