Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //this is "importing a namespace" >> used to bring in user interface information
- //turns Text to blue
- //Remember to save your scripts >> control s
- using UnityEngine;
- using UnityEngine.UI;
- using System.Collections;
- public class TextController : MonoBehaviour {
- public Text myText; //publicly expose all the methods: access_modifier:Type:variable_name
- private enum States{title,
- act1, act2, act3, act4, choose,
- borris, borrisE1, borrisA2, borrisA1, borrisE2,
- elise, eliseA1, eliseB2, eliseB1, eliseA2,
- albert, albertB1, albertE2, albertE1, albertB2,
- end
- };
- private States myState;
- // Use this for initialization
- void Start () {
- myState = States.title; //this is the starting een
- }
- // Update is called once per frame
- void Update ()
- {
- print (myState);
- //prelude
- if (myState == States.title) {state_title();}//calls the method and intial screen
- else if (myState == States.act1) {state_act1();}
- else if (myState == States.act2) {state_act2();}
- else if (myState == States.act3) {state_act3();}
- else if (myState == States.act4) {state_act4();}
- else if (myState == States.choose) {state_choose();}
- //borris
- else if (myState == States.borris) {state_borris();}
- else if (myState == States.borrisE1) {state_borrisE1();}
- else if (myState == States.borrisA2) {state_borrisA2();}
- else if (myState == States.borrisA1) {state_borrisA1();}
- else if (myState == States.borrisE2) {state_borrisE2();}
- //elise
- else if (myState == States.elise) {state_elise();}
- else if (myState == States.eliseA1) {state_eliseA1();}
- else if (myState == States.eliseB2) {state_eliseB2();}
- else if (myState == States.eliseB1) {state_eliseB2();}
- else if (myState == States.eliseA2) {state_eliseA2();}
- //albert
- else if (myState == States.albert) {state_albert();}
- else if (myState == States.albertB1) {state_albertB1();}
- else if (myState == States.albertE2) {state_albertE2();}
- else if (myState == States.albertE1) {state_albertE1();}
- else if (myState == States.albertB2) {state_albertB2();}
- //end
- else if (myState == States.end) {state_end();}
- }
- // prelude
- void state_title (){
- myText.text = "Corpses!\n" +
- "Press Space to Start your Adventure.";
- if (Input.GetKeyDown (KeyCode.Space)) {myState = States.act1;}
- }
- void state_act1 (){
- myText.text = "In the middle of August, there was a murder case of a Math teacher\n" +
- "(Jam) at one of the colleges in town. The teacher was found dead by \n" +
- "the security night guard at 10:30 and the body were near the Statue. \n" +
- "Press Space to Continue";
- if (Input.GetKeyDown (KeyCode.Space)) {myState = States.act2;}
- }
- void state_act2 (){
- myText.text = "In the morning after the corpse had been discovering, Detective Dan investigated\n" +
- "the body and found that someone used a heavy object to hit this man until he died.\n" +
- "However, a big issue is nobody witness the killer.\n" +
- "Press Space to Continue";
- if (Input.GetKeyDown (KeyCode.Space)) {myState = States.act3;}
- }
- void state_act3 (){
- myText.text = "So far, Dan has three people as the primary suspects in this case. However, Dan can not\n" +
- "gather any evidence that can help determent who is the killer because of lack of \n" +
- "cooperation from students. Therefore, Dan needs a person who makes the students feel\n" +
- "more comfortable to talk about what they know.\n" +
- "Press Space to Continue";
- if (Input.GetKeyDown (KeyCode.Space)) {myState = States.act4;}
- }
- void state_act4 (){
- myText.text = "Lenny who obsessed with every aspect of being a detective show up, and he says that he\n" +
- "will volunteer to help gather information from the students for Dan. Detective Dan thinks\n" +
- "that the students will feel more comfortable to talk with other students.\n" +
- "So he agrees to let Lenny join the team\n" +
- "Press Space to Continue";
- if (Input.GetKeyDown (KeyCode.Space)) {myState = States.choose;}
- }
- void state_choose (){
- myText.text = "Lenny and Dan found three potential witnesses.\n" +
- "Press B to see Borris, Press E to see Elise, Press A to see Albert";
- if (Input.GetKeyDown (KeyCode.B)) {myState = States.borris;}
- else if (Input.GetKeyDown (KeyCode.E)) {myState = States.elise;}
- else if (Input.GetKeyDown (KeyCode.A)) {myState = States.albert;}
- }
- //borris
- void state_borris (){
- myText.text = "Lenny finds Borris who has acces to every part of the campus\n" +
- "Lenny: \"Hi Borris! I'm working on the murder investigation for detective Dan I need your help.\"\n" +
- "Borris: \"Hi, Lenny! Before you can get anything from me, I'm going to need your help first.\"\n" +
- "Borris asked Lenny to clear up the five piles of leaves around the campus.\n" +
- "Lenny: \"Hi, Borris! I'm done clearing the leaves. Now, can I get your help? I'm gooing to need keys to \n" +
- "every part of the campus. Dan discovered a heavy object in the murder investigation.\"\n" +
- "Now, there's only 2 witness to check: Press E to see Elise or Press A to see Albert";
- if (Input.GetKeyDown (KeyCode.E)) {myState = States.borrisE1;}
- else if (Input.GetKeyDown (KeyCode.A)) {myState = States.borrisA1;}
- }
- void state_borrisE1 (){
- myText.text = "Lenny then meets with Elise\n" +
- "Lenny wants to find more inforamtion about Professor Jam, so he goes to ask Elise where Professor Jam\n" +
- "personal notebook is: " +
- "Lenny: \"Hi, Elise! I'm in the middle trying to solve the murder investigation of professor Jam. Do you know\"\n" +
- "where Jam's notebook is?\n" +
- "Elise: \"Hi, Lenny! Hmm, Let me think. Oh, I have an idea!\"" +
- "Elise tells Lenny to find out who i sthe most popular person among women in the west building. Lenny decides to ask\n" +
- "three people on the campus to find out who they like the most\n" +
- "Lenny: \"Hi, there! I wanted to ask which woman do you like the most on the campus?\"\n" +
- "Stranger 1: \"Hmm. I'm not sure. Oh, I have one! Her name is \'Green\' \"\n" +
- "Lenny finishes his conversation and moves on to the next person.\n" +
- "Stranger 2:\"Oh, this is easy her name is \'One Page\'\"\n" +
- "Lenny thought that was an odd name, however, took that down as clue. And moved on.\n" +
- "Stranger 3: \"Oh man. haha. Don't tell anybody, but her's name \'Missing\'\"\n" +
- "Again, Lenny thought it was a strange name. Something must be fishy\n" +
- "Lenny thought about Professor Jam's notebook and it is usually in his document desk and it has a green color.\n" +
- "Lenny went to the classroom and took a look at the notebook and found that one page in the book is gone\n" +
- "and another page full of numbers\n" +
- "Lenny: \"Professor Jam's notebook is green. Green like the name... And also one page seems missing. I need to find this page!\"\n" +
- "One more witness are needed to be investigated: Press A to see Albert";
- if (Input.GetKeyDown (KeyCode.A)) {myState = States.borrisA2;}
- }
- void state_borrisA2 (){
- myText.text = "Lenny wants to know where professor went before his death, so he goes to ask Albert about it.\n" +
- "Lenny:\"Hello, Albert! I'm working on the murder investigation for detective Dan. I was wondering\"\n" +
- "if you know where professor Jam went before his death. Do you know?\n" +
- "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" +
- "to do me a favor regarding my research in my lab.\n" +
- "Lenny was asked to find books for his research: Going to the Library and finding the Red Cover Books from vol. 1 - 5\n" +
- "Lenny: \"Hi, Albert! I have completed your research.\"\n" +
- "Clue: He saw professor Jam went to the A3 room around 9PM" +
- "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\"" +
- "in the A3 room but I don't remember much after that.\n" +
- "Lenny:\"Thank you, Albert! I'll check the A3 room\"" +
- "They found a dying message that was left by Professor in the A3 room. But, it has nothing except a code.\n" +
- "Lenny:\nI found the note! Hmm, but what does this mean? It's some sort of code but I'm not sure what.\n" +
- "No more witness are needed to be investigated: Press Space to Continue";
- if (Input.GetKeyDown (KeyCode.Space)) {myState = States.end;}
- }
- void state_borrisA1 (){
- myText.text = "Lenny wants to know where professor went before his death, so he goes to ask Albert about it.\n" +
- "Lenny:\"Hello, Albert! I'm working on the murder investigation for detective Dan. I was wondering\"\n" +
- "if you know where professor Jam went before his death. Do you know?\n" +
- "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" +
- "to do me a favor regarding my research in my lab.\n" +
- "Lenny was asked to find books for his research: Going to the Library and finding the Red Cover Books from vol. 1 - 5\n" +
- "Lenny: \"Hi, Albert! I have completed your research.\"\n" +
- "Clue: He saw professor Jam went to the A3 room around 9PM" +
- "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\"" +
- "in the A3 room but I don't remember much after that.\n" +
- "Lenny:\"Thank you, Albert! I'll check the A3 room\"" +
- "They found a dying message that was left by Professor in the A3 room. But, it has nothing except a code.\n" +
- "Lenny:\nI found the note! Hmm, but what does this mean? It's some sort of code but I'm not sure what.\n" +
- "One more witness are needed to be investigated: Press E for Elise";
- if (Input.GetKeyDown (KeyCode.E)) {myState = States.borrisE2;}
- }
- void state_borrisE2 (){
- myText.text = "Lenny then meets with Elise\n" +
- "Lenny wants to find more inforamtion about Professor Jam, so he goes to ask Elise where Professor Jam\n" +
- "personal notebook is: " +
- "Lenny: \"Hi, Elise! I'm in the middle trying to solve the murder investigation of professor Jam. Do you know\"\n" +
- "where Jam's notebook is?\n" +
- "Elise: \"Hi, Lenny! Hmm, Let me think. Oh, I have an idea!\"" +
- "Elise tells Lenny to find out who i sthe most popular person among women in the west building. Lenny decides to ask\n" +
- "three people on the campus to find out who they like the most\n" +
- "Lenny: \"Hi, there! I wanted to ask which woman do you like the most on the campus?\"\n" +
- "Stranger 1: \"Hmm. I'm not sure. Oh, I have one! Her name is \'Green\' \"\n" +
- "Lenny finishes his conversation and moves on to the next person.\n" +
- "Stranger 2:\"Oh, this is easy her name is \'One Page\'\"\n" +
- "Lenny thought that was an odd name, however, took that down as clue. And moved on.\n" +
- "Stranger 3: \"Oh man. haha. Don't tell anybody, but her's name \'Missing\'\"\n" +
- "Again, Lenny thought it was a strange name. Something must be fishy\n" +
- "Lenny thought about Professor Jam's notebook and it is usually in his document desk and it has a green color.\n" +
- "Lenny went to the classroom and took a look at the notebook and found that one page in the book is gone\n" +
- "and another page full of numbers\n" +
- "Lenny: \"Professor Jam's notebook is green. Green like the name... And also one page seems missing. I need to find this page!\"\n" +
- "No more witness are needed to be investigated: Press Space to Continue";
- if (Input.GetKeyDown (KeyCode.Space)) {myState = States.end;}
- }
- //elise
- void state_elise (){
- myText.text = "Lenny then meets with Elise\n" +
- "Lenny wants to find more inforamtion about Professor Jam, so he goes to ask Elise where Professor Jam\n" +
- "personal notebook is: " +
- "Lenny: \"Hi, Elise! I'm in the middle trying to solve the murder investigation of professor Jam. Do you know\"\n" +
- "where Jam's notebook is?\n" +
- "Elise: \"Hi, Lenny! Hmm, Let me think. Oh, I have an idea!\"" +
- "Elise tells Lenny to find out who i sthe most popular person among women in the west building. Lenny decides to ask\n" +
- "three people on the campus to find out who they like the most\n" +
- "Lenny: \"Hi, there! I wanted to ask which woman do you like the most on the campus?\"\n" +
- "Stranger 1: \"Hmm. I'm not sure. Oh, I have one! Her name is \'Green\' \"\n" +
- "Lenny finishes his conversation and moves on to the next person.\n" +
- "Stranger 2:\"Oh, this is easy her name is \'One Page\'\"\n" +
- "Lenny thought that was an odd name, however, took that down as clue. And moved on.\n" +
- "Stranger 3: \"Oh man. haha. Don't tell anybody, but her's name \'Missing\'\"\n" +
- "Again, Lenny thought it was a strange name. Something must be fishy\n" +
- "Lenny thought about Professor Jam's notebook and it is usually in his document desk and it has a green color.\n" +
- "Lenny went to the classroom and took a look at the notebook and found that one page in the book is gone\n" +
- "and another page full of numbers\n" +
- "Lenny: \"Professor Jam's notebook is green. Green like the name... And also one page seems missing. I need to find this page!\"\n" +
- "Two more witness are needed to be investigated: Press A to see Albert, Press B to see Borris";
- if (Input.GetKeyDown (KeyCode.A)) {myState = States.eliseA1;}
- else if (Input.GetKeyDown (KeyCode.B)) {myState = States.eliseB1;}
- }
- void state_eliseA1 (){
- myText.text = "Lenny then meets with Elise\n" +
- "Lenny wants to find more inforamtion about Professor Jam, so he goes to ask Elise where Professor Jam\n" +
- "personal notebook is: " +
- "Lenny: \"Hi, Elise! I'm in the middle trying to solve the murder investigation of professor Jam. Do you know\"\n" +
- "where Jam's notebook is?\n" +
- "Elise: \"Hi, Lenny! Hmm, Let me think. Oh, I have an idea!\"" +
- "Elise tells Lenny to find out who i sthe most popular person among women in the west building. Lenny decides to ask\n" +
- "three people on the campus to find out who they like the most\n" +
- "Lenny: \"Hi, there! I wanted to ask which woman do you like the most on the campus?\"\n" +
- "Stranger 1: \"Hmm. I'm not sure. Oh, I have one! Her name is \'Green\' \"\n" +
- "Lenny finishes his conversation and moves on to the next person.\n" +
- "Stranger 2:\"Oh, this is easy her name is \'One Page\'\"\n" +
- "Lenny thought that was an odd name, however, took that down as clue. And moved on.\n" +
- "Stranger 3: \"Oh man. haha. Don't tell anybody, but her's name \'Missing\'\"\n" +
- "Again, Lenny thought it was a strange name. Something must be fishy\n" +
- "Lenny thought about Professor Jam's notebook and it is usually in his document desk and it has a green color.\n" +
- "Lenny went to the classroom and took a look at the notebook and found that one page in the book is gone\n" +
- "and another page full of numbers\n" +
- "Lenny: \"Professor Jam's notebook is green. Green like the name... And also one page seems missing. I need to find this page!\"\n" +
- "One more witness are needed to be investigated: Press B to see Borris";
- if (Input.GetKeyDown (KeyCode.B)) {myState = States.eliseB2;}
- }
- void state_eliseB2 (){
- myText.text = "Lenny finds Borris who has acces to every part of the campus\n" +
- "Lenny: \"Hi Borris! I'm working on the murder investigation for detective Dan I need your help.\"\n" +
- "Borris: \"Hi, Lenny! Before you can get anything from me, I'm going to need your help first.\"\n" +
- "Borris asked Lenny to clear up the five piles of leaves around the campus.\n" +
- "Lenny: \"Hi, Borris! I'm done clearing the leaves. Now, can I get your help? I'm gooing to need keys to \n" +
- "every part of the campus. Dan discovered a heavy object in the murder investigation.\"\n" +
- "Now, all of the witness are seen. Press Space to Continue.";
- if (Input.GetKeyDown (KeyCode.Space)) {myState = States.end;}
- }
- void state_eliseB1 (){
- myText.text = "Lenny finds Borris who has acces to every part of the campus\n" +
- "Lenny: \"Hi Borris! I'm working on the murder investigation for detective Dan I need your help.\"\n" +
- "Borris: \"Hi, Lenny! Before you can get anything from me, I'm going to need your help first.\"\n" +
- "Borris asked Lenny to clear up the five piles of leaves around the campus.\n" +
- "Lenny: \"Hi, Borris! I'm done clearing the leaves. Now, can I get your help? I'm gooing to need keys to \n" +
- "every part of the campus. Dan discovered a heavy object in the murder investigation.\"\n" +
- "Now, only Albert needs to be seen. Press A to see Albert.";
- if (Input.GetKeyDown (KeyCode.A)) {myState = States.eliseA2;}
- }
- void state_eliseA2 (){
- myText.text = "Lenny wants to know where professor went before his death, so he goes to ask Albert about it.\n" +
- "Lenny:\"Hello, Albert! I'm working on the murder investigation for detective Dan. I was wondering\"\n" +
- "if you know where professor Jam went before his death. Do you know?\n" +
- "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" +
- "to do me a favor regarding my research in my lab.\n" +
- "Lenny was asked to find books for his research: Going to the Library and finding the Red Cover Books from vol. 1 - 5\n" +
- "Lenny: \"Hi, Albert! I have completed your research.\"\n" +
- "Clue: He saw professor Jam went to the A3 room around 9PM" +
- "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\"" +
- "in the A3 room but I don't remember much after that.\n" +
- "Lenny:\"Thank you, Albert! I'll check the A3 room\"" +
- "They found a dying message that was left by Professor in the A3 room. But, it has nothing except a code.\n" +
- "Lenny:\nI found the note! Hmm, but what does this mean? It's some sort of code but I'm not sure what.\n" +
- "No more witness are needed to be investigated: Press Space to Continue";
- if (Input.GetKeyDown (KeyCode.Space)) {myState = States.end;}
- }
- //albert
- void state_albert (){
- myText.text = "Lenny wants to know where professor went before his death, so he goes to ask Albert about it.\n" +
- "Lenny:\"Hello, Albert! I'm working on the murder investigation for detective Dan. I was wondering\"\n" +
- "if you know where professor Jam went before his death. Do you know?\n" +
- "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" +
- "to do me a favor regarding my research in my lab.\n" +
- "Lenny was asked to find books for his research: Going to the Library and finding the Red Cover Books from vol. 1 - 5\n" +
- "Lenny: \"Hi, Albert! I have completed your research.\"\n" +
- "Clue: He saw professor Jam went to the A3 room around 9PM" +
- "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\"" +
- "in the A3 room but I don't remember much after that.\n" +
- "Lenny:\"Thank you, Albert! I'll check the A3 room\"" +
- "They found a dying message that was left by Professor in the A3 room. But, it has nothing except a code.\n" +
- "Lenny:\nI found the note! Hmm, but what does this mean? It's some sort of code but I'm not sure what.\n" +
- "Two more witness are needed to be investigated: Press B to see Borris or Press E for Elise";
- if (Input.GetKeyDown (KeyCode.B)) {myState = States.albertB1;}
- else if (Input.GetKeyDown (KeyCode.E)) {myState = States.albertE1;}
- }
- void state_albertB1 (){
- myText.text = "Lenny finds Borris who has acces to every part of the campus\n" +
- "Lenny: \"Hi Borris! I'm working on the murder investigation for detective Dan I need your help.\"\n" +
- "Borris: \"Hi, Lenny! Before you can get anything from me, I'm going to need your help first.\"\n" +
- "Borris asked Lenny to clear up the five piles of leaves around the campus.\n" +
- "Lenny: \"Hi, Borris! I'm done clearing the leaves. Now, can I get your help? I'm gooing to need keys to \n" +
- "every part of the campus. Dan discovered a heavy object in the murder investigation.\"\n" +
- "Now, only one witness is needed to be seen. Press E to see Elise.";
- if (Input.GetKeyDown (KeyCode.E)) {myState = States.albertE2;}
- }
- void state_albertE2 (){
- myText.text = "Lenny then meets with Elise\n" +
- "Lenny wants to find more inforamtion about Professor Jam, so he goes to ask Elise where Professor Jam\n" +
- "personal notebook is: " +
- "Lenny: \"Hi, Elise! I'm in the middle trying to solve the murder investigation of professor Jam. Do you know\"\n" +
- "where Jam's notebook is?\n" +
- "Elise: \"Hi, Lenny! Hmm, Let me think. Oh, I have an idea!\"" +
- "Elise tells Lenny to find out who i sthe most popular person among women in the west building. Lenny decides to ask\n" +
- "three people on the campus to find out who they like the most\n" +
- "Lenny: \"Hi, there! I wanted to ask which woman do you like the most on the campus?\"\n" +
- "Stranger 1: \"Hmm. I'm not sure. Oh, I have one! Her name is \'Green\' \"\n" +
- "Lenny finishes his conversation and moves on to the next person.\n" +
- "Stranger 2:\"Oh, this is easy her name is \'One Page\'\"\n" +
- "Lenny thought that was an odd name, however, took that down as clue. And moved on.\n" +
- "Stranger 3: \"Oh man. haha. Don't tell anybody, but her's name \'Missing\'\"\n" +
- "Again, Lenny thought it was a strange name. Something must be fishy\n" +
- "Lenny thought about Professor Jam's notebook and it is usually in his document desk and it has a green color.\n" +
- "Lenny went to the classroom and took a look at the notebook and found that one page in the book is gone\n" +
- "and another page full of numbers\n" +
- "Lenny: \"Professor Jam's notebook is green. Green like the name... And also one page seems missing. I need to find this page!\"\n" +
- "No more witness are needed to be investigated: Press Space to continue";
- if (Input.GetKeyDown (KeyCode.Space)) {myState = States.end;}
- }
- void state_albertE1 (){
- myText.text = "Lenny then meets with Elise\n" +
- "Lenny wants to find more inforamtion about Professor Jam, so he goes to ask Elise where Professor Jam\n" +
- "personal notebook is: " +
- "Lenny: \"Hi, Elise! I'm in the middle trying to solve the murder investigation of professor Jam. Do you know\"\n" +
- "where Jam's notebook is?\n" +
- "Elise: \"Hi, Lenny! Hmm, Let me think. Oh, I have an idea!\"" +
- "Elise tells Lenny to find out who i sthe most popular person among women in the west building. Lenny decides to ask\n" +
- "three people on the campus to find out who they like the most\n" +
- "Lenny: \"Hi, there! I wanted to ask which woman do you like the most on the campus?\"\n" +
- "Stranger 1: \"Hmm. I'm not sure. Oh, I have one! Her name is \'Green\' \"\n" +
- "Lenny finishes his conversation and moves on to the next person.\n" +
- "Stranger 2:\"Oh, this is easy her name is \'One Page\'\"\n" +
- "Lenny thought that was an odd name, however, took that down as clue. And moved on.\n" +
- "Stranger 3: \"Oh man. haha. Don't tell anybody, but her's name \'Missing\'\"\n" +
- "Again, Lenny thought it was a strange name. Something must be fishy\n" +
- "Lenny thought about Professor Jam's notebook and it is usually in his document desk and it has a green color.\n" +
- "Lenny went to the classroom and took a look at the notebook and found that one page in the book is gone\n" +
- "and another page full of numbers\n" +
- "Lenny: \"Professor Jam's notebook is green. Green like the name... And also one page seems missing. I need to find this page!\"\n" +
- "One more witness are needed to be investigated: Press B to see Borris";
- if (Input.GetKeyDown (KeyCode.B)) {myState = States.albertB2;}
- }
- void state_albertB2 (){
- myText.text = "Lenny finds Borris who has acces to every part of the campus\n" +
- "Lenny: \"Hi Borris! I'm working on the murder investigation for detective Dan I need your help.\"\n" +
- "Borris: \"Hi, Lenny! Before you can get anything from me, I'm going to need your help first.\"\n" +
- "Borris asked Lenny to clear up the five piles of leaves around the campus.\n" +
- "Lenny: \"Hi, Borris! I'm done clearing the leaves. Now, can I get your help? I'm gooing to need keys to \n" +
- "every part of the campus. Dan discovered a heavy object in the murder investigation.\"\n" +
- "Now, all of the witness are seen. Press Space to Continue.";
- if (Input.GetKeyDown (KeyCode.Space)) {myState = States.end;}
- }
- void state_end (){
- 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" +
- "out that the code wrote \"Bayden\". After that, he notices that Patrick Baydenis the killer of Professor Jam\n" +
- "All the evidence is now collected and Lenny makes his final conclusion\n" +
- "Lenny: \"The name is Bayden. Wait a minute, Patrick Bayden! Patrick killed professor Jam!\"\n" +
- "Press R to Play Again";
- if (Input.GetKeyDown (KeyCode.R)) {myState = States.title;}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement