fix(tutorial): complete click targets from UI events
Publish UPM package / publish (push) Successful in 2s

This commit is contained in:
2026-08-30 21:25:32 +08:00
parent 846d9c8a69
commit 46ed178e0b
4 changed files with 76 additions and 2 deletions
+9 -1
View File
@@ -1,12 +1,20 @@
using System;
using UnityEngine;
using UnityEngine.EventSystems;
namespace ShrinkTutorial
{
public class ShrinkTutorialAnchor : MonoBehaviour
public class ShrinkTutorialAnchor : MonoBehaviour, IPointerClickHandler
{
[SerializeField] private string anchorId = string.Empty;
public string AnchorId => anchorId;
public event Action<PointerEventData> Clicked;
public void OnPointerClick(PointerEventData eventData)
{
Clicked?.Invoke(eventData);
}
public void SetAnchorId(string value)
{