|
@@ -20,8 +20,7 @@ import { weiqi_manager } from './effect/weiqi_manager';
|
|
|
import { cheyin_manager } from './cheyin/cheyin_manager';
|
|
|
import { boom_manager } from './boom/boom_manager';
|
|
|
import { qiyou_manager } from './qiyou_manager';
|
|
|
-
|
|
|
-import { SdkUtil } from '../sdkUtil';
|
|
|
+import { GameManager } from '../GameManager';
|
|
|
const { ccclass, property } = _decorator;
|
|
|
|
|
|
@ccclass('game')
|
|
@@ -97,7 +96,7 @@ export class game extends Component {
|
|
|
// }
|
|
|
// },this)
|
|
|
|
|
|
- this.onTTStartRecordVideo()
|
|
|
+ GameManager.gameStart()
|
|
|
}
|
|
|
|
|
|
public isOut(pos:Vec3){
|
|
@@ -137,7 +136,6 @@ export class game extends Component {
|
|
|
director.once(Director.EVENT_AFTER_DRAW,()=>{
|
|
|
this.removeAll()
|
|
|
this.results_view.getComponent(results).show(this.car.getComponent(car).getScores(),(()=>{
|
|
|
- this.onTTStopRecordVideo()
|
|
|
}), (isReLife:boolean=false)=>{
|
|
|
this.show(this.mCallBackHome,isReLife)
|
|
|
},()=>{
|
|
@@ -145,17 +143,7 @@ export class game extends Component {
|
|
|
this.mCallBackHome()
|
|
|
},!this.car.getComponent(car).getIsReLife())
|
|
|
})
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- private onTTStartRecordVideo() {
|
|
|
- SdkUtil.ttStartScreenRecording()
|
|
|
- }
|
|
|
-
|
|
|
- private onTTStopRecordVideo() {
|
|
|
- setTimeout(()=>{
|
|
|
- SdkUtil.ttStopScreenRecording()
|
|
|
- },1500)
|
|
|
+ GameManager.gameOver()
|
|
|
}
|
|
|
|
|
|
removeSelf(){
|