コード例 #1
0
    private bool ProximityCheck(Actor actor, float threshold)
    {
        if (TrackedTarget == null)
        {
            return(false);
        }

        var vector = (TrackedTarget.GetEyesPosition() - actor.Trackable.GetEyesPosition()).WithY(0f);

        return(vector.magnitude <= threshold);
    }
コード例 #2
0
    private void RenderTrackedTarget(bool condition)
    {
        var container = TrackedTarget.VideoContainer;

        TrackedTarget.EnableComponents(condition);
        if (condition)
        {
            _videoPlayer.clip = container.VideoClip;
        }
        else
        {
            if (!_isFullScreen)
            {
                LoopPointReached(_videoPlayer);
                PrepareCompleted(_videoPlayer);
            }
        }
    }