Example #1
0
 internal void Glance(TargetInfo target)
 {
     if (!started || ((GazeState == GazeTarget.Person || GazeState == GazeTarget.Person2) && target.GazeTarget != GazeTarget.Person && target.GazeTarget != GazeTarget.Person2)) return;
     currentGazeInterval = GlanceInterval;
     currentRandomAmplitude = GlanceRandomAmplitude;
     if (target.GazeTarget == GazeTarget.ScreenPoint) GlanceToScreen(target.Coordinates);
     else if (target.GazeTarget == GazeTarget.Angle) GlanceToAngle(target.Coordinates);
     else Glance(target.GazeTarget);
     NotifyGazeTargetChanged(target.GazeTarget);
 }
Example #2
0
 internal void Gaze(TargetInfo target, bool dontPerform = false)
 {
     if (!started) return;
     currentGazeInterval = GazeInterval;
     currentRandomAmplitude = GazeRandomAmplitude;
     if (target.GazeTarget == GazeTarget.ScreenPoint) GazeToScreen(target.Coordinates, dontPerform);
     else if (target.GazeTarget == GazeTarget.Angle) GazeToAngle(target.Coordinates, dontPerform);
     else Gaze(target.GazeTarget, dontPerform);
 }