Example #1
0
    public void StartOffice()
    {
        click.playSound();
        MuteSoundFX mute = GameObject.FindWithTag("Mute").GetComponent <MuteSoundFX>();

        if (mute.officeSound.mute)
        {
            mute.muteSoundFX();
        }
        SceneManager.LoadScene("Office");
    }
Example #2
0
    public void fadeToOffice()
    {
        var winder = new WindTransition()
        {
            nextScene = 3,
            duration  = 1.0f
        };

        TransitionKit.instance.transitionWithDelegate(winder);

        MuteSoundFX mute = GameObject.FindWithTag("Mute").GetComponent <MuteSoundFX>();

        if (mute.officeSound.mute)
        {
            mute.muteSoundFX();
        }
    }