init git
This commit is contained in:
13
assets/FishSingle/script/engine/utils/Grid.ts
Normal file
13
assets/FishSingle/script/engine/utils/Grid.ts
Normal file
@@ -0,0 +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 static init(row: number, col: number) {
|
||||
return new Grid(row, col)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user