Files
ft/Client/Assets/Scripts/UI/PinballUncountable/PinballUncountableGuidancePanel.cs
2026-06-29 21:18:33 +08:00

26 lines
611 B
C#

using UnityEngine;
using GameCore;
using asap.core;
public class PinballUncountableGuidancePanel : MonoBehaviour
{
[SerializeField] private RectTransform hole;
public RectTransform Hole => hole;
public void Init(RectTransform targetNode)
{
// gameObject.SetActive(true);
// hole.gameObject.SetActive(true);
hole.position = UIManager.Instance.WorldToScreen(targetNode.position);
}
public void Hide()
{
gameObject.SetActive(false);
}
private void Reset()
{
hole = transform.Find("Hollowed").GetComponent<RectTransform>();
}
}