|
|
|
|
|
|
public class FlipFlopLogic : LogicBase |
|
|
|
{ |
|
|
|
[ReorderableList] |
|
|
|
public Callable[] OnConditionValid; |
|
|
|
public Callable[] OnFlip; |
|
|
|
public Callable[] OnConditionInvalid; |
|
|
|
public Callable[] OnFlop; |
|
|
|
|
|
|
|
private bool condition = true; |
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
Callable.Call(OnConditionValid, instigator); |
|
|
|
Callable.Call(OnFlip, instigator); |
|
|
|
Callable.Call(OnConditionInvalid, instigator); |
|
|
|
Callable.Call(OnFlop, instigator); |
|
|
|
condition = true; |
|
|
|
} |
|
|
|
} |