Slash-The-Hordes/assets/Scripts/Menu/Menu.ts

12 lines
282 B
TypeScript
Raw Normal View History

2022-12-07 09:47:46 +00:00
import { _decorator, Component, Node } from "cc";
2022-12-12 08:15:27 +00:00
2022-12-07 09:47:46 +00:00
import { GameRunner } from "./GameRunner";
const { ccclass, property } = _decorator;
@ccclass("Menu")
export class Menu extends Component {
2022-12-12 08:15:27 +00:00
public async start(): Promise<void> {
2022-12-07 09:47:46 +00:00
GameRunner.Instance.playGame();
}
}