VIROO Studio- Subscribirte a evento de TeleportPoint

Problema:
Me gustaría tener un evento que se registre cuando algún usuario utilice los "TeleportPoints", por lo que he visto, el componente TeleportPoint no incluye este tipo de evento.

Información adicional:
Versión de Viroo: 2.6
Versión de Unity: 2022.3.9f1 y 2022.3.40f1.

Solución:
Hay una interfaz que puedes inyectar que proporciona un evento que se dispara cuando se utiliza un "TeleportPoint". Esta interfaz se llama ITeleportService, y su implementación para tu caso se vería así:

protected void Inject(ITeleportService teleportService)
     {
         teleportService.OnTeleportPointTeleportComplete += TeleportService_OnTeleportPointTeleportComplete;
     }

     private void TeleportService_OnTeleportPointTeleportComplete(object sender, TeleportPointEventArgs args)
     {
         // here your code
         Debug.Log($"Teleport point triggered with id {args.TeleportPoint.Identifier}");
     }

     protected void Awake()
     {
         this.QueueForInject();
     }
 }

Ficheros Adjuntos
TeleportServiceExample.cs
404kb