diff options
author | chai <chaifix@163.com> | 2022-03-10 14:07:40 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2022-03-10 14:07:40 +0800 |
commit | 22891bf59032ba88262824255a706d652031384b (patch) | |
tree | 7595439ba9966c9402d37e37cee5e8cf098757d5 /Assets/ThirdParty/Behavior Designer/Runtime/Actions/PerformInterruption.cs | |
parent | 8b04ea73e540067f83870b61d89db4868fea5e8a (diff) |
* move folder
Diffstat (limited to 'Assets/ThirdParty/Behavior Designer/Runtime/Actions/PerformInterruption.cs')
-rw-r--r-- | Assets/ThirdParty/Behavior Designer/Runtime/Actions/PerformInterruption.cs | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/Assets/ThirdParty/Behavior Designer/Runtime/Actions/PerformInterruption.cs b/Assets/ThirdParty/Behavior Designer/Runtime/Actions/PerformInterruption.cs deleted file mode 100644 index 05c20a68..00000000 --- a/Assets/ThirdParty/Behavior Designer/Runtime/Actions/PerformInterruption.cs +++ /dev/null @@ -1,29 +0,0 @@ -namespace BehaviorDesigner.Runtime.Tasks
-{
- [TaskDescription("Perform the actual interruption. This will immediately stop the specified tasks from running and will return success or failure depending on the value of interrupt success.")]
- [HelpURL("http://www.opsive.com/assets/BehaviorDesigner/documentation.php?id=17")]
- [TaskIcon("{SkinColor}PerformInterruptionIcon.png")]
- public class PerformInterruption : Action
- {
- [Tooltip("The list of tasks to interrupt. Can be any number of tasks")]
- public Interrupt[] interruptTasks;
- [Tooltip("When we interrupt the task should we return a task status of success?")]
- public SharedBool interruptSuccess;
-
- public override TaskStatus OnUpdate()
- {
- // Loop through all of the tasks and fire an interruption. Once complete return success.
- for (int i = 0; i < interruptTasks.Length; ++i) {
- interruptTasks[i].DoInterrupt(interruptSuccess.Value ? TaskStatus.Success : TaskStatus.Failure);
- }
- return TaskStatus.Success;
- }
-
- public override void OnReset()
- {
- // Reset the properties back to their original values.
- interruptTasks = null;
- interruptSuccess = false;
- }
- }
-}
\ No newline at end of file |