Exemplo n.º 1
0
        public void OnPlayerLeave(DungeonScene _this, ObjPlayer player)
        {
            Scene.GetImpl().OnPlayerLeave(_this, player);

            //修改副本难度
            _this.ChangeDifficulty(_this.PlayerCount);
        }
Exemplo n.º 2
0
        public void OnPlayerEnter(DungeonScene _this, ObjPlayer player)
        {
            Scene.GetImpl().OnPlayerEnter(_this, player);

            //修改副本难度
            _this.ChangeDifficulty(_this.PlayerCount);

            var now = DateTime.Now;

            if (_this.GetTriggerTime(eDungeonTimerType.WaitStart) > now)
            {
                _this.NotifyDungeonTime(player, eDungeonTimerType.WaitStart);
            }
            else if (_this.GetTriggerTime(eDungeonTimerType.WaitExtraTimeStart) > now)
            {
                _this.NotifyDungeonTime(player, eDungeonTimerType.WaitExtraTimeStart);
            }
            else if (_this.GetTriggerTime(eDungeonTimerType.WaitEnd) > now)
            {
                _this.NotifyDungeonTime(player, eDungeonTimerType.WaitEnd);
            }
            else
            {
                _this.NotifyDungeonTime(player, eDungeonTimerType.WaitClose);
            }
        }