public BattleAISystem(IBattleManager mgr) : base(mgr) { _AICommander = new AICommander(); _AIBuilder = new AIBuilder(); _AICommander.sender = facade.SendNotification; _AIBuilder.sender = facade.SendNotification; _AIBuilder.mapProxy = facade.RetrieveProxy(MapVOProxy.NAME) as MapVOProxy; _AIBuilder.buildingProxy = facade.RetrieveProxy(BuildingVOProxy.NAME) as BuildingVOProxy; }
// Expose AIBuilder methods so they can be used without instance prefix public static void EnableAIBuilder(bool enable) { AIBuilder.EnableAIBuilder(enable); }
void Start() { simulationScript = GetComponent<SimulationScript>(); aiBuilder = GetComponent<AIBuilder>(); }
// Use this for initialization void Start() { populationTimer = populationCycleTime; population = 20.0f; food = 50.0f; happiness = 50.0f; happinessTimer = happinessCycleTime; aiBuilder = GetComponent<AIBuilder>(); gridLoader = GetComponent<GridLoader>(); cameraControl = GameObject.FindGameObjectWithTag("MainCamera").GetComponent<CameraControl>(); defeat = false; }