///Set GraphEditor inspected references public static void SetReferences(AIScenario scenario, AIScenarioAgentComponent comp) { if (current == null) { Debug.Log("AIEditor is not open."); return; } willRepaint = true; fullDrawPass = true; currentScenario = scenario; aiOwner = comp; current.Repaint(); }
protected override void Awake() { agentComponent = GetComponent <AIScenarioAgentComponent> (); }
private void OnEnable() { self = target as AIScenarioAgentComponent; }