void Awake() { gameController = GetComponent <GameControllerF>(); // Retrieve coordinates of locations and instantiate avatars (getting their scripts) GetLocationPositions(); GetAgentsControl(); GetAgentsOutline(); }
void Awake() { // Get components client = GetComponent <ClientF> (); populationController = GetComponent <PopulationControllerF> (); uiController = GetComponent <UIControllerF> (); gameController = GetComponent <GameControllerF> (); scoreManager = GetComponent <ScoresManagerF> (); ac = GetComponent <ACF> (); }
void Start() { // Get components populationController = GetComponent <PopulationControllerF> (); gameController = GetComponent <GameControllerF> (); texts = GetComponent <TextsF> (); ac = GetComponent <ACF> (); GetPushButtons(); GetPositionButtons(); displayOpponentScore = gameController.GetDisplayOpponentScore(); if (!displayOpponentScore) { texts.cumulativeScoreOpponent.text = ""; texts.cumulativeScoreOpponentIcon.text = ""; texts.cumulativeScoreIcon.text = "Score:"; } scoreUpdated = true; }
void Awake() { gameController = GetComponent <GameControllerF> (); }