Example #1
0
 bool ShouldInterruptProcess(float priority, IntentProcessKind kind)
 {
     return(currentProcess == null ||
            currentProcess.priority < priority ||
            (currentProcess.chainStates != null &&
             currentProcess.chainStates.Contains(kind)));
 }
Example #2
0
 public IntentProcess(float priority, IntentProcessKind kind, List <IntentProcessKind> chainStates,
                      Vector3 position, GameObject target)
 {
     this.priority    = priority;
     this.kind        = kind;
     this.chainStates = chainStates;
     this.position    = position;
     this.target      = target;
 }
Example #3
0
 bool ShouldUpdateProcess(IntentProcessKind kind)
 {
     return(currentProcess != null &&
            currentProcess.kind == kind);
 }
Example #4
0
 public IntentProcess(float priority, IntentProcessKind kind, List <IntentProcessKind> chainStates)
 {
     this.priority    = priority;
     this.kind        = kind;
     this.chainStates = chainStates;
 }