public void Start() { if (GameSave.Exists()) { GameData data = GameSave.GetData(); transform.position = data.playerPosition; } }
private void Start() { GameData data = GameSave.GetData(); if (GameSave.Exists()) { // Get the data data = GameSave.GetData(); transform.position = data.playerPos; score = data.score; transform.rotation = data.playerRot; } }