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); } } }