Ejemplo n.º 1
0
    public bool TryToMoveGazeMarker()
    {
        if (!state.CurrentlyInStudentMode() && state.CurrentlyIsolatedOrIsolating())
        {
            if (gazeManager.Hit)
            {
                PlaceMarker(gazeManager.Position, gazeManager.HitInfo.transform.name);

                // make marker a child of the brain part it's on
                Marker.transform.SetParent(gazeManager.HitInfo.transform);
                Vector3 markerLocalPos = Marker.transform.localPosition;
                if (customMessages != null)
                {
                    CustomMessages.Instance.SendSetGazeMarkerPositionMessage(markerLocalPos, gazeManager.HitInfo.transform.name);
                }

                return(true);
            }
        }
        return(false);
    }