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

            yield return(exit);
        }
示例#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)));
 }
示例#4
0
 private bool IsOn(Flow flow)
 {
     return(flow.stack.GetElementData <Data>(this).isOn);
 }
示例#5
0
 private bool CanMoveNext(Flow flow)
 {
     return(flow.GetValue <bool>(condition));
 }
示例#6
0
 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);
 }
示例#9
0
 protected override void AssignArguments(Flow flow, Collider other)
 {
     flow.SetValue(collider, other);
 }
示例#10
0
        public ControlOutput Operation(Flow flow)
        {
            flow.BreakLoop();

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