I’m trying to do a command prompt thing ive got this so far i need to use the string variable as a if statement also i will be using move than one string variable
code part j/s
var yPosition : int; //positions for the text box in the bottom corna
var xPosition : int; //positions for the text box in the bottom corna
var ytransform : int; //size for the text box in the bottom
var xtransform : int; //size for the text box in the bottom
var WhatTheBoxSays : String; // the input on the text box
var largerTextboxboolean : boolean = false;
var yPosition2 : int; //positions for the text box in the bottom corna
var xPosition2 : int; //positions for the text box in the bottom corna
var ytransform2 : int; //size for the text box in the bottom
var xtransform2 : int; //size for the text box in the bottom
function OnGUI() {
if(largerTextboxboolean)
{
GUIText((Rect(xPosition2,yPosition2, xtransform2 ,ytransform2 ),WhatTheBoxSays,25);)
}
WhatTheBoxSays = GUI.TextField(Rect(xPosition,yPosition, xtransform ,ytransform ),WhatTheBoxSays,25);
}
function Update(){
if(WhatTheBoxSays=Help) {
largerTextboxboolean= true;
}
if(largerTextboxboolean && Input.GetKeyDown("c"))
{
largerTextboxboolean= false;
}
}