This is how I used the 007 easter egg
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Hacker : MonoBehaviour
{
// Use this for initialization
void Start ()
{
ShowMainMenu("Human");
}
void ShowMainMenu (string name)
{
Terminal.ClearScreen();
string greeting = "Hello " + name;
Terminal.WriteLine (greeting);
Terminal.WriteLine("");
Terminal.WriteLine("What Mayhem Pleases You?");
Terminal.WriteLine("");
Terminal.WriteLine("Press 1 to: Hack Into Library");
Terminal.WriteLine("Press 2 to: Hack the Police?");
Terminal.WriteLine("");
Terminal.WriteLine("Please Enter Your Selection...");
Terminal.WriteLine("");
}
void OnUserInput(string input)
{
if (input == "menu")
{
ShowMainMenu("Human");
}
else if (input == "1")
{
Terminal.WriteLine("You chose the library");
}
else if (input == "2")
{
Terminal.WriteLine("You chose the police");
}
else if (input == "007")
{
ShowMainMenu("Mr Bond");
}
else
{
Terminal.WriteLine("your input is invalid");
}
}
}