void SetUpGame() { //Set up Random and Date GameRandom = new System.Random(); RealDate = new Date(); //Give Date starting values RealDate.Day = 1; RealDate.Month = 1; RealDate.Year = 1; //Generating the world will be done here WorldMethods.SetUpWorld(); //Find all Locations allLocations = GameObject.FindGameObjectsWithTag("Location"); //Set the correct connections and starting resource values playerResourceManager.SetUpResources(); seasonManager.SetUpSeasons(); UIController.UpdateCalendarDisplay(); UIController.UpdateResourceDisplay(); }
void SetUpGame() { GameRandom = new System.Random(); RealDate = new Date(); RealDate.Day = 1; RealDate.Month = 1; RealDate.Year = 1; FightManager = new FightManager(); ActivityManager = new ActivityManager(); CurrentLeagueFighterDatabase = new FighterDatabase(); TeamManager = new TeamManager(); BookingManager = new BookingManager(); PlayerManager = new PlayerManager(); CharacterDatabase = new CharacterDatabase(); WorldMethods.SetUpWorld(); GameObject.Find("FighterListContent").GetComponent <FighterListContent> ().SetUp(CurrentLeagueFighterDatabase.AllFighters); GameObject.Find("TeamListContent").GetComponent <TeamListContent> ().SetUp(TeamManager.TeamsInLeague); GameObject.Find("FightsPlannedListContent").GetComponent <FightPlanListContent> ().SetUp(BookingManager.Calendar); CharacterDatabase.SetUpCharacterDatabase(); //Check whether the ID assignment has occurred properly print("Total Characters: " + CharacterDatabase.AllCharacters.Count); print("Highest ID: " + CharacterDatabase.UsedIDs + " (Should be the same as Total Characters)"); OpinionManager = new Opinion(); }