Esempio n. 1
0
        public IEnumerator ApplyOrderSerial(Coroutine coroutine,
                                            ActivityCharacterProxy _this,
                                            ApplyOrderSerialInMessage msg)
        {
            var proxy = (ActivityProxy)_this;

            PlayerLog.WriteLog(proxy.CharacterId, "----------Activity----------ApplyOrderSerial----------:{0}",
                               msg.Request.Msg.GoodId);

            return(InAppPurchase.ApplyOrderSerial(coroutine, _this.Service, msg));
        }
Esempio n. 2
0
        public IEnumerator Tick(Coroutine coroutine, ServerAgentBase _this)
        {
            try
            {
                ActivityServerControl.Timer.Update();
                InAppPurchase.Update((ActivityServerControl)_this);
            }
            catch (Exception ex)
            {
                Logger.Error(ex, "Tick error.");
            }

            try
            {
                ActivityServerMonitor.TickRate.Mark();
            }
            catch (Exception)
            {
            }
            return(null);
        }