private void OnRecvMyMarket(IChannel channel, Message message) { CMyMarket request = message as CMyMarket; SMyMarket reply = new SMyMarket(); var conn = db.Instance.Connect(); reply.items = db.Instance.GetMyMarket(request.dbid, conn); channel.Send(reply); }
private void OnEnable() { PlayerMyController.Instance.EnabledWindowCount++; CMyMarket m = new CMyMarket(); m.dbid = World.Instance.selfDbid; World.Instance.mymarket = null; Client.Instance.Send(m); StartCoroutine(ShowItems()); }