Hacker code progress -- Talking computer


using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Hacker : MonoBehaviour {

// Use this for initialization
void Start () {
	ShowMainMenu("Stacy");

}

void ShowMainMenu(string PlayerName)
{
	Terminal.ClearScreen();
	Terminal.WriteLine("Hello," + PlayerName);
	Terminal.WriteLine("I know you are there.");
	Terminal.WriteLine("Please, come talk to me-");
	Terminal.WriteLine("aren't you curious about what's happening here??");
	Terminal.WriteLine(" ");
	Terminal.WriteLine("Press 1 -- Who are you?");
	Terminal.WriteLine("Press 2 -- Where am I?");
	Terminal.WriteLine("Press 3 -- Why the heck is such an old machine still working??");
}

void OnUserInput(string input)
{
	if (input == "menu")
	{
		ShowMainMenu("Stacy");
	}
	else if (input == "1")
	{
		Terminal.WriteLine("I am an IBM PC sold in 1982.");
		Terminal.WriteLine("You know, we, the first generation of PC, rocked the world.");
	}
	else if (input == "2")
	{
		Terminal.WriteLine("In a deserted church,");
		Terminal.WriteLine("along with me, a deserted computer. How sad.");
	}
	else if (input == "3")
	{
		Terminal.WriteLine("Why am I supposed NOT to?");
		Terminal.WriteLine("I am not old at all, OK?!!");
	}
	else if (input == "apple" || input == "Apple")
	{
		Terminal.WriteLine("Meh.");
	}
	else
	{
		Terminal.WriteLine("Say something I can understand, human");
	}
}

}

Privacy & Terms