public void musicOn(float time = 2.0f) { if (!ifcOpciones.music) { return; } SuperTweener.Kill(vol); vol = new SuperTweener.volume(gameObject, time, volumenOriginal, SuperTweener.LinearNone); }
public void musicOff(float time = 2.0f) { SuperTweener.Kill(vol); vol = new SuperTweener.volume(gameObject, time, 0.0f, SuperTweener.LinearNone); }
public void UnMuteVolume() { SuperTweener.Kill(vol); vol = new SuperTweener.volume(gameObject, 2f, ifcOpciones.fx ? originalVolume : 0.0f, SuperTweener.LinearNone); }
public void MuteVolume() { SuperTweener.Kill(vol); vol = new SuperTweener.volume(gameObject, 2f, 0.0f, SuperTweener.LinearNone); }