Hi,
I am sort of new to scripting (well, very new ) and I guess I am doing somthing wrong here:
#pragma strict
var DialogueOptions : String [ ];
static var DialogueLine: String;
function OnGUI () {
if (GUI.Button (Rect (20,Screen.height -120,Screen.width - 40,20), DialogueOptions[0]) {
DialogueLine = DialogueOptions [0];
}
}
I want to use DialogueLine in another script.
It always gives me the "Cannot convert char to string (BCE0022) error. I already read a couple of threads here in the forum, but I don`t quite get it.
Could someone explain to me how to do this and what exactly I am doing wrong?
Thanks