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

            yield return(exit);
        }
Exemplo 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)));
 }
Exemplo n.º 4
0
 private bool IsOn(Flow flow)
 {
     return(flow.stack.GetElementData <Data>(this).isOn);
 }
Exemplo n.º 5
0
 private bool CanMoveNext(Flow flow)
 {
     return(flow.GetValue <bool>(condition));
 }
Exemplo n.º 6
0
 public object Branch(Flow flow)
 {
     return(flow.GetValue(flow.GetValue <bool>(condition) ? ifTrue : ifFalse));
 }
Exemplo n.º 7
0
 private T Operation(Flow flow)
 {
     return(Operation(flow.GetValue <T>(a), flow.GetValue <T>(b)));
 }
Exemplo n.º 8
0
 protected override void AssignArguments(Flow flow, int layerIndex)
 {
     flow.SetValue(this.layerIndex, layerIndex);
 }
Exemplo n.º 9
0
 protected override void AssignArguments(Flow flow, Collider other)
 {
     flow.SetValue(collider, other);
 }
Exemplo n.º 10
0
        public ControlOutput Operation(Flow flow)
        {
            flow.BreakLoop();

            return(null);
        }
Exemplo n.º 11
0
 private ControlOutput Process(Flow flow, bool value)
 {
     m_value = value;
     return(exit);
 }
Exemplo n.º 12
0
 private ControlOutput ProcessFalse(Flow flow)
 {
     return(Process(flow, false));
 }
Exemplo n.º 13
0
 private ControlOutput ProcessTrue(Flow flow)
 {
     return(Process(flow, true));
 }
Exemplo n.º 14
0
 protected override void AssignArguments(Flow flow, bool value)
 {
     flow.SetValue(this.value, value);
 }
Exemplo n.º 15
0
 private int Start(Flow flow)
 {
     return(flow.EnterLoop());
 }
Exemplo n.º 16
0
 protected abstract VariableDeclarations GetDeclarations(Flow flow);
Exemplo 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);
 }