格子扩展

This commit is contained in:
tangbin
2025-07-31 10:52:46 +08:00
parent 9331a51652
commit 05abbd21ee
2 changed files with 26 additions and 1 deletions

View File

@@ -120,7 +120,7 @@ public class GridSelector : MonoBehaviour
inputbuffer.Release();
}
}
private int GetIndexByXY(int x, int y) {
public int GetIndexByXY(int x, int y) {
int index = x + y * horizontalNumber;
return index;
}