import { _decorator, Component, Node } from 'cc'; const { ccclass, property } = _decorator; enum LvDir { Up = 0, Down = 1, Left = 2, Right = 3, } enum BlockType { RED = 1, BLUE, GREEN, YELLOW, } @ccclass('sqaueUltl') export class sqaueUltl { private static _instance: sqaueUltl = null; public static readonly MAX_TYPES: number = 4 public static readonly ROW_NUM: number = 10 public static readonly COL_NUM: number = 11 public static readonly BLOCK_WIDTH: number = 62 public static readonly BLOCK_HEIGHT: number = 62 public static readonly gridSize: number = 73; // 网格大小 public static readonly spacing: number = 70; // 方块间距 // 单例模式 public static get instance(): sqaueUltl { if (!this._instance) { this._instance = new sqaueUltl(); } return this._instance; } private constructor() { } start() { } update(deltaTime: number) { } }