I can’t find the level tab in the debugger. I’ve tried resaving/ building my C# file. When I hit play, it doesn’t appear. Here’s my terminal_hacker file:
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Hacker : MonoBehaviour {
int level;
// Use this for initialization
void Start () {
ShowMainMenu();
print("Hello" + "World");
}
void ShowMainMenu() {
Terminal.ClearScreen();
Terminal.WriteLine("Howdy, bub.");
Terminal.WriteLine("Select level");
Terminal.WriteLine("1. Library");
Terminal.WriteLine("2. Police station");
}
// Update is called once per frame
void OnUserInput(string input)
{
if(input == "menu")
{
ShowMainMenu();
}
else if (input == "1")
{
level = 1;
StartGame();
}
else if (input == "007")
{
Terminal.WriteLine("hi Bond");
}
else
{
Terminal.WriteLine("Give me a correct input!");
}
}
void StartGame()
{
Terminal.WriteLine("you chose level " + level);
}
}
Would really appreciate help with this. Thanks!