void InitializeScriptLinks() { mouseController = GameObject.FindGameObjectWithTag("GameController").GetComponent <MouseController>(); flowController = GameObject.FindGameObjectWithTag("GameController").GetComponent <FlowControl>(); unitMenuControl = GameObject.FindGameObjectWithTag("GameController").GetComponent <UnitMenuControl>(); unitSpawner = GameObject.FindGameObjectWithTag("GameController").GetComponent <UnitSpawner>(); movementTypes = GameObject.FindGameObjectWithTag("GameController").GetComponent <MovementTypes>(); unitArray = GameObject.FindGameObjectWithTag("GameController").GetComponent <UnitArray>(); allWeapons = GameObject.FindGameObjectWithTag("GameController").GetComponent <AllWeapons>(); economyController = GameObject.FindGameObjectWithTag("GameController").GetComponent <EconomyController>(); buildingLocations = GameObject.FindGameObjectWithTag("GameController").GetComponent <BuildingLocations>(); UIcontroller = GameObject.FindGameObjectWithTag("GameController").GetComponent <UIController>(); baseSpawningArea = GameObject.FindGameObjectWithTag("GameController").GetComponent <BaseSpawningArea>(); tileSpreadingManager = GameObject.FindGameObjectWithTag("GameController").GetComponent <TileSpreadingManager>(); preDefinedActionTileSpawning = GameObject.FindGameObjectWithTag("GameController").GetComponent <PreDefinedActionTileSpawning>(); tryingToSpawnAUnit = GameObject.FindGameObjectWithTag("GameController").GetComponent <TryingToSpawnAUnit>(); tryingToGiveAUnitAWeapon = GameObject.FindGameObjectWithTag("GameController").GetComponent <TryingToGiveAUnitAWeapon>(); unitBattleResult = GameObject.FindGameObjectWithTag("GameController").GetComponent <UnitBattleResult>(); }
void Start() { tileSpreadingManager = GameObject.FindGameObjectWithTag("GameController").GetComponent <TileSpreadingManager> (); flowControl = GameObject.FindGameObjectWithTag("GameController").GetComponent <FlowControl> (); }