So this is the first time I’ve ever tried to use playerprefs to save a game and I keep getting strange error messages with this code
var savedTForm00 : Transform;
private var Scene : String;
function SaveIt00(){///==SAVEIT==///
PlayerPrefs.SetString(Scene);
}
function LoadIt00(){///==LOADIT==///
PlayerPrefs.GetString(Scene);
}
var autoLoad : boolean;
function Start() {
if(autoLoad==true) {
LoadIt00();
}
}
function Update() {
if(Input.GetKey("m")) {
SaveIt00();
}
if((Input.GetKey("b"))(autoLoad==false)) {
LoadIt00();
}
}
What is wrong with the code?