Esempio n. 1
0
 private ControlOutput Enter(Flow flow)
 {
     return(IsOn(flow) ? exitOn : exitOff);
 }
Esempio n. 2
0
        protected override IEnumerator Await(Flow flow)
        {
            yield return(null);

            yield return(exit);
        }
Esempio n. 3
0
 private T Operation(Flow flow)
 {
     return(Operation(flow.GetValue <T>(current), flow.GetValue <T>(target), flow.GetValue <float>(maxDelta) * (perSecond ? Time.deltaTime : 1)));
 }
Esempio n. 4
0
 private bool IsOn(Flow flow)
 {
     return(flow.stack.GetElementData <Data>(this).isOn);
 }
Esempio n. 5
0
 private bool CanMoveNext(Flow flow)
 {
     return(flow.GetValue <bool>(condition));
 }
Esempio n. 6
0
 public object Branch(Flow flow)
 {
     return(flow.GetValue(flow.GetValue <bool>(condition) ? ifTrue : ifFalse));
 }
Esempio n. 7
0
 private T Operation(Flow flow)
 {
     return(Operation(flow.GetValue <T>(a), flow.GetValue <T>(b)));
 }
Esempio n. 8
0
 protected override void AssignArguments(Flow flow, int layerIndex)
 {
     flow.SetValue(this.layerIndex, layerIndex);
 }
Esempio n. 9
0
 protected override void AssignArguments(Flow flow, Collider other)
 {
     flow.SetValue(collider, other);
 }
Esempio n. 10
0
        public ControlOutput Operation(Flow flow)
        {
            flow.BreakLoop();

            return(null);
        }
Esempio n. 11
0
 private ControlOutput Process(Flow flow, bool value)
 {
     m_value = value;
     return(exit);
 }
Esempio n. 12
0
 private ControlOutput ProcessFalse(Flow flow)
 {
     return(Process(flow, false));
 }
Esempio n. 13
0
 private ControlOutput ProcessTrue(Flow flow)
 {
     return(Process(flow, true));
 }
Esempio n. 14
0
 protected override void AssignArguments(Flow flow, bool value)
 {
     flow.SetValue(this.value, value);
 }
Esempio n. 15
0
 private int Start(Flow flow)
 {
     return(flow.EnterLoop());
 }
Esempio n. 16
0
 protected abstract VariableDeclarations GetDeclarations(Flow flow);
Esempio n. 17
0
 private void Trigger(Flow flow)
 {
     CustomMachineEvent.Trigger(target.GetValue <FlowMachine>(), name.GetValue <string>(), arguments.Select(arg => arg.GetConvertedValue()).ToArray());
     flow.Invoke(exit);
 }