using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace BuildSystem { [RequireComponent(typeof(Image),typeof(Button))] public class GridUI : MonoBehaviour { [Header("scriptsObject数据 上右下左")] public PlaceObject_SO[] placeObject_SO; int dataIndex; [Header("切换")] public Button switchBtn; [Header("四向图 上右下左放置")] public Sprite[] sprites; int index = 0; [Header("组件")] Image image; Button btn; private void Awake() { btn = GetComponent