Ejemplo n.º 1
0
 private void Awake()
 {
     _serverApi.ApplyHttpProtocol(_marketApiSettings);
     _clientApi.ApplyHttpProtocol(_marketApiSettings);
     _itemAssetId.text = string.IsNullOrEmpty(_itemAssetId.text)
         ? GetRandomItemId() : _itemAssetId.text;
 }
Ejemplo n.º 2
0
 public void Run(IAppServer appServer, IGameServer gameServer,
                 IServerStorage storage)
 {
     AppServer  = appServer;
     GameServer = gameServer;
     Storage    = storage;
     Model      = new ServerModel();
     DMarketServerApi.ApplyHttpProtocol(_apiSettings);
     ApplyState <ServerIdleState>();
 }