void NewMessage(string json) { RaspberryInfos infos = RaspberryInfos.CreateFromJSON(json); print(json); messagesList.Add(infos); }
public void StartGame() { if (onStartGame != null) { onStartGame(); } RaspberryInfos startInfos = new RaspberryInfos(); startInfos.instruction = "startGame"; ws.Send(JsonUtility.ToJson(startInfos)); }