//玩家准备了 public void PlayerGetReady(int rdPos) { string pos = ""; if (GameInfo.Instance.positon == rdPos) { pos = "bot"; } else { pos = TryGetLocPos(GameInfo.Instance.positon, rdPos); } switch (pos) { case "bot": isMyReady = 1; break; case "right": isRightReady = 1; break; case "top": isTopReady = 1; break; case "left": isLeftReady = 1; break; } RoomEvent.DoPlayerReady(pos); }