|
@@ -12,6 +12,9 @@ import { LevelManager } from './Manager/LevelMgr';
|
|
import { CarBoxComponent } from './Components/CarBoxComponent';
|
|
import { CarBoxComponent } from './Components/CarBoxComponent';
|
|
import { CarColorLog, CarColors, CarTypes } from './CarColorsGlobalTypes';
|
|
import { CarColorLog, CarColors, CarTypes } from './CarColorsGlobalTypes';
|
|
import { GameUtil } from './GameUtil';
|
|
import { GameUtil } from './GameUtil';
|
|
|
|
+import { GtagMgr, GtagType } from '../../core_tgx/base/GtagMgr';
|
|
|
|
+import { GlobalConfig } from '../../start/Config/GlobalConfig';
|
|
|
|
+import { AdvertMgr } from '../../core_tgx/base/ad/AdvertMgr';
|
|
const { ccclass, property } = _decorator;
|
|
const { ccclass, property } = _decorator;
|
|
|
|
|
|
enum ParkingStatus {
|
|
enum ParkingStatus {
|
|
@@ -27,6 +30,17 @@ export class LevelAction extends Component {
|
|
this.registerListener();
|
|
this.registerListener();
|
|
this.init_level();
|
|
this.init_level();
|
|
this.schedule(this.moveToCar, 1.2);
|
|
this.schedule(this.moveToCar, 1.2);
|
|
|
|
+ this.reportInformation();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ //上报信息
|
|
|
|
+ reportInformation() {
|
|
|
|
+ const { level } = LevelManager.instance.levelModel;
|
|
|
|
+ GtagMgr.inst.doGameDot(GtagType.level_start, { level });
|
|
|
|
+
|
|
|
|
+ if (!GlobalConfig.isDebug) {
|
|
|
|
+ AdvertMgr.instance.showInterstitial();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
registerListener() {
|
|
registerListener() {
|