コード例 #1
0
        ///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();
        }
コード例 #2
0
 protected override void Awake()
 {
     agentComponent = GetComponent <AIScenarioAgentComponent> ();
 }
 private void OnEnable()
 {
     self = target as AIScenarioAgentComponent;
 }