feat(GazeReminder): 实现更多提示

This commit is contained in:
2025-10-26 22:13:15 +08:00
parent 1459c70279
commit e8b9f47067
12 changed files with 920 additions and 104 deletions

View File

@@ -43,11 +43,11 @@ namespace Script.Gameplay.Player
{
if (currentTarget != null)
{
OnGazeEnter?.Invoke((currentTarget as MonoBehaviour)?.gameObject);
OnGazeEnterConnectable?.Invoke((currentTarget as MonoBehaviour)?.gameObject);
}
if (previousTarget != null)
{
OnGazeExit?.Invoke((previousTarget as MonoBehaviour)?.gameObject);
OnGazeExitConnectable?.Invoke((previousTarget as MonoBehaviour)?.gameObject);
}
}
}
@@ -60,8 +60,8 @@ namespace Script.Gameplay.Player
private IConnectable inputTarget;
public event Action<IConnectable> OnSetPointA;
public event Action<IConnectable> OnSetPointB;
public event Action<GameObject> OnGazeEnter;
public event Action<GameObject> OnGazeExit;
public event Action<GameObject> OnGazeEnterConnectable;
public event Action<GameObject> OnGazeExitConnectable;
void Start()
{