So I’m currently testing local storage for the player.
localStorage.setItem("player", this.player);
var testPlayer = localStorage.getItem("player");
console.log(testPlayer);
Unfortunately in my console all I am getting is [object Object] and when I try to load local storage in my second scene, it acts like it has no idea what data I’m loading.
I just did a test and replaced my code above with a string as the value:
localStorage.setItem("player", "test");
var testPlayer = localStorage.getItem("player");
console.log(testPlayer);
This worked just fine and even let me use it in my other scenes. For some reason I can’t store my player.