public void SaveScore() { SaveLoad.AddScore(new Score { scorePoints = currentScore, playerName = playerName.text }); button.SetActive(false); }