void Awake() { if (!m_Instance) { m_Instance = this; } }
public void StartRainForestAmbienceMultisample() { if (!this.m_RainforestMSStarted) { this.m_AmbientMS = MSManager.Get().PlayMultiSample("Rainforest_Ambience", 1f); } this.m_RainforestMSStarted = true; }
protected override void OnExit() { base.OnExit(); MSManager.Get().StopMultiSample(this, this.m_Multisample, (this.m_InnerSource == null) ? this.m_FadeOut : 0f); }
protected override void OnEnter() { base.OnEnter(); this.m_Multisample = MSManager.Get().PlayMultiSample(this, this.m_MultisampleName, this.m_FadeIn, this.m_ChangeRainforestAmbientVolume, this.m_RainforestAmbientVolume); }
public void PlaySound(string itemName) { var clip = clips.Find(x => x.name.Equals(itemName)); MSManager.PlaySound("SoundPlayer", clip); }
// Update is called once per frame private void PlayBackground() { MSManager.PlaySound("MusicPlayer", clips[0], true); }
protected override void OnEnter() { base.OnEnter(); this.m_Multisample = MSManager.Get().PlayMultiSample(this.m_MultisampleName, this.m_FadeIn); }
protected override void OnExit() { base.OnExit(); MSManager.Get().StopMultiSample(this.m_Multisample, this.m_FadeOut); }