public void ContinueButtonPress() { PlayButtonSound(); PlayerData playerData = FindObjectOfType <PlayerData>(); playerData.LoadPlayer(SavePrefs.GetMostRecentlyUsedSaveSlot()); FindObjectOfType <HubMenuButton>().OpenMenu(); gameObject.SetActive(false); }
public void SetupFirstMenu() { if (SavePrefs.GetMostRecentlyUsedSaveSlot() != 0) { continueButton.interactable = true; } else { continueButton.interactable = false; } }