public static void SetAIBehaviorValues( this Agent agent, AISimpleBehaviorKind behavior, float y1, float x2, float y2, float x3, float y3) { agent.GetComponent <AIBehaviorComponent>()?.Set(behavior, y1, x2, y2, x3, y3); }
public void Set( AISimpleBehaviorKind behavior, float y1, float x2, float y2, float x3, float y3) { this.behaviorValues[(int)behavior].y1 = y1; this.behaviorValues[(int)behavior].x2 = x2; this.behaviorValues[(int)behavior].y2 = y2; this.behaviorValues[(int)behavior].x3 = x3; this.behaviorValues[(int)behavior].y3 = y3; this.hasNewValues = true; }