Advertisement
Guest User

Untitled

a guest
Oct 18th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. void State_ruins()
  2. {
  3. text.text = "You are standing in a grassy field surrounded my ancient ruins.You have no idea where you are. " +
  4. "There are three objects in your vicinity: a small wooden chest, a large metal chest, and a dragon egg. \n\n" +
  5. "Press S to open the Small chest; L to open Large chest; D to examine Dragon egg";
  6. if (Input.GetKeyDown(KeyCode.S)) {
  7. myState = States.sbox;
  8. }
  9. else if (Input.GetKeyDown(KeyCode.L)) {
  10. myState = States.lbox;
  11. }
  12. else if (Input.GetKeyDown(KeyCode.D)) {
  13. myState = States.egg;
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement