Professional Documents
Culture Documents
Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SocialPlatforms.Impl;
using UnityEngine.SceneManagement;
using UnityEngine.UIElements;
using TMPro;
using System.Data.SqlTypes;
using Unity.VisualScripting;
public int i = 0;
public int j = 0;
//Simulation Variables
//Simulation - Screens
//Simulation - Buttons
//Simulation - Text
//Simulation - Text
//Simulation - Strings
//Simulation - Booleans
//Simulation - Variables
public int m = 1;
public int m1 = 0;
public int m2 = 0;
public int m3 = 0;
public int m4 = 0;
public int m5 = 0;
public int m6 = 0;
public int m7 = 0;
public int m8 = 0;
public int m9 = 0;
//Summary - Screens
//Summary - Buttons
//Summary - Booleans
public bool housingComplete = false;
//Summary - Variables
//Summary - Text
//bools
void Start()
void Update()
if (Input.GetKey("escape"))
Application.Quit();
//The Introduction
//IntroSummary1990();
//IntroSummary2020();
//The Simulation
//MainSimulationStatus();
//PlayerStats1990();
//PlayerStats2020();
//MainSimulationIteration();
//MainSimulationIteration1();
//RandomEvents();
//WeekSummary1990();
//WeekSummary2020();
//MonthSummary1990();
//MonthSummary2020();
}
//Selecting Gender
if (maleGender == true)
genderScreen.SetActive(false);
maleScreen.SetActive(true);
femaleScreen.SetActive(false);
otherGenderScreen.SetActive(false);
genderSelected = "Male";
genderNow = 1;
genderScreen.SetActive(false);
maleScreen.SetActive(false);
femaleScreen.SetActive(true);
otherGenderScreen.SetActive(false);
genderSelected = "Female";
genderNow = 2;
{
genderScreen.SetActive(false);
maleScreen.SetActive(false);
femaleScreen.SetActive(false);
otherGenderScreen.SetActive(true);
genderNow = 3;
maleGender = true;
ChooseGender();
femaleGender = true;
ChooseGender();
otherGender = true;
ChooseGender();
}
//Selecting Race
if (europeanDescent == true)
raceScreen.SetActive(false);
europeanDescentScreen.SetActive(true);
africanDescentScreen.SetActive(false);
nativeAmericanDescentScreen.SetActive(false);
hispanicDescentScreen.SetActive(false);
asianDescentScreen.SetActive(false);
otherDescentScreen.SetActive(false);
raceNow = 1;
raceScreen.SetActive(false);
europeanDescentScreen.SetActive(false);
africanDescentScreen.SetActive(true);
nativeAmericanDescentScreen.SetActive(false);
hispanicDescentScreen.SetActive(false);
asianDescentScreen.SetActive(false);
otherDescentScreen.SetActive(false);
raceNow = 2;
}
raceScreen.SetActive(false);
europeanDescentScreen.SetActive(false);
africanDescentScreen.SetActive(false);
nativeAmericanDescentScreen.SetActive(true);
hispanicDescentScreen.SetActive(false);
asianDescentScreen.SetActive(false);
otherDescentScreen.SetActive(false);
raceNow = 3;
raceScreen.SetActive(false);
europeanDescentScreen.SetActive(false);
africanDescentScreen.SetActive(false);
nativeAmericanDescentScreen.SetActive(false);
hispanicDescentScreen.SetActive(true);
asianDescentScreen.SetActive(false);
otherDescentScreen.SetActive(false);
raceNow = 4;
{
raceScreen.SetActive(false);
europeanDescentScreen.SetActive(false);
africanDescentScreen.SetActive(false);
nativeAmericanDescentScreen.SetActive(false);
hispanicDescentScreen.SetActive(false);
asianDescentScreen.SetActive(true);
otherDescentScreen.SetActive(false);
raceNow = 5;
raceScreen.SetActive(false);
europeanDescentScreen.SetActive(false);
africanDescentScreen.SetActive(false);
nativeAmericanDescentScreen.SetActive(false);
hispanicDescentScreen.SetActive(false);
asianDescentScreen.SetActive(false);
otherDescentScreen.SetActive(true);
raceNow = 6;
europeanDescent = true;
ChooseRace();
africanDescent = true;
ChooseRace();
nativeAmericanDescent = true;
ChooseRace();
hispanicDescent = true;
ChooseRace();
asianDescent = true;
ChooseRace();
{
otherDescent = true;
ChooseRace();
//Selecting Education
if (noDegree == true)
educationScreen.SetActive(false);
educationScreenNoDegree.SetActive(true);
educationScreenHSDiploma.SetActive(false);
educationScreenBachelorsDegree.SetActive(false);
educationScreenMastersDegree.SetActive(false);
educationScreenAdvancedDegree.SetActive(false);
educationNow = 1;
waiterButton.SetActive(true);
cashierButton.SetActive(true);
fryCookButton.SetActive(true);
customerServiceAgentButton.SetActive(true);
teacherButton.SetActive(false);
licensedSalesAgentButton.SetActive(false);
programmerButton.SetActive(false);
unknownJobButton.SetActive(false);
doctorButton.SetActive(false);
lawyerButton.SetActive(false);
educationScreen.SetActive(false);
educationScreenNoDegree.SetActive(false);
educationScreenHSDiploma.SetActive(true);
educationScreenBachelorsDegree.SetActive(false);
educationScreenMastersDegree.SetActive(false);
educationScreenAdvancedDegree.SetActive(false);
educationNow = 2;
waiterButton.SetActive(true);
cashierButton.SetActive(true);
fryCookButton.SetActive(true);
customerServiceAgentButton.SetActive(true);
teacherButton.SetActive(true);
licensedSalesAgentButton.SetActive(true);
programmerButton.SetActive(false);
unknownJobButton.SetActive(false);
doctorButton.SetActive(false);
lawyerButton.SetActive(false);
}
educationScreen.SetActive(false);
educationScreenNoDegree.SetActive(false);
educationScreenHSDiploma.SetActive(false);
educationScreenBachelorsDegree.SetActive(true);
educationScreenMastersDegree.SetActive(false);
educationScreenAdvancedDegree.SetActive(false);
educationNow = 3;
waiterButton.SetActive(true);
cashierButton.SetActive(true);
fryCookButton.SetActive(true);
customerServiceAgentButton.SetActive(true);
teacherButton.SetActive(true);
licensedSalesAgentButton.SetActive(true);
programmerButton.SetActive(true);
unknownJobButton.SetActive(false);
doctorButton.SetActive(false);
lawyerButton.SetActive(false);
educationScreenNoDegree.SetActive(false);
educationScreenHSDiploma.SetActive(false);
educationScreenBachelorsDegree.SetActive(false);
educationScreenMastersDegree.SetActive(true);
educationScreenAdvancedDegree.SetActive(false);
educationNow = 4;
waiterButton.SetActive(true);
cashierButton.SetActive(true);
fryCookButton.SetActive(true);
customerServiceAgentButton.SetActive(true);
teacherButton.SetActive(true);
licensedSalesAgentButton.SetActive(true);
programmerButton.SetActive(true);
unknownJobButton.SetActive(false);
doctorButton.SetActive(false);
lawyerButton.SetActive(false);
educationScreen.SetActive(false);
educationScreenNoDegree.SetActive(false);
educationScreenHSDiploma.SetActive(false);
educationScreenBachelorsDegree.SetActive(false);
educationScreenMastersDegree.SetActive(false);
educationScreenAdvancedDegree.SetActive(true);
educationNow = 5;
waiterButton.SetActive(true);
cashierButton.SetActive(true);
fryCookButton.SetActive(true);
customerServiceAgentButton.SetActive(true);
teacherButton.SetActive(true);
licensedSalesAgentButton.SetActive(true);
programmerButton.SetActive(true);
unknownJobButton.SetActive(true);
doctorButton.SetActive(true);
lawyerButton.SetActive(true);
noDegree = true;
ChooseEducation();
hsDiploma = true;
ChooseEducation();
bachelorsDegree = true;
ChooseEducation();
mastersDegree = true;
ChooseEducation();
advancedDegree = true;
ChooseEducation();
//Selecting Employment
if (waiter == true)
waiterScreen.SetActive(true);
cashierScreen.SetActive(false);
fryCookScreen.SetActive(false);
customerServiceAgentScreen.SetActive(false);
teacherScreen.SetActive(false);
licensedSalesAgentScreen.SetActive(false);
programmerScreen.SetActive(false);
unknownJobScreen.SetActive(false);
doctorScreen.SetActive(false);
lawyerScreen.SetActive(false);
jobSelected = "Waiter";
jobNow = 1;
//Setting Pay
switch (educationNow)
case 1:
break;
case 2:
break;
case 3:
case 4:
break;
case 5:
break;
livingWithParentsButton.SetActive(true);
livingWithRoommatesButton.SetActive(true);
basicApartmentButton.SetActive(true);
luxuryApartmentButton.SetActive(false);
basicHouseButton.SetActive(false);
luxuryHouseButton.SetActive(false);
jobScreen.SetActive(false);
waiterScreen.SetActive(false);
cashierScreen.SetActive(true);
fryCookScreen.SetActive(false);
customerServiceAgentScreen.SetActive(false);
teacherScreen.SetActive(false);
licensedSalesAgentScreen.SetActive(false);
programmerScreen.SetActive(false);
unknownJobScreen.SetActive(false);
doctorScreen.SetActive(false);
lawyerScreen.SetActive(false);
jobSelected = "Cashier";
jobNow = 2;
//Setting Pay
switch (educationNow)
case 1:
break;
case 2:
break;
case 3:
break;
case 4:
case 5:
break;
livingWithParentsButton.SetActive(true);
livingWithRoommatesButton.SetActive(true);
basicApartmentButton.SetActive(true);
luxuryApartmentButton.SetActive(false);
basicHouseButton.SetActive(false);
luxuryHouseButton.SetActive(false);
jobScreen.SetActive(false);
waiterScreen.SetActive(false);
cashierScreen.SetActive(false);
fryCookScreen.SetActive(true);
customerServiceAgentScreen.SetActive(false);
teacherScreen.SetActive(false);
licensedSalesAgentScreen.SetActive(false);
programmerScreen.SetActive(false);
unknownJobScreen.SetActive(false);
doctorScreen.SetActive(false);
lawyerScreen.SetActive(false);
jobNow = 3;
//Setting Pay
switch (educationNow)
case 1:
break;
case 2:
break;
case 3:
break;
case 4:
break;
case 5:
livingWithParentsButton.SetActive(true);
livingWithRoommatesButton.SetActive(true);
basicApartmentButton.SetActive(true);
luxuryApartmentButton.SetActive(false);
basicHouseButton.SetActive(false);
luxuryHouseButton.SetActive(false);
jobScreen.SetActive(false);
waiterScreen.SetActive(false);
cashierScreen.SetActive(false);
fryCookScreen.SetActive(false);
customerServiceAgentScreen.SetActive(true);
teacherScreen.SetActive(false);
licensedSalesAgentScreen.SetActive(false);
programmerScreen.SetActive(false);
unknownJobScreen.SetActive(false);
doctorScreen.SetActive(false);
lawyerScreen.SetActive(false);
jobSelected = "Call Center Agent";
jobNow = 4;
//Setting Pay
switch (educationNow)
case 1:
break;
case 2:
break;
case 3:
break;
case 4:
break;
case 5:
break;
livingWithParentsButton.SetActive(true);
livingWithRoommatesButton.SetActive(true);
basicApartmentButton.SetActive(true);
luxuryApartmentButton.SetActive(false);
basicHouseButton.SetActive(true);
luxuryHouseButton.SetActive(false);
jobScreen.SetActive(false);
waiterScreen.SetActive(false);
cashierScreen.SetActive(false);
fryCookScreen.SetActive(false);
customerServiceAgentScreen.SetActive(false);
teacherScreen.SetActive(true);
licensedSalesAgentScreen.SetActive(false);
programmerScreen.SetActive(false);
unknownJobScreen.SetActive(false);
doctorScreen.SetActive(false);
lawyerScreen.SetActive(false);
jobSelected = "Teacher";
jobNow = 5;
//Setting Pay
switch (educationNow)
case 1:
biweeklySalary1990 = 0.00;
biweeklySalary2020 = 0.00;
break;
case 2:
biweeklySalary1990 = 0.00;
biweeklySalary2020 = 0.00;
break;
case 3:
break;
case 4:
break;
case 5:
break;
livingWithParentsButton.SetActive(true);
livingWithRoommatesButton.SetActive(true);
basicApartmentButton.SetActive(true);
luxuryApartmentButton.SetActive(true);
basicHouseButton.SetActive(true);
luxuryHouseButton.SetActive(true);
jobScreen.SetActive(false);
waiterScreen.SetActive(false);
cashierScreen.SetActive(false);
fryCookScreen.SetActive(false);
customerServiceAgentScreen.SetActive(false);
teacherScreen.SetActive(false);
licensedSalesAgentScreen.SetActive(true);
programmerScreen.SetActive(false);
unknownJobScreen.SetActive(false);
doctorScreen.SetActive(false);
lawyerScreen.SetActive(false);
jobNow = 6;
//Setting Pay
switch (educationNow)
case 1:
biweeklySalary1990 = 0.00;
biweeklySalary2020 = 0.00;
break;
case 2:
break;
case 3:
break;
case 4:
break;
case 5:
break;
livingWithParentsButton.SetActive(true);
livingWithRoommatesButton.SetActive(true);
basicApartmentButton.SetActive(true);
luxuryApartmentButton.SetActive(true);
basicHouseButton.SetActive(true);
luxuryHouseButton.SetActive(true);
jobScreen.SetActive(false);
waiterScreen.SetActive(false);
cashierScreen.SetActive(false);
fryCookScreen.SetActive(false);
customerServiceAgentScreen.SetActive(false);
teacherScreen.SetActive(false);
licensedSalesAgentScreen.SetActive(false);
programmerScreen.SetActive(true);
unknownJobScreen.SetActive(false);
doctorScreen.SetActive(false);
lawyerScreen.SetActive(false);
jobSelected = "Programmer";
jobNow = 7;
//Setting Pay
switch (educationNow)
case 1:
biweeklySalary1990 = 0.00;
biweeklySalary2020 = 0.00;
break;
case 2:
break;
case 3:
break;
case 4:
break;
case 5:
break;
livingWithParentsButton.SetActive(true);
livingWithRoommatesButton.SetActive(true);
basicApartmentButton.SetActive(true);
luxuryApartmentButton.SetActive(true);
basicHouseButton.SetActive(true);
luxuryHouseButton.SetActive(true);
{
//Changes Panel View
jobScreen.SetActive(false);
waiterScreen.SetActive(false);
cashierScreen.SetActive(false);
fryCookScreen.SetActive(false);
customerServiceAgentScreen.SetActive(false);
teacherScreen.SetActive(false);
licensedSalesAgentScreen.SetActive(false);
programmerScreen.SetActive(false);
unknownJobScreen.SetActive(true);
doctorScreen.SetActive(false);
lawyerScreen.SetActive(false);
jobNow = 8;
//Setting Pay
switch (educationNow)
case 1:
biweeklySalary1990 = 0.00;
biweeklySalary2020 = 0.00;
break;
case 2:
biweeklySalary1990 = 0.00;
biweeklySalary2020 = 0.00;
break;
case 3:
biweeklySalary1990 = 0.00;
biweeklySalary2020 = 0.00;
break;
case 4:
biweeklySalary1990 = 0.00;
biweeklySalary2020 = 0.00;
break;
case 5:
break;
livingWithParentsButton.SetActive(true);
livingWithRoommatesButton.SetActive(true);
basicApartmentButton.SetActive(true);
luxuryApartmentButton.SetActive(true);
basicHouseButton.SetActive(true);
luxuryHouseButton.SetActive(true);
jobScreen.SetActive(false);
waiterScreen.SetActive(false);
cashierScreen.SetActive(false);
fryCookScreen.SetActive(false);
customerServiceAgentScreen.SetActive(false);
teacherScreen.SetActive(false);
licensedSalesAgentScreen.SetActive(false);
programmerScreen.SetActive(false);
unknownJobScreen.SetActive(false);
doctorScreen.SetActive(true);
lawyerScreen.SetActive(false);
jobSelected = "Doctor";
jobNow = 9;
//Setting Pay
switch (educationNow)
case 1:
biweeklySalary1990 = 0.00;
biweeklySalary2020 = 0.00;
break;
case 2:
biweeklySalary1990 = 0.00;
biweeklySalary2020 = 0.00;
break;
case 3:
biweeklySalary1990 = 0.00;
biweeklySalary2020 = 0.00;
break;
case 4:
biweeklySalary1990 = 0.00;
biweeklySalary2020 = 0.00;
break;
case 5:
break;
livingWithParentsButton.SetActive(true);
livingWithRoommatesButton.SetActive(true);
basicApartmentButton.SetActive(true);
luxuryApartmentButton.SetActive(true);
basicHouseButton.SetActive(true);
luxuryHouseButton.SetActive(true);
jobScreen.SetActive(false);
waiterScreen.SetActive(false);
cashierScreen.SetActive(false);
fryCookScreen.SetActive(false);
customerServiceAgentScreen.SetActive(false);
teacherScreen.SetActive(false);
licensedSalesAgentScreen.SetActive(false);
programmerScreen.SetActive(false);
unknownJobScreen.SetActive(false);
doctorScreen.SetActive(false);
lawyerScreen.SetActive(true);
jobSelected = "Lawyer";
jobNow = 10;
//Setting Pay
switch (educationNow)
case 1:
biweeklySalary1990 = 0.00;
biweeklySalary2020 = 0.00;
break;
case 2:
biweeklySalary1990 = 0.00;
biweeklySalary2020 = 0.00;
break;
case 3:
biweeklySalary1990 = 0.00;
biweeklySalary2020 = 0.00;
break;
case 4:
biweeklySalary1990 = 0.00;
biweeklySalary2020 = 0.00;
break;
case 5:
biweeklySalary1990 = 0.00;
biweeklySalary2020 = 0.00;
break;
livingWithParentsButton.SetActive(true);
livingWithRoommatesButton.SetActive(true);
basicApartmentButton.SetActive(true);
luxuryApartmentButton.SetActive(true);
basicHouseButton.SetActive(true);
luxuryHouseButton.SetActive(true);
waiter = true;
ChooseJob();
cashier = true;
ChooseJob();
}
public void ChooseJobFryCook()
fryCook = true;
ChooseJob();
customerServiceAgent = true;
ChooseJob();
teacher = true;
ChooseJob();
licensedSalesAgent = true;
ChooseJob();
programmer = true;
ChooseJob();
}
public void ChooseJobUnknown()
unknownJob = true;
ChooseJob();
doctor = true;
ChooseJob();
lawyer = true;
ChooseJob();
//Selecting Housing
if (livingWithParents == true)
housingScreen.SetActive(false);
livingWithParentsScreen.SetActive(true);
livingWithRoommatesScreen.SetActive(false);
basicApartmentScreen.SetActive(false);
luxuryApartmentScreen.SetActive(false);
basicHouseScreen.SetActive(false);
luxuryHouseScreen.SetActive(false);
houseNow = 1;
housingScreen.SetActive(false);
livingWithParentsScreen.SetActive(false);
livingWithRoommatesScreen.SetActive(true);
basicApartmentScreen.SetActive(false);
luxuryApartmentScreen.SetActive(false);
basicHouseScreen.SetActive(false);
luxuryHouseScreen.SetActive(false);
houseNow = 2;
housingScreen.SetActive(false);
livingWithParentsScreen.SetActive(false);
livingWithRoommatesScreen.SetActive(false);
basicApartmentScreen.SetActive(true);
luxuryApartmentScreen.SetActive(false);
basicHouseScreen.SetActive(false);
luxuryHouseScreen.SetActive(false);
houseNow = 3;
housingScreen.SetActive(false);
livingWithParentsScreen.SetActive(false);
livingWithRoommatesScreen.SetActive(false);
basicApartmentScreen.SetActive(false);
luxuryApartmentScreen.SetActive(true);
basicHouseScreen.SetActive(false);
luxuryHouseScreen.SetActive(false);
houseNow = 4;
housingScreen.SetActive(false);
livingWithParentsScreen.SetActive(false);
livingWithRoommatesScreen.SetActive(false);
basicApartmentScreen.SetActive(false);
luxuryApartmentScreen.SetActive(false);
basicHouseScreen.SetActive(true);
luxuryHouseScreen.SetActive(false);
houseNow = 5;
housingScreen.SetActive(false);
livingWithParentsScreen.SetActive(false);
livingWithRoommatesScreen.SetActive(false);
basicApartmentScreen.SetActive(false);
luxuryApartmentScreen.SetActive(false);
basicHouseScreen.SetActive(false);
luxuryHouseScreen.SetActive(true);
houseNow = 6;
switch (houseNow)
case 1:
housingCostLWP1990Text.text = "Your monthly Housing Cost will be: $" + rentCost1990 + "!";
housingCostLWP2020Text.text = "Your monthly Housing Cost will be: $" + rentCost2020 + "!";
break;
case 2:
rentCost1990 = 300.00;
rentCost2020 = 500.00;
housingCostLWR1990Text.text = "Your monthly Housing Cost will be: $" + rentCost1990 + "!";
housingCostLWR2020Text.text = "Your monthly Housing Cost will be: $" + rentCost2020 + "!";
break;
case 3:
rentCost1990 = 500.00;
rentCost2020 = 800.00;
housingCostBA1990Text.text = "Your monthly Housing Cost will be: $" + rentCost1990 + "!";
housingCostBA2020Text.text = "Your monthly Housing Cost will be: $" + rentCost2020 + "!";
break;
case 4:
rentCost1990 = 900.00;
rentCost2020 = 1600.00;
housingCostLA1990Text.text = "Your monthly Housing Cost will be: $" + rentCost1990 + "!";
housingCostLA2020Text.text = "Your monthly Housing Cost will be: $" + rentCost2020 + "!";
break;
case 5:
mortgageCost1990 = 1000.00;
mortgageCost2020 = 1400.00;
break;
case 6:
mortgageCost1990 = 1400.00;
mortgageCost2020 = 2000.00;
break;
livingWithParents = true;
ChooseHousing();
livingWithRoommates = true;
ChooseHousing();
basicApartment = true;
ChooseHousing();
luxuryApartment = true;
ChooseHousing();
basicHouse = true;
ChooseHousing();
luxuryHouse = true;
ChooseHousing();
//Selecting Utilities
utilityElectric = true;
utilityElectric1990Selected = "Electricity";
utilityElectric2020Selected = "Electricity";
//utilitiesCost1990 += utilityElectricCost1990;
//utilitiesCost2020 += utilityElectricCost2020;
utilitiesElectricScreen.SetActive(true);
utilitiesElectricButton.SetActive(false);
utilitiesScreen.SetActive(false);
utilityWater = true;
utilityWater1990Selected = "Water";
utilityWater2020Selected = "Water";
//utilitiesCost1990 += utilityWaterCost1990;
//utilitiesCost2020 += utilityWaterCost2020;
utilitiesWaterScreen.SetActive(true);
utilitiesWaterButton.SetActive(false);
utilitiesScreen.SetActive(false);
utilitiesCommunicationsScreen.SetActive(true);
utilitiesCommunicationsButton.SetActive(false);
utilitiesScreen.SetActive(false);
utilityCommunications1990 = true;
housePhone1990 = true;
utilityCommunicationsCost1990 = 15.00;
utilitiesCost1990 += utilityCommunicationsCost1990;
housePhone1990Screen.SetActive(true);
utilitiesCommunicationsScreen.SetActive(false);
basicCellPhone1990Button.SetActive(false);
BackFromCommunications();
utilityCommunications2020 = true;
housePhone2020 = true;
utilityCommunications2020Selected = "House Phone";
utilityCommunicationsCost2020 = 30.00;
utilitiesCost2020 += utilityCommunicationsCost2020;
housePhone2020Screen.SetActive(true);
utilitiesCommunicationsScreen.SetActive(false);
basicCellPhone2020Button.SetActive(false);
unlimitedCellPhone2020Button.SetActive(false);
BackFromCommunications();
utilityCommunications1990 = true;
basicCellPhone1990 = true;
utilityCommunicationsCost1990 = 30.00;
basicCellPhone1990Screen.SetActive(true);
utilitiesCommunicationsScreen.SetActive(false);
housePhone1990Button.SetActive(false);
BackFromCommunications();
utilityCommunications2020 = true;
basicCellPhone2020 = true;
utilityCommunicationsCost2020 = 50.00;
utilitiesCost2020 += utilityCommunicationsCost2020;
basicCellPhone2020Screen.SetActive(true);
utilitiesCommunicationsScreen.SetActive(false);
housePhone2020Button.SetActive(false);
unlimitedCellPhone2020Button.SetActive(false);
BackFromCommunications();
}
utilityCommunications2020 = true;
unlimitedCellPhone2020 = true;
utilityCommunicationsCost2020 = 80.00;
utilitiesCost2020 += utilityCommunicationsCost2020;
unlimitedCellPhone2020Screen.SetActive(true);
utilitiesCommunicationsScreen.SetActive(false);
housePhone2020Button.SetActive(false);
basicCellPhone2020Button.SetActive(false);
BackFromCommunications();
utilitiesEntertainmentScreen.SetActive(true);
utilitiesEntertainmentButton.SetActive(false);
utilitiesScreen.SetActive(false);
utilityEntertainment1990 = true;
basicCable1990 = true;
utilityEntertainmentCost1990 = 20.00;
utilitiesCost1990 += utilityEntertainmentCost1990;
basicCable1990Screen.SetActive(true);
utilitiesEntertainmentScreen.SetActive(false);
premiumCable1990Button.SetActive(false);
BackFromEntertainment();
utilityEntertainment2020 = true;
basicCable2020 = true;
utilityEntertainment2020Selected = "Basic Cable";
utilityEntertainmentCost2020 = 40.00;
utilitiesCost2020 += utilityEntertainmentCost2020;
basicCable2020Screen.SetActive(true);
utilitiesEntertainmentScreen.SetActive(false);
premiumCable2020Button.SetActive(false);
streamingService2020Button.SetActive(false);
BackFromEntertainment();
utilityEntertainment1990 = true;
premiumCable1990 = true;
utilityEntertainmentCost1990 = 40.00;
premiumCable1990Screen.SetActive(true);
utilitiesEntertainmentScreen.SetActive(false);
basicCable1990Button.SetActive(false);
BackFromEntertainment();
utilityEntertainment2020 = true;
premiumCable2020 = true;
utilityEntertainmentCost2020 = 80.00;
utilitiesCost2020 += utilityEntertainmentCost2020;
premiumCable2020Screen.SetActive(true);
utilitiesEntertainmentScreen.SetActive(false);
basicCable2020Button.SetActive(false);
streamingService2020Button.SetActive(false);
BackFromEntertainment();
}
utilityEntertainment2020 = true;
streamingService2020 = true;
utilityEntertainmentCost2020 = 60.00;
utilitiesCost2020 += utilityEntertainmentCost2020;
streamingService2020Screen.SetActive(true);
utilitiesEntertainmentScreen.SetActive(false);
basicCable2020Button.SetActive(false);
premiumCable2020Button.SetActive(false);
BackFromEntertainment();
utilitiesInternetScreen.SetActive(true);
utilitiesInternetButton.SetActive(false);
utilitiesScreen.SetActive(false);
utilityInternet2020 = true;
mb50Internet = true;
utilityInternetCost2020 = 20.00;
utilitiesCost2020 += utilityInternetCost2020;
mb50Internet2020Screen.SetActive(true);
utilitiesInternetScreen.SetActive(false);
mb100Internet2020Button.SetActive(false);
mb200Internet2020Button.SetActive(false);
BackFromInternet();
utilityInternet2020 = true;
mb100Internet = true;
utilityInternet2020Selected = "100MB/s Internet";
utilityInternetCost2020 = 40.00;
utilitiesCost2020 += utilityInternetCost2020;
mb100Internet2020Screen.SetActive(true);
utilitiesInternetScreen.SetActive(false);
mb50Internet2020Button.SetActive(false);
mb200Internet2020Button.SetActive(false);
BackFromInternet();
utilityInternet2020 = true;
mb200Internet = true;
utilityInternetCost2020 = 70.00;
utilitiesCost2020 += utilityInternetCost2020;
mb200Internet2020Screen.SetActive(true);
utilitiesInternetScreen.SetActive(false);
mb50Internet2020Button.SetActive(false);
mb100Internet2020Button.SetActive(false);
BackFromInternet();
utilitiesElectricScreen.SetActive(false);
utilitiesWaterScreen.SetActive(false);
utilitiesCommunicationsScreen.SetActive(false);
utilitiesEntertainmentScreen.SetActive(false);
utilitiesInternetScreen.SetActive(false);
utilitiesSelected ++;
utilitiesScreen.SetActive(true);
if (utilitiesSelected >= 5)
toTransportationScreenButton.SetActive(true);
{
housePhone1990Screen.SetActive(false);
housePhone2020Screen.SetActive(false);
basicCellPhone1990Screen.SetActive(false);
basicCellPhone2020Screen.SetActive(false);
unlimitedCellPhone2020Screen.SetActive(false);
utilitiesCommunicationsScreen.SetActive(true);
basicCable1990Screen.SetActive(false);
basicCable2020Screen.SetActive(false);
premiumCable1990Screen.SetActive(false);
premiumCable2020Screen.SetActive(false);
streamingService2020Screen.SetActive(false);
utilitiesEntertainmentScreen.SetActive(true);
mb50Internet2020Screen.SetActive(false);
mb100Internet2020Screen.SetActive(false);
mb200Internet2020Screen.SetActive(false);
utilitiesInternetScreen.SetActive(true);
}
//Selecting Transportation
if (bicycle == true)
transportationScreen.SetActive(false);
bicycleScreen.SetActive(true);
usedCarScreen.SetActive(false);
newCarScreen.SetActive(false);
motorcycleScreen.SetActive(false);
busScreen.SetActive(false);
trainScreen.SetActive(false);
transportationSelected = "Bicycle";
travelNow = 1;
transportationScreen.SetActive(false);
bicycleScreen.SetActive(false);
usedCarScreen.SetActive(true);
newCarScreen.SetActive(false);
motorcycleScreen.SetActive(false);
busScreen.SetActive(false);
trainScreen.SetActive(false);
travelNow = 2;
payTransportationDescriptionText.text = "???";
transportationScreen.SetActive(false);
bicycleScreen.SetActive(false);
usedCarScreen.SetActive(false);
newCarScreen.SetActive(true);
motorcycleScreen.SetActive(false);
busScreen.SetActive(false);
trainScreen.SetActive(false);
travelNow = 3;
payTransportationDescriptionText.text = "???";
}
transportationScreen.SetActive(false);
bicycleScreen.SetActive(false);
usedCarScreen.SetActive(false);
newCarScreen.SetActive(false);
motorcycleScreen.SetActive(true);
busScreen.SetActive(false);
trainScreen.SetActive(false);
transportationSelected = "Motorcycle";
travelNow = 4;
payTransportationDescriptionText.text = "???";
transportationScreen.SetActive(false);
bicycleScreen.SetActive(false);
usedCarScreen.SetActive(false);
newCarScreen.SetActive(false);
motorcycleScreen.SetActive(false);
busScreen.SetActive(true);
trainScreen.SetActive(false);
transportationSelected = "City Bus Transit";
travelNow = 5;
payTransportationDescriptionText.text = "???";
if (train == true)
transportationScreen.SetActive(false);
bicycleScreen.SetActive(false);
usedCarScreen.SetActive(false);
newCarScreen.SetActive(false);
motorcycleScreen.SetActive(false);
busScreen.SetActive(false);
trainScreen.SetActive(true);
travelNow = 6;
payTransportationDescriptionText.text = "???";
switch (travelNow)
{
case 1:
break;
case 2:
break;
case 3:
break;
case 4:
break;
case 5:
break;
case 6:
break;
bicycle = true;
ChooseTransportation();
usedCar = true;
ChooseTransportation();
}
public void ChooseTransportationNewCar()
newCar = true;
ChooseTransportation();
motorcycle = true;
ChooseTransportation();
bus = true;
ChooseTransportation();
train = true;
ChooseTransportation();
{
giftMoneyScreen1.SetActive(false);
giftMoneyScreen2.SetActive(true);
welcomeScreen.SetActive(false);
genderScreen.SetActive(true);
genderScreen.SetActive(false);
maleScreen.SetActive(false);
femaleScreen.SetActive(false);
otherGenderScreen.SetActive(false);
raceScreen.SetActive(true);
}
//Move to Education Selection Screen
raceScreen.SetActive(false);
europeanDescentScreen.SetActive(false);
africanDescentScreen.SetActive(false);
nativeAmericanDescentScreen.SetActive(false);
hispanicDescentScreen.SetActive(false);
asianDescentScreen.SetActive(false);
otherDescentScreen.SetActive(false);
educationScreen.SetActive(true);
educationScreen.SetActive(false);
educationScreenNoDegree.SetActive(false);
educationScreenHSDiploma.SetActive(false);
educationScreenBachelorsDegree.SetActive(false);
educationScreenMastersDegree.SetActive(false);
educationScreenAdvancedDegree.SetActive(false);
jobScreen.SetActive(true);
}
//Move to Housing Selection Screen
jobScreen.SetActive(false);
waiterScreen.SetActive(false);
cashierScreen.SetActive(false);
fryCookScreen.SetActive(false);
customerServiceAgentScreen.SetActive(false);
teacherScreen.SetActive(false);
licensedSalesAgentScreen.SetActive(false);
programmerScreen.SetActive(false);
unknownJobScreen.SetActive(false);
doctorScreen.SetActive(false);
lawyerScreen.SetActive(false);
housingScreen.SetActive(true);
housingScreen.SetActive(false);
livingWithParentsScreen.SetActive(false);
livingWithRoommatesScreen.SetActive(false);
basicApartmentScreen.SetActive(false);
luxuryApartmentScreen.SetActive(false);
basicHouseScreen.SetActive(false);
luxuryHouseScreen.SetActive(false);
utilitiesScreen.SetActive(true);
backFromCommunicationsButton.SetActive(true);
backFromEntertainmentButton.SetActive(true);
if (utilityInternet2020 == true)
backFromInternetButton.SetActive(true);
utilitiesScreen.SetActive(false);
utilitiesElectricScreen.SetActive(false);
utilitiesWaterScreen.SetActive(false);
utilitiesCommunicationsScreen.SetActive(false);
housePhone1990Screen.SetActive(false);
housePhone2020Screen.SetActive(false);
basicCellPhone1990Screen.SetActive(false);
basicCellPhone2020Screen.SetActive(false);
unlimitedCellPhone2020Screen.SetActive(false);
utilitiesEntertainmentScreen.SetActive(false);
basicCable1990Screen.SetActive(false);
basicCable2020Screen.SetActive(false);
premiumCable2020Screen.SetActive(false);
streamingService2020Screen.SetActive(false);
utilitiesInternetScreen.SetActive(false);
mb50Internet2020Screen.SetActive(false);
mb100Internet2020Screen.SetActive(false);
mb200Internet2020Screen.SetActive(false);
transportationScreen.SetActive(true);
transportationScreen.SetActive(false);
usedCarScreen.SetActive(false);
newCarScreen.SetActive(false);
motorcycleScreen.SetActive(false);
busScreen.SetActive(false);
trainScreen.SetActive(false);
giftMoneyScreen1.SetActive(true);
giftMoneyScreen2.SetActive(false);
introSummaryScreen.SetActive(true);
introSummaryScreen.SetActive(false);
introSummary1990Screen.SetActive(true);
introSummary2020Screen.SetActive(false);
IntroSummary1990();
introSummaryScreen.SetActive(false);
introSummary1990Screen.SetActive(false);
introSummary2020Screen.SetActive(true);
IntroSummary2020();
{
summaryInitialMoney2020Text.text = "Initial Money: $" + initialMoney2020;
introSummaryScreen.SetActive(true);
introSummary1990Screen.SetActive(false);
introSummary2020Screen.SetActive(false);
//Move to Simulation
simulationSection.SetActive(true);
mainSimulationScreen.SetActive(true);
introSummaryScreen.SetActive(false);
introductionSection.SetActive(false);
m1++;
m2++;
m3++;
m4++;
m5++;
m6++;
m7++;
m8++;
m9++;
m10++;
m11++;
m12++;
MainSimulationIteration1();
MainSimulationStatus();
//SceneManager.LoadScene(Week01);
simulationSection.SetActive(true);
simulationStartScreen.SetActive(true);
introSummaryScreen.SetActive(false);
introductionSection.SetActive(false);
//Simulation Functions
simulationStartScreen.SetActive(false);
mainSimulationScreen.SetActive(true);
m1++;
m2++;
m3++;
m4++;
m5++;
m6++;
m7++;
m8++;
m9++;
m10++;
m11++;
m12++;
MainSimulationIteration1();
MainSimulationStatus();
if (m1 == 1 || m1 == 3 || m2 == 1 || m2 == 3 || m3 == 1 || m3 == 3)
mainSimulationScreen.SetActive(true);
payDayScreen1.SetActive(true);
mainSimulationScreen.SetActive(false);
pauseMenuScreen.SetActive(true);
pauseMenuScreen.SetActive(false);
{
//SceneManager.LoadScene(MainMenu);
playerStats1990Screen.SetActive(true);
PlayerStats1990();
playerStats2020Screen.SetActive(true);
PlayerStats2020();
playerStats1990Screen.SetActive(false);
playerStats2020Screen.SetActive(false);
switch (i)
case 1:
monthTitleText.text = monthTitle;
rentDue = true;
utilitiesDue = true;
electricityDue = true;
waterDue = true;
communicationsDue = true;
entertainmentDue = true;
internetDue = true;
break;
case 2:
monthNumber =2;
monthTitleText.text = monthTitle;
rentDue = true;
utilitiesDue = true;
electricityDue = true;
waterDue = true;
communicationsDue = true;
entertainmentDue = true;
internetDue = true;
break;
case 3:
monthNumber = 3;
monthTitleText.text = monthTitle;
rentDue = true;
utilitiesDue = true;
electricityDue = true;
waterDue = true;
communicationsDue = true;
entertainmentDue = true;
internetDue = true;
break;
case 4:
monthNumber = 4;
monthTitle = "Month 04";
monthTitleText.text = monthTitle;
rentDue = true;
utilitiesDue = true;
electricityDue = true;
waterDue = true;
communicationsDue = true;
entertainmentDue = true;
internetDue = true;
break;
case 5:
monthNumber = 5;
monthTitleText.text = monthTitle;
rentDue = true;
utilitiesDue = true;
electricityDue = true;
waterDue = true;
communicationsDue = true;
entertainmentDue = true;
internetDue = true;
break;
case 6:
monthNumber =6;
rentDue = true;
utilitiesDue = true;
electricityDue = true;
waterDue = true;
communicationsDue = true;
entertainmentDue = true;
internetDue = true;
break;
case 7:
monthNumber = 7;
monthTitleText.text = monthTitle;
rentDue = true;
utilitiesDue = true;
electricityDue = true;
waterDue = true;
communicationsDue = true;
entertainmentDue = true;
internetDue = true;
break;
case 8:
monthNumber = 8;
monthTitleText.text = monthTitle;
rentDue = true;
utilitiesDue = true;
electricityDue = true;
waterDue = true;
communicationsDue = true;
entertainmentDue = true;
internetDue = true;
break;
case 9:
monthNumber = 9;
monthTitleText.text = monthTitle;
rentDue = true;
utilitiesDue = true;
electricityDue = true;
waterDue = true;
communicationsDue = true;
entertainmentDue = true;
internetDue = true;
break;
case 10:
monthNumber = 10;
monthTitleText.text = monthTitle;
rentDue = true;
utilitiesDue = true;
electricityDue = true;
waterDue = true;
communicationsDue = true;
entertainmentDue = true;
internetDue = true;
break;
case 11:
monthNumber = 11;
monthTitleText.text = monthTitle;
rentDue = true;
utilitiesDue = true;
electricityDue = true;
waterDue = true;
communicationsDue = true;
entertainmentDue = true;
internetDue = true;
break;
case 12:
monthNumber = 12;
monthTitleText.text = monthTitle;
rentDue = true;
utilitiesDue = true;
electricityDue = true;
waterDue = true;
communicationsDue = true;
entertainmentDue = true;
internetDue = true;
break;
monthNumber = i;
switch (j)
case 1:
weekTitleText.text = weekTitle;
payDayNow = true;
groceriesDue = true;
transportationDue = true;
break;
case 2:
weekTitleText.text = weekTitle;
payDayNow = false;
groceriesDue = true;
transportationDue = true;
break;
case 3:
weekTitleText.text = weekTitle;
payDayNow = true;
groceriesDue = true;
transportationDue = true;
break;
case 4:
weekTitleText.text = weekTitle;
payDayNow = false;
groceriesDue = true;
transportationDue = true;
break;
weekNumber = j;
}
}
switch (m)
case 1:
monthNumber = 1;
monthTitleText.text = monthTitle;
rentDue = true;
utilitiesDue = true;
electricityDue = true;
waterDue = true;
communicationsDue = true;
entertainmentDue = true;
internetDue = true;
switch (m1)
case 1:
weekTitleText.text = weekTitle;
payDayNow = true;
groceriesDue = true;
transportationDue = true;
groceryComplete = false;
transportationComplete = false;
break;
case 2:
weekTitleText.text = weekTitle;
payDayNow = false;
groceriesDue = true;
transportationDue = true;
groceryComplete = false;
transportationComplete = false;
break;
case 3:
weekTitleText.text = weekTitle;
payDayNow = true;
groceriesDue = true;
transportationDue = true;
groceryComplete = false;
transportationComplete = false;
break;
case 4:
weekTitleText.text = weekTitle;
payDayNow = false;
groceriesDue = true;
transportationDue = true;
groceryComplete = false;
transportationComplete = false;
break;
break;
case 2:
monthNumber = 2;
monthTitleText.text = monthTitle;
rentDue = true;
utilitiesDue = true;
electricityDue = true;
waterDue = true;
communicationsDue = true;
entertainmentDue = true;
internetDue = true;
//Establishing & Resetting Variables Each Week
switch (m2)
case 1:
weekTitleText.text = weekTitle;
payDayNow = true;
groceriesDue = true;
transportationDue = true;
groceryComplete = false;
transportationComplete = false;
break;
case 2:
weekTitleText.text = weekTitle;
payDayNow = false;
groceriesDue = true;
transportationDue = true;
groceryComplete = false;
transportationComplete = false;
break;
case 3:
weekTitle = "Week 03";
weekTitleText.text = weekTitle;
payDayNow = true;
groceriesDue = true;
transportationDue = true;
groceryComplete = false;
transportationComplete = false;
break;
case 4:
weekTitleText.text = weekTitle;
payDayNow = false;
groceriesDue = true;
transportationDue = true;
groceryComplete = false;
transportationComplete = false;
break;
break;
case 3:
monthNumber = 3;
rentDue = true;
utilitiesDue = true;
electricityDue = true;
waterDue = true;
communicationsDue = true;
entertainmentDue = true;
internetDue = true;
switch (m3)
case 1:
weekTitleText.text = weekTitle;
payDayNow = true;
groceriesDue = true;
transportationDue = true;
groceryComplete = false;
transportationComplete = false;
break;
case 2:
weekTitleText.text = weekTitle;
weekSummaryTitleText.text = "Month 03 - Week 02 Summary";
payDayNow = false;
groceriesDue = true;
transportationDue = true;
groceryComplete = false;
transportationComplete = false;
break;
case 3:
weekTitleText.text = weekTitle;
payDayNow = true;
groceriesDue = true;
transportationDue = true;
groceryComplete = false;
transportationComplete = false;
break;
case 4:
weekTitleText.text = weekTitle;
payDayNow = false;
groceriesDue = true;
transportationDue = true;
groceryComplete = false;
transportationComplete = false;
break;
break;
case 4:
monthNumber = 4;
monthTitleText.text = monthTitle;
rentDue = true;
utilitiesDue = true;
electricityDue = true;
waterDue = true;
communicationsDue = true;
entertainmentDue = true;
internetDue = true;
switch (m4)
case 1:
weekTitleText.text = weekTitle;
groceriesDue = true;
transportationDue = true;
break;
case 2:
weekTitleText.text = weekTitle;
payDayNow = false;
groceriesDue = true;
transportationDue = true;
break;
case 3:
weekTitleText.text = weekTitle;
payDayNow = true;
groceriesDue = true;
transportationDue = true;
break;
case 4:
weekTitleText.text = weekTitle;
groceriesDue = true;
transportationDue = true;
break;
break;
case 5:
monthNumber = 5;
monthTitleText.text = monthTitle;
rentDue = true;
utilitiesDue = true;
electricityDue = true;
waterDue = true;
communicationsDue = true;
entertainmentDue = true;
internetDue = true;
switch (m5)
case 1:
weekTitleText.text = weekTitle;
weekSummaryTitleText.text = "Month 05 - Week 01 Summary";
payDayNow = true;
groceriesDue = true;
transportationDue = true;
break;
case 2:
weekTitleText.text = weekTitle;
payDayNow = false;
groceriesDue = true;
transportationDue = true;
break;
case 3:
weekTitleText.text = weekTitle;
payDayNow = true;
groceriesDue = true;
transportationDue = true;
break;
case 4:
payDayNow = false;
groceriesDue = true;
transportationDue = true;
break;
break;
case 6:
monthNumber = 6;
monthTitleText.text = monthTitle;
rentDue = true;
utilitiesDue = true;
electricityDue = true;
waterDue = true;
communicationsDue = true;
entertainmentDue = true;
internetDue = true;
switch (m6)
case 1:
weekTitle = "Week 01";
weekTitleText.text = weekTitle;
payDayNow = true;
groceriesDue = true;
transportationDue = true;
break;
case 2:
weekTitleText.text = weekTitle;
payDayNow = false;
groceriesDue = true;
transportationDue = true;
break;
case 3:
weekTitleText.text = weekTitle;
payDayNow = true;
groceriesDue = true;
transportationDue = true;
break;
case 4:
weekTitleText.text = weekTitle;
payDayNow = false;
groceriesDue = true;
transportationDue = true;
break;
break;
case 7:
monthNumber = 7;
monthTitleText.text = monthTitle;
rentDue = true;
utilitiesDue = true;
electricityDue = true;
waterDue = true;
communicationsDue = true;
entertainmentDue = true;
internetDue = true;
switch (m7)
{
case 1:
weekTitleText.text = weekTitle;
payDayNow = true;
groceriesDue = true;
transportationDue = true;
break;
case 2:
weekTitleText.text = weekTitle;
payDayNow = false;
groceriesDue = true;
transportationDue = true;
break;
case 3:
weekTitleText.text = weekTitle;
payDayNow = true;
groceriesDue = true;
transportationDue = true;
break;
case 4:
weekTitleText.text = weekTitle;
payDayNow = false;
groceriesDue = true;
transportationDue = true;
break;
break;
case 8:
monthNumber = 8;
monthTitleText.text = monthTitle;
rentDue = true;
utilitiesDue = true;
electricityDue = true;
waterDue = true;
communicationsDue = true;
entertainmentDue = true;
internetDue = true;
//Establishing & Resetting Variables Each Week
switch (m8)
case 1:
weekTitleText.text = weekTitle;
payDayNow = true;
groceriesDue = true;
transportationDue = true;
break;
case 2:
weekTitleText.text = weekTitle;
payDayNow = false;
groceriesDue = true;
transportationDue = true;
break;
case 3:
weekTitleText.text = weekTitle;
payDayNow = true;
groceriesDue = true;
transportationDue = true;
break;
case 4:
weekTitleText.text = weekTitle;
payDayNow = false;
groceriesDue = true;
transportationDue = true;
break;
break;
case 9:
monthNumber = 9;
monthTitleText.text = monthTitle;
rentDue = true;
utilitiesDue = true;
electricityDue = true;
waterDue = true;
communicationsDue = true;
entertainmentDue = true;
internetDue = true;
switch (m9)
case 1:
weekTitleText.text = weekTitle;
payDayNow = true;
groceriesDue = true;
transportationDue = true;
break;
case 2:
weekTitleText.text = weekTitle;
payDayNow = false;
groceriesDue = true;
transportationDue = true;
break;
case 3:
weekTitleText.text = weekTitle;
groceriesDue = true;
transportationDue = true;
break;
case 4:
weekTitleText.text = weekTitle;
payDayNow = false;
groceriesDue = true;
transportationDue = true;
break;
break;
case 10:
monthNumber = 10;
monthTitleText.text = monthTitle;
rentDue = true;
utilitiesDue = true;
electricityDue = true;
waterDue = true;
communicationsDue = true;
entertainmentDue = true;
internetDue = true;
switch (m10)
case 1:
weekTitleText.text = weekTitle;
payDayNow = true;
groceriesDue = true;
transportationDue = true;
break;
case 2:
weekTitleText.text = weekTitle;
payDayNow = false;
groceriesDue = true;
transportationDue = true;
break;
case 3:
payDayNow = true;
groceriesDue = true;
transportationDue = true;
break;
case 4:
weekTitleText.text = weekTitle;
payDayNow = false;
groceriesDue = true;
transportationDue = true;
break;
break;
case 11:
monthNumber = 11;
monthTitleText.text = monthTitle;
rentDue = true;
utilitiesDue = true;
electricityDue = true;
waterDue = true;
communicationsDue = true;
entertainmentDue = true;
internetDue = true;
switch (m11)
case 1:
weekTitleText.text = weekTitle;
payDayNow = true;
groceriesDue = true;
transportationDue = true;
break;
case 2:
weekTitleText.text = weekTitle;
payDayNow = false;
groceriesDue = true;
transportationDue = true;
break;
case 3:
weekTitleText.text = weekTitle;
payDayNow = true;
groceriesDue = true;
transportationDue = true;
break;
case 4:
weekTitleText.text = weekTitle;
payDayNow = false;
groceriesDue = true;
transportationDue = true;
break;
break;
case 12:
monthNumber = 12;
monthTitleText.text = monthTitle;
utilitiesDue = true;
electricityDue = true;
waterDue = true;
communicationsDue = true;
entertainmentDue = true;
internetDue = true;
switch (m12)
case 1:
weekTitleText.text = weekTitle;
payDayNow = true;
groceriesDue = true;
transportationDue = true;
break;
case 2:
weekTitleText.text = weekTitle;
payDayNow = false;
groceriesDue = true;
transportationDue = true;
break;
case 3:
weekTitleText.text = weekTitle;
payDayNow = true;
groceriesDue = true;
transportationDue = true;
break;
case 4:
weekTitleText.text = weekTitle;
payDayNow = false;
groceriesDue = true;
transportationDue = true;
break;
break;
{
switch (randomEventCounter)
case 1:
RandomEvents2();
break;
case 2:
RandomEvents2();
break;
case 3:
RandomEvents2();
break;
switch (randomEventNumber)
case 1:
break;
case 2:
break;
case 3:
break;
case 4:
break;
case 5:
break;
payRentScreen1.SetActive(true);
payUtilitiesScreen.SetActive(true);
payUtilitiesElectricityScreen.SetActive(true);
payUtilitiesScreen.SetActive(false);
payUtilitiesWaterScreen.SetActive(true);
payUtilitiesScreen.SetActive(false);
payUtilitiesCommunicationsScreen.SetActive(true);
payUtilitiesScreen.SetActive(false);
payUtilitiesEntertainmentScreen.SetActive(true);
payUtilitiesScreen.SetActive(false);
payUtilitiesInternetScreen.SetActive(true);
payUtilitiesScreen.SetActive(false);
}
public void ToPayGroceries()
payGroceriesScreen.SetActive(true);
payTransportationScreen1.SetActive(true);
payDayScreen2.SetActive(true);
payDayScreen1.SetActive(false);
collectPayCheckButton.SetActive(false);
currentMoney1990 += payRecieved1990;
currentMoney2020 += payRecieved2020;
monthMoneyObtained1990 += payRecieved1990;
monthMoneyObtained2020 += payRecieved2020;
payRentScreen2.SetActive(true);
payRentScreen1.SetActive(false);
payRentButton.SetActive(false);
//payRent1990Text.SetActive(true);
//payRent2020Text.SetActive(true);
rentPaid1990 = rentCost1990;
rentPaid2020 = rentCost2020;
currentMoney1990 -= rentPaid1990;
currentMoney2020 -= rentPaid2020;
monthMoneyLoss1990 += rentPaid1990;
monthMoneyLoss2020 += rentPaid2020;
mortgagePaid1990 = mortgageCost1990;
mortgagePaid2020 = mortgageCost2020;
currentMoney1990 -= mortgagePaid1990;
currentMoney2020 -= mortgagePaid2020;
monthMoneyLoss1990 += mortgagePaid1990;
monthMoneyLoss2020 += mortgagePaid2020;
housingComplete = true;
payUtilitiesElectricity1990Button.SetActive(false);
electricity1990PaidTextObject.SetActive(true);
utilitiesPaid1990 += utilityElectricPaid1990;
electricity1990Paid = true;
payUtilitiesElectricity2020Button.SetActive(false);
electricity2020PaidTextObject.SetActive(true);
utilityElectricPaid2020 = Random.Range(100, 300);
utilitiesPaid2020 += utilityElectricPaid2020;
electricity2020Paid = true;
payUtilitiesWater1990Button.SetActive(false);
water1990PaidTextObject.SetActive(true);
utilitiesPaid1990 += utilityWaterPaid1990;
water1990Paid = true;
payUtilitiesWater2020Button.SetActive(false);
water2020PaidTextObject.SetActive(true);
utilitiesPaid2020 += utilityWaterPaid2020;
water2020Paid = true;
payUtilitiesCommunications1990Button.SetActive(false);
communications1990PaidTextObject.SetActive(true);
utilityCommunicationsPaid1990 = utilityCommunicationsCost1990;
utilitiesPaid1990 += utilityCommunicationsPaid1990;
communications1990Paid = true;
payUtilitiesCommunications2020Button.SetActive(false);
communications2020PaidTextObject.SetActive(true);
utilityCommunicationsPaid2020 = utilityCommunicationsCost2020;
utilitiesPaid2020 += utilityCommunicationsPaid2020;
communications2020Paid = true;
payUtilitiesEntertainment1990Button.SetActive(false);
entertainment1990PaidTextObject.SetActive(true);
utilityEntertainmentPaid1990 = utilityEntertainmentCost1990;
utilitiesPaid1990 += utilityEntertainmentPaid1990;
entertainment1990Paid = true;
payUtilitiesEntertainment2020Button.SetActive(false);
entertainment2020PaidTextObject.SetActive(true);
utilityEntertainmentPaid2020 = utilityEntertainmentCost2020;
utilitiesPaid2020 += utilityEntertainmentPaid2020;
entertainment2020Paid = true;
payUtilitiesInternet1990Button.SetActive(false);
internet1990PaidTextObject.SetActive(true);
utilityInternetPaid1990 = utilityInternetCost1990;
internet1990Paid = true;
payUtilitiesInternet2020Button.SetActive(false);
internet2020PaidTextObject.SetActive(true);
utilityInternetPaid2020 = utilityInternetCost2020;
utilitiesPaid2020 += utilityInternetPaid2020;
internet2020Paid = true;
payGroceriesFastFoodScreen.SetActive(true);
groceryCost1990 = 40.00;
groceryCost2020 = 60.00;
groceryPaid1990 = groceryCost1990;
groceryPaid2020 = groceryCost2020;
fastFood1990PaidText.text = "You paid $" + groceryPaid1990 + " for Fast Food this week!";
fastFood2020PaidText.text = "You paid $" + groceryPaid2020 + " for Fast Food this week!";
currentMoney1990 -= groceryPaid1990;
currentMoney2020 -= groceryPaid2020;
monthMoneyLoss1990 += groceryPaid1990;
monthMoneyLoss2020 += groceryPaid2020;
groceryComplete = true;
payGroceriesScreen.SetActive(false);
//payGroceriesFastFoodButton.SetActive(false);
//payGroceriesCookingButton.SetActive(false);
//payGroceriesEatingOutButton.SetActive(false);
payGroceriesCookingScreen.SetActive(true);
groceryCost1990 = 70.00;
groceryCost2020 = 100.00;
groceryPaid1990 = groceryCost1990;
groceryPaid2020 = groceryCost2020;
cooking1990PaidText.text = "You paid $" + groceryPaid1990 + " for Cooking Food this week!";
cooking2020PaidText.text = "You paid $" + groceryPaid2020 + " for Cooking Food this week!";
currentMoney1990 -= groceryPaid1990;
currentMoney2020 -= groceryPaid1990;
monthMoneyLoss1990 += groceryPaid1990;
monthMoneyLoss2020 += groceryPaid2020;
groceryComplete = true;
payGroceriesScreen.SetActive(false);
//payGroceriesFastFoodButton.SetActive(false);
//payGroceriesCookingButton.SetActive(false);
//payGroceriesEatingOutButton.SetActive(false);
payGroceriesEatingOutScreen.SetActive(true);
groceryCost1990 = 100.00;
groceryCost2020 = 150.00;
groceryPaid1990 = groceryCost1990;
groceryPaid2020 = groceryCost2020;
eatingOut1990PaidText.text = "You paid $" + groceryPaid1990 + " for Eating Out this week!";
eatingOut2020PaidText.text = "You paid $" + groceryPaid2020 + " for Eating Out this week!";
currentMoney1990 -= groceryPaid1990;
currentMoney2020 -= groceryPaid2020;
monthMoneyLoss1990 += groceryPaid1990;
monthMoneyLoss2020 += groceryPaid2020;
groceryComplete = true;
payGroceriesScreen.SetActive(false);
//payGroceriesFastFoodButton.SetActive(false);
//payGroceriesCookingButton.SetActive(false);
//payGroceriesEatingOutButton.SetActive(false);
payTransportationScreen2.SetActive(true);
transportationPaid1990 = transportationCost1990;
transportationPaid2020 = transportationCost2020;
currentMoney1990 -= transportationPaid1990;
currentMoney2020 -= transportationPaid2020;
monthMoneyLoss1990 += transportationPaid1990;
monthMoneyLoss2020 += transportationPaid2020;
transportationComplete = true;
payTransportationScreen1.SetActive(false);
payTransportationButton.SetActive(false);
randomEventScreen1.SetActive(false);
randomEvent = false;
playerStats1990Screen.SetActive(false);
playerStats2020Screen.SetActive(false);
payDayScreen2.SetActive(false);
payRentScreen2.SetActive(false);
MainSimulationStatus();
//randomEvent = true;
randomEventCounter++;
RandomEvents1();
selectPayRentButton.SetActive(false);
toWeekSummaryButton.SetActive(true);
payUtilitiesScreen.SetActive(false);
MainSimulationStatus();
utilitiesComplete = true;
//randomEvent = true;
randomEventCounter++;
RandomEvents1();
selectPayUtilitiesButton.SetActive(false);
{
toWeekSummaryButton.SetActive(true);
monthMoneyLoss1990 += utilitiesPaid1990;
monthMoneyLoss2020 += utilitiesPaid2020;
payUtilitiesElectricityScreen.SetActive(false);
electricityComplete = true;
payUtilitiesScreen.SetActive(true);
selectPayUtilitiesElectricityButton.SetActive(false);
payUtilitiesWaterScreen.SetActive(false);
waterComplete = true;
payUtilitiesScreen.SetActive(true);
selectPayUtilitiesWaterButton.SetActive(false);
payUtilitiesCommunicationsScreen.SetActive(false);
communicationsComplete = true;
payUtilitiesScreen.SetActive(true);
selectPayUtilitiesCommunicationsButton.SetActive(false);
payUtilitiesEntertainmentScreen.SetActive(false);
entertainmentComplete = true;
payUtilitiesScreen.SetActive(true);
selectPayUtilitiesEntertainmentButton.SetActive(false);
payUtilitiesInternetScreen.SetActive(false);
internetComplete = true;
payUtilitiesScreen.SetActive(true);
selectPayUtilitiesInternetButton.SetActive(false);
payGroceriesScreen.SetActive(false);
payGroceriesFastFoodScreen.SetActive(false);
payGroceriesCookingScreen.SetActive(false);
payGroceriesEatingOutScreen.SetActive(false);
MainSimulationStatus();
//randomEvent = true;
randomEventCounter++;
RandomEvents1();
selectPayGroceriesButton.SetActive(false);
toWeekSummaryButton.SetActive(true);
payTransportationScreen2.SetActive(false);
MainSimulationStatus();
//randomEvent = true;
randomEventCounter++;
RandomEvents1();
selectPayTransportationButton.SetActive(false);
{
toWeekSummaryButton.SetActive(true);
weekSummaryScreen.SetActive(true);
mainSimulationScreen.SetActive(false);
weekSummary1990Screen.SetActive(true);
WeekSummary1990();
weekSummaryScreen.SetActive(false);
weekSummary2020Screen.SetActive(true);
WeekSummary2020();
weekSummaryScreen.SetActive(false);
}
weekSummaryScreen.SetActive(true);
weekSummary1990Screen.SetActive(false);
weekSummary2020Screen.SetActive(false);
mainSimulationScreen.SetActive(false);
simulationSection.SetActive(false);
//weekSummaryScreen.SetActive(false);
monthSummaryScreen.SetActive(true);
if (monthMoneyRemaining1990 >= 0)
if (monthMoneyRemaining2020 >= 0)
}
if (m == 1)
month01MoneyObtained1990 = monthMoneyObtained1990;
month01MoneyObtained2020 = monthMoneyObtained2020;
month01MoneyLoss1990 = monthMoneyLoss1990;
month01MoneyLoss2020 = monthMoneyLoss2020;
else if (m == 2)
month02MoneyObtained1990 = monthMoneyObtained1990;
month02MoneyObtained2020 = monthMoneyObtained2020;
month02MoneyLoss1990 = monthMoneyLoss1990;
month02MoneyLoss2020 = monthMoneyLoss2020;
else if (m == 3)
month03MoneyObtained1990 = monthMoneyObtained1990;
month03MoneyObtained2020 = monthMoneyObtained2020;
month03MoneyLoss1990 = monthMoneyLoss1990;
month03MoneyLoss2020 = monthMoneyLoss2020;
if (m == 3)
toFinalSummaryButton.SetActive(true);
{
monthSummary1990Screen.SetActive(true);
MonthSummary1990();
monthSummaryScreen.SetActive(false);
monthSummary2020Screen.SetActive(true);
MonthSummary2020();
monthSummaryScreen.SetActive(false);
monthSummaryScreen.SetActive(true);
monthSummary1990Screen.SetActive(false);
monthSummary2020Screen.SetActive(false);
{
monthSummaryScreen.SetActive(false);
monthSummary1990Screen.SetActive(false);
monthSummary2020Screen.SetActive(false);
summarySection.SetActive(false);
m++;
m1 = 0;
m2 = 0;
m3 = 0;
monthMoneyObtained1990 = 0.00;
monthMoneyObtained2020 = 0.00;
monthMoneyLoss1990 = 0.00;
monthMoneyLoss2020 = 0.00;
electricityComplete = false;
waterComplete = false;
communicationsComplete = false;
entertainmentComplete = false;
internetComplete = false;
housingComplete = false;
utilitiesComplete = false;
groceryComplete = false;
transportationComplete = false;
simulationSection.SetActive(true);
simulationStartScreen.SetActive(true);
}
//Simulation Functions - Final Summary
monthSummaryScreen.SetActive(false);
monthSummary1990Screen.SetActive(false);
monthSummary2020Screen.SetActive(false);
finalSummaryScreen.SetActive(true);
FinalSummary();
if (finalMoneyRemaining1990 >= 0)
finalSummaryStatus1990Text.text = "Great Job! You managed to stay afloat this Quarter! But, can
you do the same for next Quarter?";
finalSummaryStatus1990Text.text = "How Unfortunate! It looks lke you are sinking pretty bad!
Maybe things will be better in the next Quarter!";
if (finalMoneyRemaining2020 >= 0)
finalSummaryStatus2020Text.text = "Great Job! You managed to stay afloat this Quarter! But, can
you do the same for next Quarter?";
finalSummaryStatus2020Text.text = "How Unfortunate! It looks lke you are sinking pretty bad!
Maybe things will be better in the next Quarter!";
{
Application.Quit();
//Temp Functions
m++;
ToMainSimulation();