blob: 04fe32c9586884e08d52063fe595b57adf7566ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
namespace BehaviorDesigner.Runtime.Tasks.Basic.Math
{
[TaskCategory("Basic/Math")]
[TaskDescription("Flips the value of the bool.")]
public class BoolFlip : Action
{
[Tooltip("The bool to flip the value of")]
public SharedBool boolVariable;
public override TaskStatus OnUpdate()
{
boolVariable.Value = !boolVariable.Value;
return TaskStatus.Success;
}
public override void OnReset()
{
boolVariable.Value = false;
}
}
}
|