public static SendCataloguesToClient Send(List <string> Catalogues, GameObject ToWho)
    {
        SendCataloguesToClient msg = new SendCataloguesToClient
        {
            serialiseCatalogues = JsonConvert.SerializeObject(Catalogues)
        };

        msg.SendTo(ToWho);
        return(msg);
    }
Пример #2
0
    public static void ClientRequestCatalogue(GameObject PlayerGameObject)
    {
//TODO Need spam Protection
        SendCataloguesToClient.Send(ServerData.ServerConfig.AddressableCatalogues, PlayerGameObject);
    }