Esempio n. 1
0
 public void SendMsgC2GSEnterGame(pb.GameMode mode, string roomId = "")
 {
     Debug.Log("SendMsgC2GSEnterGame==>> [" + mode.ToString() + "]");
     pb.C2GSEnterGame msg = new pb.C2GSEnterGame();
     msg.mode   = mode;
     msg.roomId = roomId;
     NetworkManager.Instance.SendToGS((UInt16)MsgDef.C2GSEnterGame, msg);
 }
Esempio n. 2
0
 //选定角色后登陆游戏
 public void SendMsgC2GSEnterGame(pb.RoleInfo info, bool isNewRole)
 {
     Debug.Log("======================>>>SendMsgC2GSEnterGame");
     pb.C2GSEnterGame msg = new pb.C2GSEnterGame();
     msg.AccountName      = LocalFile.Load("AccountName");
     msg.SelectedRoleInfo = info;
     msg.IsNewRole        = isNewRole;
     NetworkManager.Instance.SendToGAS((int)MsgDef.C2GSEnterGame, msg);
 }