protected override IEnumerator Await(Flow flow) { yield return(null); yield return(exit); }
protected override void AssignArguments(Flow flow, Vector2 value) { flow.SetValue(this.value, value); }
protected static bool CompareNames(Flow flow, ValueInput namePort, string calledName) { Ensure.That(nameof(calledName)).IsNotNull(calledName); return(calledName.Trim().Equals(flow.GetValue <string>(namePort)?.Trim(), StringComparison.OrdinalIgnoreCase)); }
public bool Comparison(Flow flow) { return(!Mathf.Approximately(flow.GetValue <float>(a), flow.GetValue <float>(b))); }
protected virtual bool ShouldTrigger(Flow flow, TArgs args) { return(true); }
protected virtual void AssignArguments(Flow flow, TArgs args) { }
private void MoveNext(Flow flow, ref int currentIndex) { currentIndex += flow.GetValue <int>(step); flow.SetValue(this.currentIndex, currentIndex); }
protected abstract IEnumerator Await(Flow flow);
protected abstract VariableDeclarations GetDeclarations(Flow flow);
protected override void AssignArguments(Flow flow, AnimationEvent animationEvent) { flow.SetValue(floatParameter, animationEvent.floatParameter); flow.SetValue(intParameter, animationEvent.intParameter); flow.SetValue(objectReferenceParameter, animationEvent.objectReferenceParameter); }
protected override bool ShouldTrigger(Flow flow, AnimationEvent animationEvent) { return(CompareNames(flow, name, animationEvent.stringParameter)); }
protected override void AssignArguments(Flow flow, BaseEventData data) { flow.SetValue(this.data, data); }
protected override VariableDeclarations GetDeclarations(Flow flow) { return(Variables.Object(flow.GetValue <GameObject>(source))); }