// Use this for initialization void Start() { _player = GetComponent<Player> (); _AISystem = GameObject.FindGameObjectWithTag (Tags.GAMECONTROLLER).GetComponent<AISystemManager> (); _grid = new Grid (_AISystem.prefabGridList); _movement = gameObject.AddComponent<AIMovement> (); _combat = gameObject.AddComponent<AICombat> (); _targetLocator = gameObject.AddComponent<AITargetPrioritizer> (); _movement.SetLevelGrid (_grid); }