public void Start() { if (currentBuildIndex == 0) { PlayerPrefs.DeleteKey(playerDataSaver.GetIsGuest().ToString()); playerDataSaver.SetIsGuest(0); emailInput.text = playerDataSaver.GetEmail(); passwordInput.text = playerDataSaver.GetPassword(); } if (currentBuildIndex == 1 && playerDataSaver.GetIsGuest() == 0) { IsFirstTime(); StartCoroutine(Initialization()); } }
public void RegisterTemporaryAccount(Button btn) { //if user is NOT guest, disable registration button cause he already did it if (playerDataSaver.GetIsGuest() == 0) { btn.interactable = false; } else { btn.interactable = true; } }