Advertisement
PurePureMilk

Tasks and Events

Dec 17th, 2017
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.35 KB | None | 0 0
  1. //this is "importing a namespace" >> used to bring in user interface information
  2. //turns Text to blue
  3. //Remember to save your scripts >> control s
  4. using UnityEngine;
  5. using UnityEngine.UI;
  6. using System.Collections;
  7.  
  8. public class TextController : MonoBehaviour {
  9.  
  10. public Text myText; //publicly expose all the methods: access_modifier:Type:variable_name
  11.  
  12. private enum States{title,
  13. act1, act2, act3, act4, choose,
  14. borris, borrisE1, borrisA2, borrisA1, borrisE2,
  15. elise, eliseA1, eliseB2, eliseB1, eliseA2,
  16. albert, albertB1, albertE2, albertE1, albertB2,
  17. end
  18. };
  19.  
  20. private States myState;
  21.  
  22. // Use this for initialization
  23. void Start () {
  24. myState = States.title; //this is the starting een
  25. }
  26.  
  27. // Update is called once per frame
  28. void Update ()
  29. {
  30. print (myState);
  31. //prelude
  32. if (myState == States.title) {state_title();}//calls the method and intial screen
  33. else if (myState == States.act1) {state_act1();}
  34. else if (myState == States.act2) {state_act2();}
  35. else if (myState == States.act3) {state_act3();}
  36. else if (myState == States.act4) {state_act4();}
  37. else if (myState == States.choose) {state_choose();}
  38. //borris
  39. else if (myState == States.borris) {state_borris();}
  40. else if (myState == States.borrisE1) {state_borrisE1();}
  41. else if (myState == States.borrisA2) {state_borrisA2();}
  42. else if (myState == States.borrisA1) {state_borrisA1();}
  43. else if (myState == States.borrisE2) {state_borrisE2();}
  44. //elise
  45. else if (myState == States.elise) {state_elise();}
  46. else if (myState == States.eliseA1) {state_eliseA1();}
  47. else if (myState == States.eliseB2) {state_eliseB2();}
  48. else if (myState == States.eliseB1) {state_eliseB2();}
  49. else if (myState == States.eliseA2) {state_eliseA2();}
  50. //albert
  51. else if (myState == States.albert) {state_albert();}
  52. else if (myState == States.albertB1) {state_albertB1();}
  53. else if (myState == States.albertE2) {state_albertE2();}
  54. else if (myState == States.albertE1) {state_albertE1();}
  55. else if (myState == States.albertB2) {state_albertB2();}
  56. //end
  57. else if (myState == States.end) {state_end();}
  58.  
  59.  
  60.  
  61. }
  62. // prelude
  63. void state_title (){
  64. myText.text = "Corpses!\n" +
  65. "Press Space to Start your Adventure.";
  66. if (Input.GetKeyDown (KeyCode.Space)) {myState = States.act1;}
  67. }
  68. void state_act1 (){
  69. myText.text = "In the middle of August, there was a murder case of a Math teacher\n" +
  70. "(Jam) at one of the colleges in town. The teacher was found dead by \n" +
  71. "the security night guard at 10:30 and the body were near the Statue. \n" +
  72. "Press Space to Continue";
  73. if (Input.GetKeyDown (KeyCode.Space)) {myState = States.act2;}
  74. }
  75. void state_act2 (){
  76. myText.text = "In the morning after the corpse had been discovering, Detective Dan investigated\n" +
  77. "the body and found that someone used a heavy object to hit this man until he died.\n" +
  78. "However, a big issue is nobody witness the killer.\n" +
  79. "Press Space to Continue";
  80. if (Input.GetKeyDown (KeyCode.Space)) {myState = States.act3;}
  81. }
  82. void state_act3 (){
  83. myText.text = "So far, Dan has three people as the primary suspects in this case. However, Dan can not\n" +
  84. "gather any evidence that can help determent who is the killer because of lack of \n" +
  85. "cooperation from students. Therefore, Dan needs a person who makes the students feel\n" +
  86. "more comfortable to talk about what they know.\n" +
  87. "Press Space to Continue";
  88. if (Input.GetKeyDown (KeyCode.Space)) {myState = States.act4;}
  89. }
  90. void state_act4 (){
  91. myText.text = "Lenny who obsessed with every aspect of being a detective show up, and he says that he\n" +
  92. "will volunteer to help gather information from the students for Dan. Detective Dan thinks\n" +
  93. "that the students will feel more comfortable to talk with other students.\n" +
  94. "So he agrees to let Lenny join the team\n" +
  95. "Press Space to Continue";
  96. if (Input.GetKeyDown (KeyCode.Space)) {myState = States.choose;}
  97. }
  98. void state_choose (){
  99. myText.text = "Lenny and Dan found three potential witnesses.\n" +
  100. "Press B to see Borris, Press E to see Elise, Press A to see Albert";
  101. if (Input.GetKeyDown (KeyCode.B)) {myState = States.borris;}
  102. else if (Input.GetKeyDown (KeyCode.E)) {myState = States.elise;}
  103. else if (Input.GetKeyDown (KeyCode.A)) {myState = States.albert;}
  104. }
  105. //borris
  106. void state_borris (){
  107. myText.text = "Lenny finds Borris who has acces to every part of the campus\n" +
  108. "Lenny: \"Hi Borris! I'm working on the murder investigation for detective Dan I need your help.\"\n" +
  109. "Borris: \"Hi, Lenny! Before you can get anything from me, I'm going to need your help first.\"\n" +
  110. "Borris asked Lenny to clear up the five piles of leaves around the campus.\n" +
  111. "Lenny: \"Hi, Borris! I'm done clearing the leaves. Now, can I get your help? I'm gooing to need keys to \n" +
  112. "every part of the campus. Dan discovered a heavy object in the murder investigation.\"\n" +
  113. "Now, there's only 2 witness to check: Press E to see Elise or Press A to see Albert";
  114. if (Input.GetKeyDown (KeyCode.E)) {myState = States.borrisE1;}
  115. else if (Input.GetKeyDown (KeyCode.A)) {myState = States.borrisA1;}
  116. }
  117. void state_borrisE1 (){
  118. myText.text = "Lenny then meets with Elise\n" +
  119. "Lenny wants to find more inforamtion about Professor Jam, so he goes to ask Elise where Professor Jam\n" +
  120. "personal notebook is: " +
  121. "Lenny: \"Hi, Elise! I'm in the middle trying to solve the murder investigation of professor Jam. Do you know\"\n" +
  122. "where Jam's notebook is?\n" +
  123. "Elise: \"Hi, Lenny! Hmm, Let me think. Oh, I have an idea!\"" +
  124. "Elise tells Lenny to find out who i sthe most popular person among women in the west building. Lenny decides to ask\n" +
  125. "three people on the campus to find out who they like the most\n" +
  126. "Lenny: \"Hi, there! I wanted to ask which woman do you like the most on the campus?\"\n" +
  127. "Stranger 1: \"Hmm. I'm not sure. Oh, I have one! Her name is \'Green\' \"\n" +
  128. "Lenny finishes his conversation and moves on to the next person.\n" +
  129. "Stranger 2:\"Oh, this is easy her name is \'One Page\'\"\n" +
  130. "Lenny thought that was an odd name, however, took that down as clue. And moved on.\n" +
  131. "Stranger 3: \"Oh man. haha. Don't tell anybody, but her's name \'Missing\'\"\n" +
  132. "Again, Lenny thought it was a strange name. Something must be fishy\n" +
  133. "Lenny thought about Professor Jam's notebook and it is usually in his document desk and it has a green color.\n" +
  134. "Lenny went to the classroom and took a look at the notebook and found that one page in the book is gone\n" +
  135. "and another page full of numbers\n" +
  136. "Lenny: \"Professor Jam's notebook is green. Green like the name... And also one page seems missing. I need to find this page!\"\n" +
  137. "One more witness are needed to be investigated: Press A to see Albert";
  138. if (Input.GetKeyDown (KeyCode.A)) {myState = States.borrisA2;}
  139. }
  140. void state_borrisA2 (){
  141. myText.text = "Lenny wants to know where professor went before his death, so he goes to ask Albert about it.\n" +
  142. "Lenny:\"Hello, Albert! I'm working on the murder investigation for detective Dan. I was wondering\"\n" +
  143. "if you know where professor Jam went before his death. Do you know?\n" +
  144. "Albert:\"Oh wow. I'm sure. I'll think about it. But since you are here in the meantime while I think, I need you\"\n" +
  145. "to do me a favor regarding my research in my lab.\n" +
  146. "Lenny was asked to find books for his research: Going to the Library and finding the Red Cover Books from vol. 1 - 5\n" +
  147. "Lenny: \"Hi, Albert! I have completed your research.\"\n" +
  148. "Clue: He saw professor Jam went to the A3 room around 9PM" +
  149. "Albert: \"That's great! Thank you for your research! Now, back to your request. Let me think. I saw around 9PM that night in the\"" +
  150. "in the A3 room but I don't remember much after that.\n" +
  151. "Lenny:\"Thank you, Albert! I'll check the A3 room\"" +
  152. "They found a dying message that was left by Professor in the A3 room. But, it has nothing except a code.\n" +
  153. "Lenny:\nI found the note! Hmm, but what does this mean? It's some sort of code but I'm not sure what.\n" +
  154. "No more witness are needed to be investigated: Press Space to Continue";
  155. if (Input.GetKeyDown (KeyCode.Space)) {myState = States.end;}
  156.  
  157. }
  158. void state_borrisA1 (){
  159. myText.text = "Lenny wants to know where professor went before his death, so he goes to ask Albert about it.\n" +
  160. "Lenny:\"Hello, Albert! I'm working on the murder investigation for detective Dan. I was wondering\"\n" +
  161. "if you know where professor Jam went before his death. Do you know?\n" +
  162. "Albert:\"Oh wow. I'm sure. I'll think about it. But since you are here in the meantime while I think, I need you\"\n" +
  163. "to do me a favor regarding my research in my lab.\n" +
  164. "Lenny was asked to find books for his research: Going to the Library and finding the Red Cover Books from vol. 1 - 5\n" +
  165. "Lenny: \"Hi, Albert! I have completed your research.\"\n" +
  166. "Clue: He saw professor Jam went to the A3 room around 9PM" +
  167. "Albert: \"That's great! Thank you for your research! Now, back to your request. Let me think. I saw around 9PM that night in the\"" +
  168. "in the A3 room but I don't remember much after that.\n" +
  169. "Lenny:\"Thank you, Albert! I'll check the A3 room\"" +
  170. "They found a dying message that was left by Professor in the A3 room. But, it has nothing except a code.\n" +
  171. "Lenny:\nI found the note! Hmm, but what does this mean? It's some sort of code but I'm not sure what.\n" +
  172. "One more witness are needed to be investigated: Press E for Elise";
  173. if (Input.GetKeyDown (KeyCode.E)) {myState = States.borrisE2;}
  174.  
  175. }
  176. void state_borrisE2 (){
  177. myText.text = "Lenny then meets with Elise\n" +
  178. "Lenny wants to find more inforamtion about Professor Jam, so he goes to ask Elise where Professor Jam\n" +
  179. "personal notebook is: " +
  180. "Lenny: \"Hi, Elise! I'm in the middle trying to solve the murder investigation of professor Jam. Do you know\"\n" +
  181. "where Jam's notebook is?\n" +
  182. "Elise: \"Hi, Lenny! Hmm, Let me think. Oh, I have an idea!\"" +
  183. "Elise tells Lenny to find out who i sthe most popular person among women in the west building. Lenny decides to ask\n" +
  184. "three people on the campus to find out who they like the most\n" +
  185. "Lenny: \"Hi, there! I wanted to ask which woman do you like the most on the campus?\"\n" +
  186. "Stranger 1: \"Hmm. I'm not sure. Oh, I have one! Her name is \'Green\' \"\n" +
  187. "Lenny finishes his conversation and moves on to the next person.\n" +
  188. "Stranger 2:\"Oh, this is easy her name is \'One Page\'\"\n" +
  189. "Lenny thought that was an odd name, however, took that down as clue. And moved on.\n" +
  190. "Stranger 3: \"Oh man. haha. Don't tell anybody, but her's name \'Missing\'\"\n" +
  191. "Again, Lenny thought it was a strange name. Something must be fishy\n" +
  192. "Lenny thought about Professor Jam's notebook and it is usually in his document desk and it has a green color.\n" +
  193. "Lenny went to the classroom and took a look at the notebook and found that one page in the book is gone\n" +
  194. "and another page full of numbers\n" +
  195. "Lenny: \"Professor Jam's notebook is green. Green like the name... And also one page seems missing. I need to find this page!\"\n" +
  196. "No more witness are needed to be investigated: Press Space to Continue";
  197. if (Input.GetKeyDown (KeyCode.Space)) {myState = States.end;}
  198.  
  199. }
  200. //elise
  201. void state_elise (){
  202. myText.text = "Lenny then meets with Elise\n" +
  203. "Lenny wants to find more inforamtion about Professor Jam, so he goes to ask Elise where Professor Jam\n" +
  204. "personal notebook is: " +
  205. "Lenny: \"Hi, Elise! I'm in the middle trying to solve the murder investigation of professor Jam. Do you know\"\n" +
  206. "where Jam's notebook is?\n" +
  207. "Elise: \"Hi, Lenny! Hmm, Let me think. Oh, I have an idea!\"" +
  208. "Elise tells Lenny to find out who i sthe most popular person among women in the west building. Lenny decides to ask\n" +
  209. "three people on the campus to find out who they like the most\n" +
  210. "Lenny: \"Hi, there! I wanted to ask which woman do you like the most on the campus?\"\n" +
  211. "Stranger 1: \"Hmm. I'm not sure. Oh, I have one! Her name is \'Green\' \"\n" +
  212. "Lenny finishes his conversation and moves on to the next person.\n" +
  213. "Stranger 2:\"Oh, this is easy her name is \'One Page\'\"\n" +
  214. "Lenny thought that was an odd name, however, took that down as clue. And moved on.\n" +
  215. "Stranger 3: \"Oh man. haha. Don't tell anybody, but her's name \'Missing\'\"\n" +
  216. "Again, Lenny thought it was a strange name. Something must be fishy\n" +
  217. "Lenny thought about Professor Jam's notebook and it is usually in his document desk and it has a green color.\n" +
  218. "Lenny went to the classroom and took a look at the notebook and found that one page in the book is gone\n" +
  219. "and another page full of numbers\n" +
  220. "Lenny: \"Professor Jam's notebook is green. Green like the name... And also one page seems missing. I need to find this page!\"\n" +
  221. "Two more witness are needed to be investigated: Press A to see Albert, Press B to see Borris";
  222. if (Input.GetKeyDown (KeyCode.A)) {myState = States.eliseA1;}
  223. else if (Input.GetKeyDown (KeyCode.B)) {myState = States.eliseB1;}
  224.  
  225. }
  226. void state_eliseA1 (){
  227. myText.text = "Lenny then meets with Elise\n" +
  228. "Lenny wants to find more inforamtion about Professor Jam, so he goes to ask Elise where Professor Jam\n" +
  229. "personal notebook is: " +
  230. "Lenny: \"Hi, Elise! I'm in the middle trying to solve the murder investigation of professor Jam. Do you know\"\n" +
  231. "where Jam's notebook is?\n" +
  232. "Elise: \"Hi, Lenny! Hmm, Let me think. Oh, I have an idea!\"" +
  233. "Elise tells Lenny to find out who i sthe most popular person among women in the west building. Lenny decides to ask\n" +
  234. "three people on the campus to find out who they like the most\n" +
  235. "Lenny: \"Hi, there! I wanted to ask which woman do you like the most on the campus?\"\n" +
  236. "Stranger 1: \"Hmm. I'm not sure. Oh, I have one! Her name is \'Green\' \"\n" +
  237. "Lenny finishes his conversation and moves on to the next person.\n" +
  238. "Stranger 2:\"Oh, this is easy her name is \'One Page\'\"\n" +
  239. "Lenny thought that was an odd name, however, took that down as clue. And moved on.\n" +
  240. "Stranger 3: \"Oh man. haha. Don't tell anybody, but her's name \'Missing\'\"\n" +
  241. "Again, Lenny thought it was a strange name. Something must be fishy\n" +
  242. "Lenny thought about Professor Jam's notebook and it is usually in his document desk and it has a green color.\n" +
  243. "Lenny went to the classroom and took a look at the notebook and found that one page in the book is gone\n" +
  244. "and another page full of numbers\n" +
  245. "Lenny: \"Professor Jam's notebook is green. Green like the name... And also one page seems missing. I need to find this page!\"\n" +
  246. "One more witness are needed to be investigated: Press B to see Borris";
  247. if (Input.GetKeyDown (KeyCode.B)) {myState = States.eliseB2;}
  248.  
  249. }
  250. void state_eliseB2 (){
  251. myText.text = "Lenny finds Borris who has acces to every part of the campus\n" +
  252. "Lenny: \"Hi Borris! I'm working on the murder investigation for detective Dan I need your help.\"\n" +
  253. "Borris: \"Hi, Lenny! Before you can get anything from me, I'm going to need your help first.\"\n" +
  254. "Borris asked Lenny to clear up the five piles of leaves around the campus.\n" +
  255. "Lenny: \"Hi, Borris! I'm done clearing the leaves. Now, can I get your help? I'm gooing to need keys to \n" +
  256. "every part of the campus. Dan discovered a heavy object in the murder investigation.\"\n" +
  257. "Now, all of the witness are seen. Press Space to Continue.";
  258. if (Input.GetKeyDown (KeyCode.Space)) {myState = States.end;}
  259.  
  260. }
  261. void state_eliseB1 (){
  262. myText.text = "Lenny finds Borris who has acces to every part of the campus\n" +
  263. "Lenny: \"Hi Borris! I'm working on the murder investigation for detective Dan I need your help.\"\n" +
  264. "Borris: \"Hi, Lenny! Before you can get anything from me, I'm going to need your help first.\"\n" +
  265. "Borris asked Lenny to clear up the five piles of leaves around the campus.\n" +
  266. "Lenny: \"Hi, Borris! I'm done clearing the leaves. Now, can I get your help? I'm gooing to need keys to \n" +
  267. "every part of the campus. Dan discovered a heavy object in the murder investigation.\"\n" +
  268. "Now, only Albert needs to be seen. Press A to see Albert.";
  269. if (Input.GetKeyDown (KeyCode.A)) {myState = States.eliseA2;}
  270.  
  271. }
  272. void state_eliseA2 (){
  273. myText.text = "Lenny wants to know where professor went before his death, so he goes to ask Albert about it.\n" +
  274. "Lenny:\"Hello, Albert! I'm working on the murder investigation for detective Dan. I was wondering\"\n" +
  275. "if you know where professor Jam went before his death. Do you know?\n" +
  276. "Albert:\"Oh wow. I'm sure. I'll think about it. But since you are here in the meantime while I think, I need you\"\n" +
  277. "to do me a favor regarding my research in my lab.\n" +
  278. "Lenny was asked to find books for his research: Going to the Library and finding the Red Cover Books from vol. 1 - 5\n" +
  279. "Lenny: \"Hi, Albert! I have completed your research.\"\n" +
  280. "Clue: He saw professor Jam went to the A3 room around 9PM" +
  281. "Albert: \"That's great! Thank you for your research! Now, back to your request. Let me think. I saw around 9PM that night in the\"" +
  282. "in the A3 room but I don't remember much after that.\n" +
  283. "Lenny:\"Thank you, Albert! I'll check the A3 room\"" +
  284. "They found a dying message that was left by Professor in the A3 room. But, it has nothing except a code.\n" +
  285. "Lenny:\nI found the note! Hmm, but what does this mean? It's some sort of code but I'm not sure what.\n" +
  286. "No more witness are needed to be investigated: Press Space to Continue";
  287. if (Input.GetKeyDown (KeyCode.Space)) {myState = States.end;}
  288.  
  289. }
  290. //albert
  291. void state_albert (){
  292. myText.text = "Lenny wants to know where professor went before his death, so he goes to ask Albert about it.\n" +
  293. "Lenny:\"Hello, Albert! I'm working on the murder investigation for detective Dan. I was wondering\"\n" +
  294. "if you know where professor Jam went before his death. Do you know?\n" +
  295. "Albert:\"Oh wow. I'm sure. I'll think about it. But since you are here in the meantime while I think, I need you\"\n" +
  296. "to do me a favor regarding my research in my lab.\n" +
  297. "Lenny was asked to find books for his research: Going to the Library and finding the Red Cover Books from vol. 1 - 5\n" +
  298. "Lenny: \"Hi, Albert! I have completed your research.\"\n" +
  299. "Clue: He saw professor Jam went to the A3 room around 9PM" +
  300. "Albert: \"That's great! Thank you for your research! Now, back to your request. Let me think. I saw around 9PM that night in the\"" +
  301. "in the A3 room but I don't remember much after that.\n" +
  302. "Lenny:\"Thank you, Albert! I'll check the A3 room\"" +
  303. "They found a dying message that was left by Professor in the A3 room. But, it has nothing except a code.\n" +
  304. "Lenny:\nI found the note! Hmm, but what does this mean? It's some sort of code but I'm not sure what.\n" +
  305. "Two more witness are needed to be investigated: Press B to see Borris or Press E for Elise";
  306. if (Input.GetKeyDown (KeyCode.B)) {myState = States.albertB1;}
  307. else if (Input.GetKeyDown (KeyCode.E)) {myState = States.albertE1;}
  308.  
  309. }
  310. void state_albertB1 (){
  311. myText.text = "Lenny finds Borris who has acces to every part of the campus\n" +
  312. "Lenny: \"Hi Borris! I'm working on the murder investigation for detective Dan I need your help.\"\n" +
  313. "Borris: \"Hi, Lenny! Before you can get anything from me, I'm going to need your help first.\"\n" +
  314. "Borris asked Lenny to clear up the five piles of leaves around the campus.\n" +
  315. "Lenny: \"Hi, Borris! I'm done clearing the leaves. Now, can I get your help? I'm gooing to need keys to \n" +
  316. "every part of the campus. Dan discovered a heavy object in the murder investigation.\"\n" +
  317. "Now, only one witness is needed to be seen. Press E to see Elise.";
  318. if (Input.GetKeyDown (KeyCode.E)) {myState = States.albertE2;}
  319.  
  320. }
  321. void state_albertE2 (){
  322. myText.text = "Lenny then meets with Elise\n" +
  323. "Lenny wants to find more inforamtion about Professor Jam, so he goes to ask Elise where Professor Jam\n" +
  324. "personal notebook is: " +
  325. "Lenny: \"Hi, Elise! I'm in the middle trying to solve the murder investigation of professor Jam. Do you know\"\n" +
  326. "where Jam's notebook is?\n" +
  327. "Elise: \"Hi, Lenny! Hmm, Let me think. Oh, I have an idea!\"" +
  328. "Elise tells Lenny to find out who i sthe most popular person among women in the west building. Lenny decides to ask\n" +
  329. "three people on the campus to find out who they like the most\n" +
  330. "Lenny: \"Hi, there! I wanted to ask which woman do you like the most on the campus?\"\n" +
  331. "Stranger 1: \"Hmm. I'm not sure. Oh, I have one! Her name is \'Green\' \"\n" +
  332. "Lenny finishes his conversation and moves on to the next person.\n" +
  333. "Stranger 2:\"Oh, this is easy her name is \'One Page\'\"\n" +
  334. "Lenny thought that was an odd name, however, took that down as clue. And moved on.\n" +
  335. "Stranger 3: \"Oh man. haha. Don't tell anybody, but her's name \'Missing\'\"\n" +
  336. "Again, Lenny thought it was a strange name. Something must be fishy\n" +
  337. "Lenny thought about Professor Jam's notebook and it is usually in his document desk and it has a green color.\n" +
  338. "Lenny went to the classroom and took a look at the notebook and found that one page in the book is gone\n" +
  339. "and another page full of numbers\n" +
  340. "Lenny: \"Professor Jam's notebook is green. Green like the name... And also one page seems missing. I need to find this page!\"\n" +
  341. "No more witness are needed to be investigated: Press Space to continue";
  342. if (Input.GetKeyDown (KeyCode.Space)) {myState = States.end;}
  343.  
  344. }
  345. void state_albertE1 (){
  346. myText.text = "Lenny then meets with Elise\n" +
  347. "Lenny wants to find more inforamtion about Professor Jam, so he goes to ask Elise where Professor Jam\n" +
  348. "personal notebook is: " +
  349. "Lenny: \"Hi, Elise! I'm in the middle trying to solve the murder investigation of professor Jam. Do you know\"\n" +
  350. "where Jam's notebook is?\n" +
  351. "Elise: \"Hi, Lenny! Hmm, Let me think. Oh, I have an idea!\"" +
  352. "Elise tells Lenny to find out who i sthe most popular person among women in the west building. Lenny decides to ask\n" +
  353. "three people on the campus to find out who they like the most\n" +
  354. "Lenny: \"Hi, there! I wanted to ask which woman do you like the most on the campus?\"\n" +
  355. "Stranger 1: \"Hmm. I'm not sure. Oh, I have one! Her name is \'Green\' \"\n" +
  356. "Lenny finishes his conversation and moves on to the next person.\n" +
  357. "Stranger 2:\"Oh, this is easy her name is \'One Page\'\"\n" +
  358. "Lenny thought that was an odd name, however, took that down as clue. And moved on.\n" +
  359. "Stranger 3: \"Oh man. haha. Don't tell anybody, but her's name \'Missing\'\"\n" +
  360. "Again, Lenny thought it was a strange name. Something must be fishy\n" +
  361. "Lenny thought about Professor Jam's notebook and it is usually in his document desk and it has a green color.\n" +
  362. "Lenny went to the classroom and took a look at the notebook and found that one page in the book is gone\n" +
  363. "and another page full of numbers\n" +
  364. "Lenny: \"Professor Jam's notebook is green. Green like the name... And also one page seems missing. I need to find this page!\"\n" +
  365. "One more witness are needed to be investigated: Press B to see Borris";
  366. if (Input.GetKeyDown (KeyCode.B)) {myState = States.albertB2;}
  367.  
  368. }
  369. void state_albertB2 (){
  370. myText.text = "Lenny finds Borris who has acces to every part of the campus\n" +
  371. "Lenny: \"Hi Borris! I'm working on the murder investigation for detective Dan I need your help.\"\n" +
  372. "Borris: \"Hi, Lenny! Before you can get anything from me, I'm going to need your help first.\"\n" +
  373. "Borris asked Lenny to clear up the five piles of leaves around the campus.\n" +
  374. "Lenny: \"Hi, Borris! I'm done clearing the leaves. Now, can I get your help? I'm gooing to need keys to \n" +
  375. "every part of the campus. Dan discovered a heavy object in the murder investigation.\"\n" +
  376. "Now, all of the witness are seen. Press Space to Continue.";
  377. if (Input.GetKeyDown (KeyCode.Space)) {myState = States.end;}
  378.  
  379. }
  380. void state_end (){
  381. myText.text = "Lenny uses the number in professor Jam's personal notebook to solve the code in the dying message paper, and he finds\n" +
  382. "out that the code wrote \"Bayden\". After that, he notices that Patrick Baydenis the killer of Professor Jam\n" +
  383. "All the evidence is now collected and Lenny makes his final conclusion\n" +
  384. "Lenny: \"The name is Bayden. Wait a minute, Patrick Bayden! Patrick killed professor Jam!\"\n" +
  385. "Press R to Play Again";
  386. if (Input.GetKeyDown (KeyCode.R)) {myState = States.title;}
  387.  
  388. }
  389.  
  390.  
  391.  
  392. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement