Exemple #1
0
    void onOpen()
    {
        if (fxAuxShake != null)
        {
            fxAuxShake.DestroySound();
        }
        AS_SpawnFX fxAux = fx.Spawn(transform.position, transform.rotation);

        fxAux.fx = clip;
    }
Exemple #2
0
    void onCheck(bool value)
    {
        if (value)
        {
            AS_SpawnFX fxAux = fx.Spawn(transform.position, transform.rotation);
            fxAux.fx = clip;

            if (plusPoint)
            {
                Invoke("SoundPlus", 0.1f);
            }
        }
    }