Hello,
I made a text adventure to simulate a text message conversation for my girlfriend. What i wanted to do is have her press “a,” “b,” etc. depending on the message she wants to respond with. However, even though the console claims to be loading the correct state, the text image does not change. Can you tell me what is wrong with my script? Many thanks!!!
Best,
David Fujii
PS below is my script
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class Jessicahelpme : MonoBehaviour {
public Text text;
private enum States {fujiicorn, t0, t1_1, t2_1, t3_1, t3_2, t4_3, t4_1, t4_2, t5_1, t6_1, t7_1, t7_2, t8_1, t9_1, t9_2, t9_3, t9_4, t10_1, t10_2, t10_3, t11_1, t11_2, t12_1, t13_2, t14_2, t14_1, t15_1, t16_1, t16_2, t17_1, t17_2, t18_1, t00, t000, t001, t0000, t34};
private States myState;
// Use this for initialization
void Start () {
myState = States.fujiicorn;
}
// Update is called once per frame
void Update () {
print (myState);
if (myState == States.fujiicorn) {
state_fujiicorn ();
} else if (myState == States.t0) {
state_t0 ();
} else if (myState == States.t1_1) {
state_t1_1 ();
} else if (myState == States.t2_1) {
state_t1_1 ();
} else if (myState == States.t3_1) {
state_t1_1 ();
} else if (myState == States.t3_2) {
state_t1_1 ();
} else if (myState == States.t4_3) {
state_t1_1 ();
} else if (myState == States.t4_1) {
state_t1_1 ();
} else if (myState == States.t4_2) {
state_t1_1 ();
} else if (myState == States.t4_1) {
state_t1_1 ();
} else if (myState == States.t5_1) {
state_t1_1 ();
} else if (myState == States.t6_1) {
state_t1_1 ();
} else if (myState == States.t7_1) {
state_t1_1 ();
} else if (myState == States.t7_2) {
state_t1_1 ();
} else if (myState == States.t8_1) {
state_t1_1 ();
} else if (myState == States.t9_1) {
state_t1_1 ();
} else if (myState == States.t9_2) {
state_t1_1 ();
} else if (myState == States.t9_3) {
state_t1_1 ();
} else if (myState == States.t9_4) {
state_t1_1 ();
} else if (myState == States.t10_1) {
state_t1_1 ();
} else if (myState == States.t10_2) {
state_t1_1 ();
} else if (myState == States.t10_3) {
state_t1_1 ();
} else if (myState == States.t11_1) {
state_t1_1 ();
} else if (myState == States.t11_2) {
state_t1_1 ();
} else if (myState == States.t12_1) {
state_t1_1 ();
} else if (myState == States.t13_2) {
state_t1_1 ();
} else if (myState == States.t14_1) {
state_t1_1 ();
} else if (myState == States.t14_2) {
state_t1_1 ();
} else if (myState == States.t15_1) {
state_t1_1 ();
} else if (myState == States.t16_1) {
state_t1_1 ();
} else if (myState == States.t16_2) {
state_t1_1 ();
} else if (myState == States.t17_1) {
state_t1_1 ();
} else if (myState == States.t17_2) {
state_t1_1 ();
} else if (myState == States.t18_1) {
state_t1_1 ();
} else if (myState == States.t00) {
state_t1_1 ();
} else if (myState == States.t000) {
state_t1_1 ();
} else if (myState == States.t001) {
state_t1_1 ();
} else if (myState == States.t0000) {
state_t1_1 ();
} else if (myState == States.t34) {
state_t1_1 ();
}
}
void state_fujiicorn(){
text.text = "WiFi Messenger 2018\n\n" +
"fujiicorn(10:30AM): Goodmorning love :D \n" +
"Strange thing happend! i just met this person @ starbucks claiming 2 " +
"b an old friend of urs so I gave ur number (I hope ur k w/ that >.<) " +
"Replying to her should be easy! All you have to do is the following:\n\n" +
"fujiicorn(10:31AM):\n" +
"1. Press the letter in the () to select the message you want to send.\n" +
"2. And if you ever need to go back in time to this very moment press the Backspace ;) \n" +
"3. Press the spacebar NOW to open your messages! i wish u luck in rekindling ur friendship :D";
if (Input.GetKeyDown(KeyCode.Space)){
myState = States.t0;
}
}
void state_t0(){
text.text =
"408-414-2017(10:43) Hey Jessica! its been awhile. how u doing? \n\n" +
"(A) Me: i am doing well how are u? \n\n" +
"(B) Me: i am doing well...sorry i dont mean to b rude but who am i speaking w/? \n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t1_1;
}if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t3_2;
}if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t1_1(){
text.text = "seen by 408-414-2017\n\n" +
"408-414-2017(10:45AM): I am doing better… you may hav heard, but I had a break up abt two months ago. Its been difficult but things are looking bright again :) \n\n" +
"(A) Me: i am sorry to hear that, I think i saw that on fb \n\n" +
"(B) Me: Wait who is this?";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t2_1;
}if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t3_2;
}if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t2_1(){
text.text = "seen by 408-414-2017\n\n" +
"408-414-2017 (10:43AM)...We never put our relationship status on fb… \n\n" +
"(A) Me: Mayb I heard from someone else..???\n\n" +
"(B) Me: I think im getting you confused with someone else… who is this?\n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t3_1;
}if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t3_2;
}if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t3_1(){
text.text = "seen by 408-414-2017\n\n" +
"408-414-2017 (10:50AM): Who did u hear it from? \n\n" +
"(A) Me: I dont remember...\n\n" +
"(B) Me: from ummm clara?\n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t4_1;
}if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t4_3;
}if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t3_2(){
text.text = "seen by 408-414-2017\n\n" +
"408-414-2017 (10:49AM): Come on Jess seriously? :( \n\n" +
"408-414-2017 (10:50AM): wanna guess? >:)\n\n" +
"(A) Me: I dont remember...\n\n" +
"(B) Me: from ummm clara?\n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t4_2;
}if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t4_2;
}if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t4_3(){
text.text = "seen by 408-414-2017\n\n" +
"408-414-2017 (10:49AM): Come on Jess seriously? :( \n\n" +
"408-414-2017 (10:50AM): wanna guess? >:)\n\n" +
"(A) Me: I dont remember...\n\n" +
"(B) Me: from ummm clara?\n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t4_2;
}if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t4_2;
}if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t4_1(){
text.text = "seen by 408-414-2017\n\n" +
"408-414-2017 (10:51AM)Thats ********\n\n" +
"(A) Me: sorry \n\n" +
"(B) Me: well **** u 2\n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t00;
}if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t00;
}if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t4_2(){
text.text = "seen by 408-414-2017\n\n" +
"408-414-2017 (10:51AM): I am your stalker… lol jk jk \n\n" +
"(A) Me: Arnt u goin to tell me? \n\n" +
"(B) Me: Okay, thats creepy \n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t5_1;
}if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t5_1;
}if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t5_1(){
text.text = "seen by 408-414-2017\n\n" +
"408-414-2017 (10:52AM):Im just messing with you lol I actually like the mystery :)\n\n" +
"408-414-2017 (10:52AM):So what are you up to these days? \n\n" +
"(A) Me: hey dont change the subject! tell me! \n\n" +
"(B) Me: Not up to much. Pretty much the same… \n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t6_1;
}if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t6_1;
}if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t6_1(){
text.text = "seen by 408-414-2017\n\n" +
"408-414-2017 (10:52AM):Hold up… I think I hear someone at my front door…ima go check\n\n" +
"(A) Me: Hey i said don’t change the subject \n\n" +
"(B) Me: sure\n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t7_1;
}if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t7_2;
}if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t7_1(){
text.text = "seen by 408-414-2017\n\n" +
"408-414-2017 (10:53AM): Im being serious, I need to check to see who it is one sec… \n\n" +
"(A) Me: Who is it? \n\n" +
"(B) Me: Ok fine\n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t7_2;
}if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t7_2;
}if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t7_2(){
text.text = "seen by 408-414-2017\n\n" +
"408-414-2017 (10:53AM): dont recognize the person. Looks kinda shady lol Should I open the door? \n\n" +
"(A) Me: I dont kno… sure? \n\n" +
"(B) Me: What does the person look like?\n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t000;
}if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t8_1;
}if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t8_1(){
text.text = "seen by 408-414-2017\n\n" +
"408-414-2017 (10:54AM): I can’t really tell. Oh ****. there is another person holding a gun." +
"I think they are trying to break in.\n\n" +
"(A) Me: Call the Cops! \n\n" +
"(B) Me: Hide!\n\n"+
"(C) Me: Hide!\n\n"+
"(D) Me: Hide!\n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t9_1;
}if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t9_2;
}if (Input.GetKeyDown (KeyCode.C)) {
myState = States.t9_3;
}if (Input.GetKeyDown (KeyCode.D)) {
myState = States.t9_4;
}if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t9_1(){
text.text = "seen by 408-414-2017\n\n" +
"408-414-2017 (10:55AM):Only my cell's wifi is working b/c my sim card got water damage! ****\n\n" +
"(A) Me: Hide! \n\n" +
"(B) Me: Grab a weapon! \n\n" +
"(C) Me: Run out from the back! \n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t9_2;
}if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t9_3;
}if (Input.GetKeyDown (KeyCode.C)) {
myState = States.t9_4;
}if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t9_2(){
text.text = "seen by 408-414-2017 \n\n" +
"408-414-2017 (10:57AM):Where? \n\n" +
"(A) Me: Under your bed \n\n" +
"(B) Me: In your closet \n\n" +
"(C) Me: In your bathroom and lock the door \n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t10_1;
}if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t10_2;
}if (Input.GetKeyDown (KeyCode.C)) {
myState = States.t10_3;
}if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t9_3(){
text.text = "seen by 408-414-2017 \n\n" +
" 408-414-2017 (10:56AM):I got a kitchen knife! will this b enough? \n\n" +
"(A) Me: stay calm. just go for the throat. \n\n" +
"(B) Me: go hide with the weapon \n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t11_2;
}if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t9_2;
}if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t9_4(){
text.text = "seen by 408-414-2017 \n\n" +
"408-414-2017 (10:55AM):i can’t i live in an apartment \n\n" +
"(A) Me: Call the Cops! \n\n" +
"(B) Me: Hide! \n\n" +
"(C) Me: Grab a weapon! \n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t9_1;
}if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t9_2;
}if (Input.GetKeyDown (KeyCode.C)) {
myState = States.t9_3;
}if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t10_1(){
text.text = "seen by 408-414-2017 \n\n" +
"408-414-2017 (10:57AM):k im under my bed. **** I hear them coming in through the door. \n\n" +
"(A) Me: Its going to b okay \n\n" +
"(B) Me: [dont repsond] \n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t11_1;
}
if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t000;
}
if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t10_2(){
text.text = "seen by 408-414-2017 \n\n" +
"408-414-2017 (10:57AM):k im in my closet. **** I hear them in through the door. \n\n" +
"(A) Me: Its going to b okay \n\n" +
"(B) Me: [dont repsond] \n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t11_1;
}if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t000;
}if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t10_3(){
text.text = "seen by 408-414-2017 \n\n" +
"408-414-2017 (10:57AM):Ok I am in my bathroom and I locked the door. Im scared.\n\n" +
"(A) Me: Its going to b okay \n\n" +
"(B) Me: [dont repsond] \n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t11_1;
}
if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t000;
}
if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t11_1(){
text.text = "seen by 408-414-2017 \n\n" +
"408-414-2017 (11:10AM):Who the **** r u? \n\n" +
"(A) Me: [dont respond] \n\n" +
"(B) Me: who are u? \n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t00;
}
if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t0000;
}
if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t11_2(){
text.text = "seen by 408-414-2017 \n\n" +
"408-414-2017 (11:05AM):k im standing by the door. im goin 2 go for it.\n\n" +
"(A) Me: [dont respond] \n\n" +
"(B) Me: who are u? \n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t12_1;
}
if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t12_1;
}
if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t12_1(){
text.text = "seen by 408-414-2017 \n\n" +
"408-414-2017 (11:22AM):Jess… i just killed them both. I dont kno wat the **** i need to do. ******* help me\n\n" +
"(A) Me: where r u ill call the cops 4 u \n\n" +
"(B) Me: check their IDs \n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t14_2;
}
if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t13_2;
}
if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t13_2(){
text.text = "seen by 408-414-2017 \n\n" +
"408-414-2017 (11:22AM):I found nothing. there is blood everywhere\n\n" +
"(A) Me: grab the gun \n\n" +
"(B) Me: where r u ill let the cops know where u r\n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t14_1;
}
if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t14_2;
}
if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t14_2(){
text.text = "seen by 408-414-2017 \n\n" +
"408-414-2017 (11:23AM):I cant tell u that\n\n" +
"(A) Me: actually, who the **** are u?\n\n" +
"(B) Me: why not \n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t15_1;
}
if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t15_1;
}
if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t14_1(){
text.text = "seen by 408-414-2017 \n\n" +
"408-414-2017 (11:23AM):I have never used a gun before\n\n" +
"(A) Me: who are u?\n\n" +
"(B) Me: where are u at? \n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t15_1;
}
if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t14_2;
}
if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t15_1(){
text.text = "seen by 408-414-2017 \n\n" +
"408-414-2017 (11:25AM): i cant tell u that as well. just tell me where u r at\n\n" +
"(A) Me: **** no\n\n" +
"(B) Me: im at david's apartment\n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t16_1;
}
if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t16_2;
}
if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t16_1(){
text.text = "seen by 408-414-2017 \n\n" +
"408-414-2017 (11:28AM):Jessica I need your help \n\n" +
"(A) Me: fine 780 Oak grove rd Concord, ca 94518 \n\n" +
"(B) Me: [ignore her] \n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t17_1;
}
if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t17_2;
}
if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t17_1(){
text.text = "seen by 408-414-2017 \n\n" +
"408-414-2017 (11:32AM):K im coming right now \n\n" +
"fujiicorn:(11:33AM):URGENT- Jess I found out that friend of urs is ******* crazy." +
"Ill fill u in the deatils later. dont giv her ur location" +
"(A) Me: I already did :D \n\n" +
"(B) Me: ****! \n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t17_1;
}
if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t17_2;
}
if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t17_2(){
text.text = "seen by 408-414-2017 \n\n" +
"408-414-2017 (11:10AM): Ill just find u \n\n" +
"fujiicorn (11:11AM): URGENT- Jess I found out that friend of urs is ******* crazy." +
"Ill fill u in the deatils later. ****! wherever u r get the **** out... or actually..." +
"i know abt ur time traveling powers." +
"long story short, go back in time and when u find out she is dead" +
"press the letter z and ill message u.\n\n";
if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t18_1(){
text.text = "seen by 408-414-2017 \n\n" +
"408-414-2017 (11:32AM):K im coming right now \n\n" +
"fujiicorn:(11:33AM):URGENT- Jess I found out that friend of urs is ******* crazy." +
"Ill fill u in the deatils later. dont giv her ur location" +
"(A) Me: I already did :D \n\n" +
"(B) Me: ****! \n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t17_1;
}
if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t17_2;
}
if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t00(){
text.text = "seen by 408-414-2017 \n\n" +
"(A) Me: Hello? \n\n" +
"(B) Me: Hey im sorry... \n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t000;
}
if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t000;
}
if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t000(){
text.text = "n0 rE5p0N5e... \n\n" +
"(A)[Text fujiicorn]-> toxicninja34: there is something wrong with ur game! :P” \n\n" +
"(B)[Text fujiicorn]-> toxicninja34: david y is this person not responding \n\n";
if (Input.GetKeyDown (KeyCode.A)) {
myState = States.t001;
}
if (Input.GetKeyDown (KeyCode.B)) {
myState = States.t001;
}
if (Input.GetKeyDown (KeyCode.Z)) {
myState = States.t34;
}
if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t001(){
text.text = "fujiicorn: hmmm wonder y ur friend isnt responding… were u being an *******?"+
"lol mayb u should use ur powers to go back in time and fix things up?";
if (Input.GetKeyDown (KeyCode.Z)) {
myState = States.t34;
}
if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t0000(){
text.text = "408-414-2017 (11:15AM):: ...not ur friend b/c she dead lol";
if (Input.GetKeyDown (KeyCode.Z)) {
myState = States.t34;
}
if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
void state_t34(){
text.text = "fujiicorn: hey Jessica, sorry i gave ur number, " +
"I didnt realize that the woman u were texting is a seriel killer from the future. " +
"I kno there is more to this person. I'll have to investigate more... possibly in another game. " +
"Thanks for the help in stopping this person and above all, thanks for playing my game :D";
if (Input.GetKeyDown (KeyCode.Z)) {
myState = States.t34;
}
if (Input.GetKeyDown (KeyCode.Backspace)) {
myState = States.fujiicorn;
}
}
}