屏幕问题

This commit is contained in:
2026-01-28 16:20:19 +08:00
parent 7464cd8b6c
commit 7d7e2fcdf0
20 changed files with 771 additions and 479 deletions
@@ -0,0 +1,23 @@
using UnityEngine;
using UnityEngine.UI;
using TMPro;
using UnityEngine.Events;
namespace AibisDream
{
public class ShapeCreateButton : MonoBehaviour
{
[SerializeField] private Image _image;
[SerializeField] private TMP_Text _text;
[SerializeField] private Button _button;
public UnityEvent OnClicked => _button.onClick;
public void SetInfo(BlockShapeInfo blockShapeInfo)
{
_image.sprite = blockShapeInfo.GetButtonImage();
_text.text = blockShapeInfo.shapeName;
gameObject.name = blockShapeInfo.shapeName;
}
}
}