Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class Hacker : MonoBehaviour {
- // Use this for initialization
- void Start()
- {
- ShowMainMenu()
- }
- void ShowMainMenu()
- {
- Terminal.ClearScreen();
- Terminal.WriteLine("what would you like to hack into?");
- Terminal.WriteLine("press 2 for the police station");
- Terminal.WriteLine("press 1 for the local library")
- Terminal.WriteLine("enter your selection: ");
- }
- void OnuserInput(string input)
- {
- if (input == "menu")
- {
- ShowMainMenu();
- }
- else if (CurrentScreen == Screen.MainMenu)
- {
- RunMainMenu(input);
- }
- }
- void RunMainMenu(string input)
- {
- if (input == "1")
- {
- level = 1;
- StartGame();
- }
- else if (input == "2")
- {
- level = 2;
- GameStart();
- }
- else if (input == "007")
- {
- Terminal.WriteLine("please select a level Mr bond");
- }
- else
- {
- Terminal.WriteLine("please select a valid level");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement