コード例 #1
0
    public void ContinueButtonPress()
    {
        PlayButtonSound();
        PlayerData playerData = FindObjectOfType <PlayerData>();

        playerData.LoadPlayer(SavePrefs.GetMostRecentlyUsedSaveSlot());
        FindObjectOfType <HubMenuButton>().OpenMenu();
        gameObject.SetActive(false);
    }
コード例 #2
0
 public void SetupFirstMenu()
 {
     if (SavePrefs.GetMostRecentlyUsedSaveSlot() != 0)
     {
         continueButton.interactable = true;
     }
     else
     {
         continueButton.interactable = false;
     }
 }