Exemple #1
0
    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));
    }
Exemple #2
0
 void Awake()
 {
     Instance = this;
 }
 void Awake() {
  Instance = this;
 }