2023-11-03 15:16:36 -04:00
|
|
|
using Unity.VRTemplate;
|
2023-11-02 22:21:25 -04:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
namespace Part_Labels
|
|
|
|
{
|
|
|
|
public class PartLabelManager : MonoBehaviour
|
|
|
|
{
|
2023-11-03 15:16:36 -04:00
|
|
|
[SerializeField] private Callout[] callouts;
|
2023-11-02 22:21:25 -04:00
|
|
|
|
|
|
|
public void ActivateLabels()
|
|
|
|
{
|
2023-11-03 15:16:36 -04:00
|
|
|
foreach (var callout in callouts)
|
2023-11-02 22:21:25 -04:00
|
|
|
{
|
2023-11-03 15:16:36 -04:00
|
|
|
callout.GazeHoverStart();
|
2023-11-02 22:21:25 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public void DeactivateLabels()
|
|
|
|
{
|
2023-11-03 15:16:36 -04:00
|
|
|
foreach (var callout in callouts)
|
2023-11-02 22:21:25 -04:00
|
|
|
{
|
2023-11-03 15:16:36 -04:00
|
|
|
callout.GazeHoverEnd();
|
2023-11-02 22:21:25 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|