import { Vec3 } from 'cc'; export default class Utilities { /** * * @param time (ms) * @returns */ public static delay(time: number): Promise { return new Promise((resolve) => setTimeout(resolve, time)); } public static getJson(json: string): any { try { return JSON.parse(json); } catch (error) { return false; } } }