Example #1
0
    public void musicOn(float time = 2.0f)
    {
        if (!ifcOpciones.music)
        {
            return;
        }

        SuperTweener.Kill(vol);
        vol = new SuperTweener.volume(gameObject, time, volumenOriginal, SuperTweener.LinearNone);
    }
Example #2
0
 public void musicOff(float time = 2.0f)
 {
     SuperTweener.Kill(vol);
     vol = new SuperTweener.volume(gameObject, time, 0.0f, SuperTweener.LinearNone);
 }
Example #3
0
 public void UnMuteVolume()
 {
     SuperTweener.Kill(vol);
     vol = new SuperTweener.volume(gameObject, 2f, ifcOpciones.fx ? originalVolume : 0.0f, SuperTweener.LinearNone);
 }
Example #4
0
 public void MuteVolume()
 {
     SuperTweener.Kill(vol);
     vol = new SuperTweener.volume(gameObject, 2f, 0.0f, SuperTweener.LinearNone);
 }