hi. can someone tell me please why this doesnt work.
and if there might be other solutions?
function findeFrage(_name:String){
// GameObject.name is between "10" and "20"
if(_name!=actualName){
actualName = _name;
var number:String = (actualName[0]+""+actualName[1]);
print(number);
var yourInt;
yourInt = parseInt(actualName);
score = yourInt;
return score;
}
}
// errorMSG
if(GUI.Button (Rect (moX+20, (Screen.height-moY)-20, buttonBreite, 20),fragenArray[score])){
}
// FormatException: Input string was not in the correct format
System.Int32.Parse (System.String s)
UnityScript.Lang.UnityBuiltins.parseInt (System.String value)
thank you.