Slash-The-Hordes/assets/Scripts/Menu/Menu.ts
2022-12-12 09:15:27 +01:00

12 lines
282 B
TypeScript

import { _decorator, Component, Node } from "cc";
import { GameRunner } from "./GameRunner";
const { ccclass, property } = _decorator;
@ccclass("Menu")
export class Menu extends Component {
public async start(): Promise<void> {
GameRunner.Instance.playGame();
}
}