void Logout() { if (File.Exists(Application.persistentDataPath + "/auth.grit")) { File.Delete(Application.persistentDataPath + "/auth.grit"); } Utils_Prefs.ClearPrefs(); SceneManager.LoadSceneAsync("Login"); }
public void LogoutButtonClick() { if (File.Exists(Application.persistentDataPath + "/auth.grit")) { File.Delete(Application.persistentDataPath + "/auth.grit"); } Utils_Prefs.ClearPrefs(); HideProjectSelectScreen(); }