public void OnButtonClick() { LoadingScreen.instance.ShowLoadingScreen(); SelectProject.instance.HideProjectSelectScreen(); Utils_Prefs.StoreProjectId(projectId); SceneManager.LoadSceneAsync("Planner"); }
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(); }
void Start() { if (Utils_Prefs.GetUserName() != "") { userNameText.text = Utils_Prefs.GetUserName(); } else { userNameText.text = Utils_Prefs.GetUserEmail(); } timeText.text = System.DateTime.Now.ToShortTimeString(); }
public void SendProjectStep() { ProjectStep projectStep = new ProjectStep( PlannerSubmitMenu.instance.GetNameInput(), Utils_Prefs.GetProjectId(), CreateStepObjects(ObjectSelection.instance.GetSelectedObjects()), DurationMenu.instance.GetDurationInput(), CrewSizeMenu.instance.GetCrewSizeInput(), LeadLagMenu.instance.GetLeadInput(), LeadLagMenu.instance.GetLagInput(), CreateStepObjects(ObjectSelection.instance.GetPrerequisiteObjects(), true) ); Menu.instance.DeselectButtonClick(); }