/// <summary> /// Failed logging in. /// </summary> /// <param name="e">error</param> private void FailLogIn(PlayerIOError e) { if (OnFailConnect != null) { OnFailConnect(this, e.Message); } }
public virtual void OnAuthenticateFail(PlayerIOError error) { // Debug.Log("OnAuthenticateFail: " + error.ToString()); NetworkManager.Instance.notificationTextObject.text.text = "Error: " + error.ToString(); NetworkManager.Instance.StartCoroutine(NetworkManager.Instance.notificationTextObject.DisplayRoutine()); // Connect (); }
public bool Login(string email, string password, string server) { PlayerIOError error = null; PlayerIO.QuickConnect.SimpleConnect( server, email, password, delegate(Client tempClient) { client = tempClient; loggedIn = true; }, delegate(PlayerIOError tempError) { error = tempError; }); while (!loggedIn && error == null) { } if (loggedIn) { return(true); } else { MessageBox.Show("Could not login: " + error); return(false); } }
/// <summary> /// /// </summary> /// <param name="e"></param> private void FailCreate(PlayerIOError e) { if (OnFailCreateWorld != null) { OnFailCreateWorld(this, e.Message); } }
/// <summary> /// /// </summary> /// <param name="e"></param> private void FailJoin(PlayerIOError e) { if (OnFailJoinWorld != null) { OnFailJoinWorld(this, e.Message); } }
public bool Connect(string worldId, string roomType, string code = "") { if (loggedIn) { PlayerIOError error = null; client.Multiplayer.CreateJoinRoom( worldId, roomType, true, null, null, delegate(Connection tempConnection) { connection = tempConnection; connection.OnDisconnect += this.OnDisconnect; connection.OnMessage += this.OnMessage; connection.Send("init"); connection.Send("init2"); }, delegate(PlayerIOError tempError) { error = tempError; }); while (!connected && error == null) { } if (connection.Connected) { //connection.Send("access", form..Text); return(true); } else { MessageBox.Show("Could not connect: " + error); return(false); } } else { return(false); } }
public virtual void OnNewAccountDBObjectSaveFail(PlayerIOError error) { NetworkManager.Instance.notificationTextObject.text.text = "Error: " + error.ToString(); NetworkManager.Instance.StartCoroutine(NetworkManager.Instance.notificationTextObject.DisplayRoutine()); VirtualKeyboard.Instance.EnableInput(); }
public virtual void OnDeleteAccountDBObjectFail(PlayerIOError error) { NetworkManager.Instance.notificationTextObject.text.text = "Error: " + error.ToString(); NetworkManager.Instance.StartCoroutine(NetworkManager.Instance.notificationTextObject.DisplayRoutine()); }
public void onStatLoadError(PlayerIOError error) { mCtx.PlayerIO.ErrorLog.WriteError("Unable to save server stats. " + error.Message); }
public virtual void OnAuthenticateFail(PlayerIOError error) { Debug.Log("OnAuthenticateFail: " + error.ToString()); // Connect (); }
// ReSharper disable once InconsistentNaming private static void PrintPlayerIOError(PlayerIOError error) { Console.WriteLine("ERROR: [{0}] {1}", error.Source, error.Message); }
/// <summary> /// /// </summary> /// <param name="e"></param> private void FailCreate(PlayerIOError e) { if (OnFailCreateWorld != null) OnFailCreateWorld(this, e.Message); }
void FailCreateLevelData(PlayerIOError _error) { Debug.Log(_error.Message); }
void OnRegisterFail(PlayerIOError _client) { Debug.Log(_client.ErrorCode.ToString()); cbFunctionFailure(_client.ErrorCode.ToString()); }
private void OnErrorConnecting(PlayerIOError error) { connecting = false; AddDebugLine("Error connecting: " + error); errorRetryCountdown.Reset(); }
// ReSharper disable once InconsistentNaming private static void PrintPlayerIOError(PlayerIOError error) { Console.WriteLine("ERROR: [{0}] {1}", error.Source, error.Message); }
private void onLoadingError(PlayerIOError err) { Console.WriteLine(err); gamelink.PlayerIO.ErrorLog.WriteError(err.Message, err.ErrorCode.ToString(), err.StackTrace, null); createPreviewObjects(); //go insert then }
private void savingPOFailed(PlayerIOError error) { playerObjectDirty = false; PlayerObject.Save(savingPOFinished, savingPOFailed); }
private void ErrorCallback(PlayerIOError value) { Debug.Log("Error connect"); }
private void OnErrorJoiningRoom(PlayerIOError error) { AddDebugLine("Error Joining Room: " + error); errorRetryCountdown.Reset(); }
private void Fail(PlayerIOError _error, string _name) { Debug.Log("Erreur" + _name); }
void OnConnectFailure(PlayerIOError _client) { Debug.Log(_client.ErrorCode.ToString()); cbFunctionFailure(_client.ErrorCode.ToString()); }
private void handleError(PlayerIOError value) { throw new Exception(value.Message, value); }
private void ConnectionFailed(PlayerIOError error) { Debug.LogError("Server ConnectionFailed:\n" + error.Message); }
public virtual void OnCreateJoinRoomFail(PlayerIOError error) { // Debug.Log("OnCreateJoinRoomFail: " + error.ToString()); CreateJoinRoom(); }
/// <summary> /// Failed logging in. /// </summary> /// <param name="e">error</param> private void FailLogIn(PlayerIOError e) { if (OnFailConnect != null) OnFailConnect(this, e.Message); }
/// <summary> /// /// </summary> /// <param name="e"></param> private void FailJoin(PlayerIOError e) { if (OnFailJoinWorld != null) OnFailJoinWorld(this, e.Message); }
private static void LogError(PlayerIOError error) { Debug.Log(error); }
private void failLogin(PlayerIOError error) { MessageBox.Show(error.Message, "Login error", MessageBoxButtons.OK, MessageBoxIcon.Error); }