コード例 #1
0
 public void EnterAutoClose(DungeonScene _this, int seconds = 20)
 {
     _this.State = eDungeonState.WillClose;
     _this.StartTimer(eDungeonTimerType.WaitClose, DateTime.Now.AddSeconds(seconds),
                      () => { _this.TimeOverClose(); });
     _this.NotifyDungeonTime(eDungeonTimerType.WaitClose);
     NotifySceneFinished(_this);
 }
コード例 #2
0
        public void OnCreate(DungeonScene _this)
        {
            var fubenId = _this.TableSceneData.FubenId;

            _this.mFubenRecord       = Table.GetFuben(fubenId);
            _this.isNeedDamageModify = _this.mFubenRecord.IsDyncDifficulty == 1;
            _this.StartTimer(eDungeonTimerType.SafeClose, DateTime.Now.AddHours(1), () => { _this.TimeOverClose(); });

            TrigerBusinessman(_this);
        }