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