26 lines
611 B
C#
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>();
|
|
}
|
|
} |