bool ShouldInterruptProcess(float priority, IntentProcessKind kind) { return(currentProcess == null || currentProcess.priority < priority || (currentProcess.chainStates != null && currentProcess.chainStates.Contains(kind))); }
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; }
bool ShouldUpdateProcess(IntentProcessKind kind) { return(currentProcess != null && currentProcess.kind == kind); }
public IntentProcess(float priority, IntentProcessKind kind, List <IntentProcessKind> chainStates) { this.priority = priority; this.kind = kind; this.chainStates = chainStates; }