コード例 #1
0
    private void Start()
    {
        UserData user = PersistanceManager.GetSavedData <UserData>(Constants.UserDataSavedKey);

        if (user == null)
        {
            mainMenuController.OpenLoginScreen();
        }
        else
        {
            if (user.LoginType == LoginTypes.Guest)
            {
                GuestLogIn(true);
            }
        }
    }
コード例 #2
0
 public void OpenMenuScreen()
 {
     LoginScreen.SetActive(false);
     MenuScreen.SetActive(true);
     UserName.text = PersistanceManager.GetSavedData <UserData>(Constants.UserDataSavedKey).UsedId;
 }