DaFuWeng/assets/resources/Video/Logo/LogoLogic.ts

23 lines
495 B
TypeScript
Raw Normal View History

2024-03-06 22:06:49 +08:00
import { _decorator, Component, director, Node, sys, view } from 'cc';
const { ccclass, property } = _decorator;
@ccclass('LogoLogic')
export class LogoLogic extends Component {
start() {
if (sys.platform === "WIN32") {
director.loadScene("LoadingGame");
}
}
StartGame(videoplayer, eventType, customEventData) {
//播放完成后跳转
if (eventType == 'completed') {
director.loadScene("LoadingGame");
}
}
}