feat(GazeReminder): 实现更多提示
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user