Пример #1
0
    public void updatePlayer()
    {
        MyPlayerClass p = players[player];

        p.name = "josefina12354";
        api.updatePlayer <MyQueueClass, MyPlayerClass>(queues[queue], p);
    }
Пример #2
0
    public void addPlayer(string name)
    {
        MyPlayerClass player = new MyPlayerClass(name);

        api.addPlayer <MyQueueClass, MyPlayerClass> (queues[queue], player);
    }
Пример #3
0
    public void getPlayerInfo()
    {
        MyPlayerClass x = api.getPlayer <MyQueueClass, MyPlayerClass> (queues[queue], players[player]);

        resText.text = x.toJson();
    }