Created
September 4, 2017 21:18
-
-
Save anonymous/fc5611cc2ae5afdcab2b00ba443a416d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.UI; | |
using System.Collections; | |
public class TextController : MonoBehaviour { | |
public Text text; | |
private enum States { | |
cell, cellback, mirror, sheets_0, lock_0, cell_mirror, sheets_1, lock_1, | |
corridor_0 | |
}; | |
private States myState; | |
void Start (){ | |
myState = States.cell; | |
} | |
void Update () { | |
print (myState); | |
if (myState == States.cell) {cell();} | |
else if (myState == States.cellback) {cellback();} | |
else if (myState == States.sheets_0) {sheets_0();} | |
else if (myState == States.lock_0) {lock_0();} | |
else if (myState == States.mirror) {mirror();} | |
else if (myState == States.cell_mirror) {cell_mirror();} | |
else if (myState == States.sheets_1) {sheets_1();} | |
else if (myState == States.lock_1) {lock_1();} | |
else if (myState == States.corridor_0) {corridor_0;} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment