public void LoadPlayerFile() { if (playerFile != null) { playerFile.LoadGameState(); } else { Debug.Log("playerfile is null"); } }