몬스터 에셋 추가

This commit is contained in:
aube.lee
2025-01-30 18:41:41 +09:00
parent 61199eac78
commit f5741ba08f
209 changed files with 29094 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
using UnityEngine;
namespace Assets.PixelFantasy.PixelMonsters.Common.Scripts
{
public class MonsterGrid : MonoBehaviour
{
public float CellSize;
public void OnValidate()
{
for (var i = 0; i < transform.childCount; i++)
{
transform.GetChild(i).transform.localPosition = new Vector3(i * CellSize - (transform.childCount - 1) / 2f * CellSize, 0, 0);
}
}
}
}