Folder structure

This commit is contained in:
Martin
2022-12-12 09:15:27 +01:00
parent 76ccbd2084
commit f7b345ef93
20 changed files with 855 additions and 367 deletions

View File

@@ -0,0 +1,18 @@
import { Component, _decorator } from "cc";
import { GameRunner } from "../Menu/GameRunner";
import { delay } from "../Services/Utils/AsyncUtils";
import { Game } from "./Game";
const { ccclass } = _decorator;
@ccclass("TestGameRunner")
export class TestGameRunner extends Component {
public start(): void {
if (GameRunner.Instance.IsRunning) return;
this.playTestGameAsync();
}
public async playTestGameAsync(): Promise<void> {
while (Game.Instance == null) await delay(100);
Game.Instance.playGame();
}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "605c7b1b-d7fb-4e85-bdcb-9f102cc45197",
"files": [],
"subMetas": {},
"userData": {}
}