Exemplo n.º 1
0
    public void OkButton()
    {
        bool result = ErrorCheck.Instance.CheckUseCount(AttachRate.AttachGachaRate.GetUseCount());

        if (result)
        {
            SceneManagers.SceneLoad(SceneManagers.SceneName.EmmisionGacha);
        }
    }
Exemplo n.º 2
0
        /// <summary>
        /// ログインのレスポンス処理
        /// </summary>
        /// <param name="response"></param>
        public void ResponseLogin(ResponseLogin response)
        {
            if (response.islogin)
            {
                SceneManagers.SceneLoad(SceneManagers.SceneName.Main);
            }

            else
            {
                PlayerPrefs.SetString(NetWorkKey.LOGIN_PRESENT, response.login_present);
                SceneManagers.SceneLoad(SceneManagers.SceneName.LoginPresent);
            }
        }
Exemplo n.º 3
0
    void UserCheck()
    {
        if (PlayerPrefs.HasKey(NetWorkKey.USER_ID))
        {
            RequestLogin param = new RequestLogin();
            param.user_ip = PlayerPrefs.GetString(NetWorkKey.USER_ID);
            ApiClient.Instance.RequestLogin(param);
        }

        else
        {
            SceneManagers.SceneLoad(SceneManagers.SceneName.CreateUser);
        }
    }
Exemplo n.º 4
0
 /// <summary>
 /// 新規ユーザを作成のレスポンス処理
 /// </summary>
 /// <param name="response"></param>
 public void ResponseCreateUser(ResponseCreateUser response)
 {
     PlayerPrefs.SetString(NetWorkKey.USER_ID, response.user_id);
     PlayerPrefs.SetString(NetWorkKey.USER_NAME, response.user_name);
     SceneManagers.SceneLoad(SceneManagers.SceneName.Title);
 }
Exemplo n.º 5
0
 public void NextScene()
 {
     SceneManagers.SceneLoad(status);
 }