first commit

This commit is contained in:
2026-04-07 03:14:32 +03:00
commit b3992fec6b
1026 changed files with 366769 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GridGroup : MonoBehaviour
{
[SerializeField] private int columns = 3;
[SerializeField] private float spacingX = 3f;
[SerializeField] private float spacingY = 3f;
void Start()
{
for (int i = 0; i < transform.childCount; i++)
{
int row = i / columns;
int col = i % columns;
Transform child = transform.GetChild(i);
child.localPosition = new Vector3(
col * spacingX,
-row * spacingY,
0f
);
}
}
}