|
@@ -5,6 +5,7 @@ import { AliensGlobalInstance } from "../AliensGlobalInstance";
|
|
import { tgxUIMgr } from "db://assets/core_tgx/tgx";
|
|
import { tgxUIMgr } from "db://assets/core_tgx/tgx";
|
|
import { UI_TimeExpan,UI_BattleResult } from "db://assets/scripts/UIDef";
|
|
import { UI_TimeExpan,UI_BattleResult } from "db://assets/scripts/UIDef";
|
|
import { UserManager } from "./UserMgr";
|
|
import { UserManager } from "./UserMgr";
|
|
|
|
+import { LevelManager } from "./LevelMgr";
|
|
|
|
|
|
/** 时间管理器*/
|
|
/** 时间管理器*/
|
|
export class TimerMgr {
|
|
export class TimerMgr {
|
|
@@ -125,6 +126,7 @@ export class TimerMgr {
|
|
Scheduler.enableForTarget(this);
|
|
Scheduler.enableForTarget(this);
|
|
director.getScheduler().unscheduleAllForTarget(this);
|
|
director.getScheduler().unscheduleAllForTarget(this);
|
|
this.addTimeCount = 0;
|
|
this.addTimeCount = 0;
|
|
|
|
+ this.countDownTime = LevelManager.instance.levelModel.levelTime;
|
|
this.countDownTime = 20; //测试
|
|
this.countDownTime = 20; //测试
|
|
}
|
|
}
|
|
}
|
|
}
|