public UNetServerCurrencyCollection Server_AddCurrencyCollectionToServer(AddCurrencyCollectionMessage data) { var col = GetServerCurrencyCollection(data.collectionGuid) as UNetServerCurrencyCollection; if (col == null) { col = UNetCurrencyCollectionUtility.CreateServerCurrencyCollection(data.collectionName, data.collectionGuid, data.owner); // unetPlayer.Server_AddCurrencyCollection(col, new CurrencyCollectionPriority<ICurrency>()); } return(col); }
protected void TargetRpc_AddCurrencyCollection(NetworkConnection target, AddCurrencyCollectionMessage data) { currencyReplicator.TargetRpc_AddCurrencyCollection(target, data); }
public void Server_AddCurrencyCollectionToServerAndClient(AddCurrencyCollectionMessage data) { Server_AddCurrencyCollectionToServer(data); TargetRpc_AddCurrencyCollection(connectionToClient, data); }