public static SendCataloguesToClient Send(List <string> Catalogues, GameObject ToWho) { SendCataloguesToClient msg = new SendCataloguesToClient { serialiseCatalogues = JsonConvert.SerializeObject(Catalogues) }; msg.SendTo(ToWho); return(msg); }
public static void ClientRequestCatalogue(GameObject PlayerGameObject) { //TODO Need spam Protection SendCataloguesToClient.Send(ServerData.ServerConfig.AddressableCatalogues, PlayerGameObject); }