// Use this for initialization void Start() { musicManagement = GameObject.FindObjectOfType <MusicManagement>(); volumeSlider.value = PlayerPrefsManager.GetMasterVolume(); difficultySlider.value = PlayerPrefsManager.GetDifficulty(); }
void Start() { boxOrientation = BOXORIENTATION.soundBox_1; boxOrientation_Old = boxOrientation; musicManagement = GetComponent <MusicManagement>(); GameObject childObject = transform.Find("SoundInformation").gameObject; GameObject anotherObject = GameObject.Find("SceneChangeBox"); sceneChangeEffect = anotherObject.GetComponent <SceneChangeEffect>(); Set_LeftJudgment = false; Set_RightJudgment = false; Set_JumpJudgment = false; Set_sceneChange = true; }
private void Awake() { if (instance == null) { instance = this; isFirstInstance = true; } else if (instance != this) { Destroy(gameObject); isFirstInstance = false; } DontDestroyOnLoad(this.gameObject); foreach (MusicTrack t in tracks) { t.source = gameObject.AddComponent <AudioSource>(); t.source.clip = t.clip; t.source.loop = t.loop; t.source.outputAudioMixerGroup = mixerGroup; } }
//[Microsoft.AspNetCore.Mvc.HttpGet] public IEnumerable <MusicData> GetAllMusicDetails() { MusicManagement managementobj = new MusicManagement(); return(managementobj.GetAllMusicDetails()); }