void onShakeTrue() { if (clipShake != null) { fxAuxShake = fx.Spawn(transform.position, transform.rotation); fxAuxShake.fx = clipShake; fxAuxShake.loop = true; } }
void onOpen() { if (fxAuxShake != null) { fxAuxShake.DestroySound(); } AS_SpawnFX fxAux = fx.Spawn(transform.position, transform.rotation); fxAux.fx = clip; }
void onCheck(bool value) { if (value) { AS_SpawnFX fxAux = fx.Spawn(transform.position, transform.rotation); fxAux.fx = clip; if (plusPoint) { Invoke("SoundPlus", 0.1f); } } }
void SoundPlus() { AS_SpawnFX fxAux = fx.Spawn(transform.position, transform.rotation); fxAux.fx = clipPlus; }