コード例 #1
0
    public bool onNoSessionOnResume(SessionErrorEvents.NoSessionOnResumeError evt)
    {
        if (showingError)
        {
            return(false);
        }
        Service.Get <ICPSwrveService>().Error("network_error", "NoSessionOnResumeError", gameStateController.CurrentState(), SceneManager.GetActiveScene().name);
        Log.LogNetworkErrorFormatted(this, "No Session on Resume state: {0}", gameStateController.CurrentState());
        ErrorData errorData = new ErrorData("GlobalUI.ErrorMessages.NetworkError.Title", "GlobalUI.ErrorMessages.SessionLostError");

        showIconErrorPrompt(errorData, SessionLostIconContentKey);
        gameStateController.ExitWorld();
        return(false);
    }
コード例 #2
0
 private bool onSessionResumeFailed(SessionErrorEvents.NoSessionOnResumeError evt)
 {
     Service.Get<EventDispatcher>().RemoveListener<SessionErrorEvents.NoSessionOnResumeError>(onSessionResumeFailed);
     Service.Get<ICPSwrveService>().Action("membership_session", "resume_failed");
     return false;
 }