Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void State_ruins()
- {
- text.text = "You are standing in a grassy field surrounded my ancient ruins.You have no idea where you are. " +
- "There are three objects in your vicinity: a small wooden chest, a large metal chest, and a dragon egg. \n\n" +
- "Press S to open the Small chest; L to open Large chest; D to examine Dragon egg";
- if (Input.GetKeyDown(KeyCode.S)) {
- myState = States.sbox;
- }
- else if (Input.GetKeyDown(KeyCode.L)) {
- myState = States.lbox;
- }
- else if (Input.GetKeyDown(KeyCode.D)) {
- myState = States.egg;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement