예제 #1
0
        public override void Load()
        {
            Envir.Network.PrepareConnection();

            _loginBox.Visible = false;
            _window           = MirWindow.ShowDialog("Loading", $"Trying connect to server\nAttemps: {_attemps}");
        }
예제 #2
0
        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;
            }
        }
예제 #3
0
 public void OnLostConnection(object sender, EventArgs e)
 {
     MirWindow.ShowDialog("You are disconnected", "Connection lost, you want to go login?");
 }