void Starvation_1() { narrationText.text = "The fat man has lost too much weight! He is starving.\n Press 'F' to feed the fat man."; Starvation_1Speak(); Eat(); if (weight < 40) { fatManBodyState = BodyStates.starvation_2; } else if (weight >= 50) { fatManBodyState = BodyStates.starvation_0; } }
void Starvation_2() { narrationText.text = "The fat man is starving to death! Be careful! Don't kill the fat man!\n For the love of god, press'F' to feed the fat man!"; Starvation_2Speak(); Eat(); if (weight < 30) { fatManBodyState = BodyStates.death; } else if (weight >= 40) { fatManBodyState = BodyStates.starvation_1; } }
void Lean() { narrationText.text = "The fat man is now a lean machine.\n Press 'F' to feed the fat man."; LeanSpeak(); Eat(); if (weight < 60) { fatManBodyState = BodyStates.starvation_0; } else if (weight >= 70) { fatManBodyState = BodyStates.looking_good; } }
void Starvation_0() { narrationText.text = "The fat man has lost a lot of weight! Possibly too much...\n Press 'F' to feed the fat man."; Starvation_0Speak(); Eat(); if (weight < 50) { fatManBodyState = BodyStates.starvation_1; } else if (weight >= 60) { fatManBodyState = BodyStates.lean; } }
void Overweight() { narrationText.text = "The fat man has lost a little weight.\n Press 'F' to feed the fat man."; OverweightSpeak(); Eat(); if (weight < 80) { fatManBodyState = BodyStates.looking_good; } else if (weight >= 90) { fatManBodyState = BodyStates.fatMan; } }
void LookingGood() { narrationText.text = "The fat man is much healthier now. But is he happy?\n Press 'F' to feed the fat man."; LookingGoodSpeak(); Eat(); if (weight < 70) { fatManBodyState = BodyStates.lean; } else if (weight >= 80) { fatManBodyState = BodyStates.overweight; } }
void Obese_0() { narrationText.text = "The fat man is obese. \n He has a higher chance of developing: cardiovascular\n diseases, diabetes, and depression.\n Press 'F' to feed the fat man."; Obese_0Speak(); Eat(); if (weight < 120) { fatManBodyState = BodyStates.fatMan; } else if (weight >= 140) { fatManBodyState = BodyStates.obese_1; } }
void FatMan() { narrationText.text = "This Fat Man leads a happy life on his couch!\n But now someone else is in control of his food!\n Press 'F' to feed the fat man."; FatManSpeak(); Eat(); if (weight < 90) { fatManBodyState = BodyStates.overweight; } else if (weight >= 120) { fatManBodyState = BodyStates.obese_0; } }
void Obese_1() { narrationText.text = "The fat man is very obese. If he stays like this you will shorten his life expectancy!\n Press 'F' to feed the fat man."; Obese_1Speak(); Eat(); if (weight < 140) { fatManBodyState = BodyStates.obese_0; } else if (weight >= 160) { fatManBodyState = BodyStates.morbid_0; } }
void Morbid_0() { narrationText.text = "The fat man is morbidly obese!\n You should stop feeding him so much.\n Press 'F' if you want to feed the fat man."; Morbid_0Speak(); Eat(); if (weight < 160) { fatManBodyState = BodyStates.obese_1; } else if (weight >= 180) { fatManBodyState = BodyStates.morbid_1; } }
void Morbid_1() { narrationText.text = "Watch out!!\n The fat man could explode!\n DON'T Press 'F' to feed the fat man!"; Morbid_1Speak(); Eat(); if (weight < 180) { fatManBodyState = BodyStates.morbid_0; } else if (weight >= 200) { fatManBodyState = BodyStates.explode; } }
void Start() { hours = 1; dayCount = 1; weight = 100; gramCounter = 999; hungerSlider.value = 100; afternoon = false; nightTime = true; timeText.text = "Time: " + hours + "AM\n" + "Day: " + dayCount; StartCoroutine(Timer()); fatManBodyState = BodyStates.fatMan; }
//Allows for multiple reactions on state change public void ChangeState(BodyStates state) { Transformation(); currentState = state; }