/// <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); }
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); }