Ejemplo n.º 1
0
    public void TriggerDSPSwitch(DSPState givenDSP)
    {
        //Debug.Log("Got a DSP trigger for: " + givenDSP);
        dspTriggered.Invoke(givenDSP);
        switch (givenDSP)
        {
        case DSPState.Chorus:
            chorusDSP.Post(this.gameObject);
            break;

        case DSPState.Distortion:
            distortionDSP.Post(this.gameObject);
            break;

        case DSPState.Echo:
            echoDSP.Post(this.gameObject);
            break;

        case DSPState.Tremelo:
            tremeloDSP.Post(this.gameObject);
            break;
        }
        StopAllCoroutines();
        StartCoroutine(BrieflyEnableHarmony());
    }
Ejemplo n.º 2
0
 void BrieflyReveal(DSPState givenState)
 {
     if (!levelPassed)
     {
         StopAllCoroutines();
         StartCoroutine(BrieflyFadeIn());
     }
 }
Ejemplo n.º 3
0
 void BoostBuildSpeed(DSPState givenState)
 {
     StopCoroutine(TemporarilyBoostBuildSpeed());
     StartCoroutine(TemporarilyBoostBuildSpeed());
 }
Ejemplo n.º 4
0
 void BlipTheRadius(DSPState givenState)
 {
     StopAllCoroutines();
     StartCoroutine(BlipItGood());
 }