Advertisement
Arthurious

Untitled

Aug 13th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class Hacker : MonoBehaviour {
  6.  
  7. // Use this for initialization
  8. void Start()
  9. {
  10. ShowMainMenu()
  11. }
  12.  
  13. void ShowMainMenu()
  14. {
  15. Terminal.ClearScreen();
  16. Terminal.WriteLine("what would you like to hack into?");
  17. Terminal.WriteLine("press 2 for the police station");
  18. Terminal.WriteLine("press 1 for the local library")
  19. Terminal.WriteLine("enter your selection: ");
  20. }
  21.  
  22. void OnuserInput(string input)
  23. {
  24. if (input == "menu")
  25. {
  26. ShowMainMenu();
  27. }
  28. else if (CurrentScreen == Screen.MainMenu)
  29. {
  30. RunMainMenu(input);
  31. }
  32. }
  33.  
  34. void RunMainMenu(string input)
  35. {
  36. if (input == "1")
  37. {
  38. level = 1;
  39. StartGame();
  40. }
  41. else if (input == "2")
  42. {
  43. level = 2;
  44. GameStart();
  45. }
  46. else if (input == "007")
  47. {
  48. Terminal.WriteLine("please select a level Mr bond");
  49. }
  50. else
  51. {
  52. Terminal.WriteLine("please select a valid level");
  53. }
  54. }
  55. }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement