优化若干代码

This commit is contained in:
2024-04-17 20:15:52 +08:00
parent 54580cc1b2
commit 58cc2e3b82
66 changed files with 5821 additions and 4019 deletions

View File

@@ -1,13 +1,13 @@
import { _decorator } from 'cc'
export default class Grid {
public row: number
public col: number
constructor(row: number, col) {
this.row = row
this.col = col
}
public row: number
public col: number
public static init(row: number, col: number) {
return new Grid(row, col)
}
constructor(row: number, col: number) {
this.row = row
this.col = col
}
public static init(row: number, col: number) {
return new Grid(row, col)
}
}