public void InviteToGame(JSONArray inviteUsernames, BaseSlotMachineScreen.GameType gameType, string roomName) { JSONObject jsonData = new JSONObject(); jsonData.Add("gameType", SlotMachineClient.GetCommandByGameType(gameType)); jsonData.Add("message", AccountManager.Instance.displayName + " invite you to play " + SlotMachineClient.GetCommandByGameType(gameType) + " with him."); jsonData.Add("roomName", roomName); jsonData.Add("invitees", inviteUsernames); SmartfoxClient.Instance.HandleServerRequest(CreateExtensionRequest(Command.USER.INVITE_TO_GAME, "InviteToGameSuccess", jsonData)); }
void Awake() { Instance = this; }