using System.Collections;
using System;
using System.Collections.Generic;
using UnityEngine;
public class Hacker : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
MenuInicial();
}
void MenuInicial()
{
Terminal.WriteLine("Qual o seu nome?");
}
void OnUserInput(string input)
{
Menuprincipal(input);
}
void Menuprincipal(string Nome)
{
Terminal.ClearScreen();
var Inicio = "ola " + Nome;
Terminal.WriteLine(Inicio);
Terminal.WriteLine("Bem vindo ao terminal");
Terminal.WriteLine("Aperte 1 para o Pc da casa");
Terminal.WriteLine("Aperte 2 para o Pc da Vizinha");
}
// Update is called once per frame
void Update()
{
}
}
This is my code, i did it so when starting the Terminal , first i would ask the name, so when starting, the name chosen by the player would stay in the begging , but i dont want it to happens every time the player write something , but just that one time in the first screen, how can i make it happens just one time?