示例#1
0
文件: GameTimer.cs 项目: sunoru/PBO
 private void OnTick()
 {
     lastTickEvent.Canceled = true;
     lastTickEvent = new TickEventArgs(TimeLimit - ElapsedTime);
     Tick(this, lastTickEvent);
 }
示例#2
0
文件: GameTimer.cs 项目: sunoru/PBO
 public GameTimer(int timeLimit)
 {
     this.TimeLimit = timeLimit;
     this.secondTimer = new Timer(OnTick);
     this.lastTickEvent = new TickEventArgs(0);
 }