Skip to content

Instantly share code, notes, and snippets.

View XEonAX's full-sized avatar

AEonAX XEonAX

View GitHub Profile
@XEonAX
XEonAX / GameState.cs
Created February 12, 2022 17:32 — forked from selalipop/GameState.cs
Using Server-Sent-Events in Unity
using Newtonsoft.Json;
///Use of Newtonsoft.Json is fully optional
namespace Backend
{
[JsonObject]
public struct GameState
{
[JsonProperty("maxPlayers")] public int MaxPlayers;
[JsonProperty("imposterCount")] public int ImposterCount;