コード例 #1
0
 public void OnButtonClick()
 {
     LoadingScreen.instance.ShowLoadingScreen();
     SelectProject.instance.HideProjectSelectScreen();
     Utils_Prefs.StoreProjectId(projectId);
     SceneManager.LoadSceneAsync("Planner");
 }
コード例 #2
0
 void Logout()
 {
     if (File.Exists(Application.persistentDataPath + "/auth.grit"))
     {
         File.Delete(Application.persistentDataPath + "/auth.grit");
     }
     Utils_Prefs.ClearPrefs();
     SceneManager.LoadSceneAsync("Login");
 }
コード例 #3
0
 public void LogoutButtonClick()
 {
     if (File.Exists(Application.persistentDataPath + "/auth.grit"))
     {
         File.Delete(Application.persistentDataPath + "/auth.grit");
     }
     Utils_Prefs.ClearPrefs();
     HideProjectSelectScreen();
 }
コード例 #4
0
    void Start()
    {
        if (Utils_Prefs.GetUserName() != "")
        {
            userNameText.text = Utils_Prefs.GetUserName();
        }
        else
        {
            userNameText.text = Utils_Prefs.GetUserEmail();
        }

        timeText.text = System.DateTime.Now.ToShortTimeString();
    }
コード例 #5
0
    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();
    }