Beispiel #1
0
 void Awake()
 {
     if (!m_Instance)
     {
         m_Instance = this;
     }
 }
Beispiel #2
0
 public void StartRainForestAmbienceMultisample()
 {
     if (!this.m_RainforestMSStarted)
     {
         this.m_AmbientMS = MSManager.Get().PlayMultiSample("Rainforest_Ambience", 1f);
     }
     this.m_RainforestMSStarted = true;
 }
Beispiel #3
0
 protected override void OnExit()
 {
     base.OnExit();
     MSManager.Get().StopMultiSample(this, this.m_Multisample, (this.m_InnerSource == null) ? this.m_FadeOut : 0f);
 }
Beispiel #4
0
 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);
 }
Beispiel #5
0
    public void PlaySound(string itemName)
    {
        var clip = clips.Find(x => x.name.Equals(itemName));

        MSManager.PlaySound("SoundPlayer", clip);
    }
Beispiel #6
0
    // Update is called once per frame

    private void PlayBackground()
    {
        MSManager.PlaySound("MusicPlayer", clips[0], true);
    }
Beispiel #7
0
 protected override void OnEnter()
 {
     base.OnEnter();
     this.m_Multisample = MSManager.Get().PlayMultiSample(this.m_MultisampleName, this.m_FadeIn);
 }
Beispiel #8
0
 protected override void OnExit()
 {
     base.OnExit();
     MSManager.Get().StopMultiSample(this.m_Multisample, this.m_FadeOut);
 }