예제 #1
0
        /// <summary>
        /// ログインリクエスト受信
        /// </summary>
        /// <param name="Stream">ストリーム</param>
        /// <returns>結果パケット</returns>
        private IPacket OnRecvLogInRequest(IDictionaryStream Stream)
        {
            PacketLogInRequest Request = new PacketLogInRequest();

            Request.Serialize(Stream);

            Parent.SetNextState(new GameStatePreActive(Parent));

            // 今のところ問答無用
            PacketLogInResult Result = new PacketLogInResult();

            return(Result);
        }
예제 #2
0
        public void OnPressed()
        {
            if (GameServerConnection.Instance.IsConnected)
            {
                return;
            }
            if (!GameServerConnection.Instance.Connect())
            {
                Debug.Log("LogIn Failed...");
                return;
            }
            PacketLogInRequest Request = new PacketLogInRequest();

            GameServerConnection.Instance.SendPacket(Request);
        }