Exemplo n.º 1
0
        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);
 }
Exemplo n.º 3
0
        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)));
 }
Exemplo n.º 5
0
 protected virtual bool ShouldTrigger(Flow flow, TArgs args)
 {
     return(true);
 }
Exemplo n.º 6
0
 protected virtual void AssignArguments(Flow flow, TArgs args)
 {
 }
Exemplo n.º 7
0
 private void MoveNext(Flow flow, ref int currentIndex)
 {
     currentIndex += flow.GetValue <int>(step);
     flow.SetValue(this.currentIndex, currentIndex);
 }
Exemplo n.º 8
0
 protected abstract IEnumerator Await(Flow flow);
Exemplo n.º 9
0
 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));
 }
Exemplo n.º 12
0
 protected override void AssignArguments(Flow flow, BaseEventData data)
 {
     flow.SetValue(this.data, data);
 }
Exemplo n.º 13
0
 protected override VariableDeclarations GetDeclarations(Flow flow)
 {
     return(Variables.Object(flow.GetValue <GameObject>(source)));
 }