Exemplo n.º 1
0
    void NewMessage(string json)
    {
        RaspberryInfos infos = RaspberryInfos.CreateFromJSON(json);

        print(json);
        messagesList.Add(infos);
    }
Exemplo n.º 2
0
    public void StartGame()
    {
        if (onStartGame != null)
        {
            onStartGame();
        }
        RaspberryInfos startInfos = new RaspberryInfos();

        startInfos.instruction = "startGame";
        ws.Send(JsonUtility.ToJson(startInfos));
    }