public void CheckTrialValidity() { if (!tracking_is_locked && target_is_tracked) { // lock in the tracking tracking_is_locked = true; } else if (tracking_is_locked && !target_is_tracked) { //trial is not valid, abort mission gui_script.ChangeStatus("Trial is not valid! Shut down the glasses!"); SendMessage("trial is not valid"); ResetTrialParameters(); } }