//Tools private void Start() { //Load the config file NRSettings.LoadSettingsJson(); notes = new List <Target>(); orderedNotes = new List <Target>(); loadedNotes = new List <Target>(); selectedNotes = new List <Target>(); gridNotesStatic = gridTransformParent; timelineNotesStatic = timelineTransformParent; NRSettings.OnLoad(() => { sustainVolume = NRSettings.config.sustainVol; musicVolume = NRSettings.config.mainVol; musicVolumeSlider.value = musicVolume; SetAudioDSP(); }); musicVolumeSlider.onValueChanged.AddListener(val => { musicVolume = val; NRSettings.config.mainVol = musicVolume; NRSettings.SaveSettingsJson(); }); StartCoroutine(CalculateNoteCollidersEnabled()); Physics.autoSyncTransforms = false; }
//Tools private void Start() { //Load the config file NRSettings.LoadSettingsJson(); notes = new List <Target>(); orderedNotes = new List <Target>(); loadedNotes = new List <Target>(); selectedNotes = new List <Target>(); //securityRules.AddAccessRule(new FileSystemAccessRule(new SecurityIdentifier(WellKnownSidType.WorldSid, null), FileSystemRights.FullControl, AccessControlType.Allow)); gridNotesStatic = gridTransformParent; timelineNotesStatic = timelineTransformParent; //Modify the note colors StartCoroutine(CalculateNoteCollidersEnabled()); Physics.autoSyncTransforms = false; }