17 lines
369 B
C#
17 lines
369 B
C#
using TMPro;
|
|
using UnityEngine;
|
|
|
|
public class InitializeLayerView : MonoBehaviour
|
|
{
|
|
[SerializeField] private TMP_Text title;
|
|
[SerializeField] private Transform gridRoot;
|
|
|
|
public int Z { get; private set; }
|
|
public Transform GridRoot => gridRoot;
|
|
|
|
public void SetLayer(int z)
|
|
{
|
|
Z = z;
|
|
if (title) title.text = $"{z}번 랙";
|
|
}
|
|
} |