|
@@ -3,6 +3,7 @@ import { UserManager } from '../Manager/UserMgr';
|
|
|
import { EventDispatcher } from 'db://assets/core_tgx/easy_ui_framework/EventDispatcher';
|
|
|
import { GameEvent } from '../Enum/GameEvent';
|
|
|
import { AliensAudioMgr } from '../Manager/AliensAudioMgr';
|
|
|
+import { GlobalConfig } from 'db://assets/start/Config/GlobalConfig';
|
|
|
const { ccclass, property } = _decorator;
|
|
|
|
|
|
//嘲讽文本
|
|
@@ -27,7 +28,10 @@ export class TauntComponent extends Component {
|
|
|
start() {
|
|
|
const tauntTime = UserManager.instance.userModel.tauntIntervalTime
|
|
|
this.tauntIntervalTime = tauntTime;
|
|
|
- // this.tauntIntervalTime = 5;//测试
|
|
|
+
|
|
|
+ if(GlobalConfig.isDebug){
|
|
|
+ this.tauntIntervalTime = 10;
|
|
|
+ }
|
|
|
|
|
|
this._originPos = this.node.position.clone();
|
|
|
EventDispatcher.instance.on(GameEvent.EVENT_GAME_COUNTDOWN_START,this.startTauntSchedule,this)
|