public override void Load() { Envir.Network.PrepareConnection(); _loginBox.Visible = false; _window = MirWindow.ShowDialog("Loading", $"Trying connect to server\nAttemps: {_attemps}"); }
public override void Process(LoginResult packet) { switch (packet.Result) { case LoginResultEnum.BadUsernameOrPassword: MirWindow.ShowDialog("Login", "Your username or password are not correct"); break; case LoginResultEnum.Succcess: SceneManager.Load(new CharacterScene()); break; } }
public void OnLostConnection(object sender, EventArgs e) { MirWindow.ShowDialog("You are disconnected", "Connection lost, you want to go login?"); }