void OnDisable() { PupilGazeTracker._Instance = null; var pupilSettings = PupilSettings.Instance; PupilTools.SavePupilSettings(ref pupilSettings); }