private ControlOutput Enter(Flow flow) { return(IsOn(flow) ? exitOn : exitOff); }
protected override IEnumerator Await(Flow flow) { yield return(null); yield return(exit); }
private T Operation(Flow flow) { return(Operation(flow.GetValue <T>(current), flow.GetValue <T>(target), flow.GetValue <float>(maxDelta) * (perSecond ? Time.deltaTime : 1))); }
private bool IsOn(Flow flow) { return(flow.stack.GetElementData <Data>(this).isOn); }
private bool CanMoveNext(Flow flow) { return(flow.GetValue <bool>(condition)); }
public object Branch(Flow flow) { return(flow.GetValue(flow.GetValue <bool>(condition) ? ifTrue : ifFalse)); }
private T Operation(Flow flow) { return(Operation(flow.GetValue <T>(a), flow.GetValue <T>(b))); }
protected override void AssignArguments(Flow flow, int layerIndex) { flow.SetValue(this.layerIndex, layerIndex); }
protected override void AssignArguments(Flow flow, Collider other) { flow.SetValue(collider, other); }
public ControlOutput Operation(Flow flow) { flow.BreakLoop(); return(null); }
private ControlOutput Process(Flow flow, bool value) { m_value = value; return(exit); }
private ControlOutput ProcessFalse(Flow flow) { return(Process(flow, false)); }
private ControlOutput ProcessTrue(Flow flow) { return(Process(flow, true)); }
protected override void AssignArguments(Flow flow, bool value) { flow.SetValue(this.value, value); }
private int Start(Flow flow) { return(flow.EnterLoop()); }
protected abstract VariableDeclarations GetDeclarations(Flow flow);
private void Trigger(Flow flow) { CustomMachineEvent.Trigger(target.GetValue <FlowMachine>(), name.GetValue <string>(), arguments.Select(arg => arg.GetConvertedValue()).ToArray()); flow.Invoke(exit); }