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

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

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