Beispiel #1
0
    IEnumerator InverseWorld()
    {
        if (!inInverseAnimation)
        {
            MusicManager.Instance.PlaySound_InverseWorld();

            inInverseAnimation = true;

            screenWipeScript = GameObject.Find("Camera Parent");
            if (screenWipeScript != null)
            {
                screenWipeScript.SendMessage("InverseWorld", isInverseWorld());
                if (isInverseWorld())
                {
                    --currentSelectedWorld;
                }
                else
                {
                    ++currentSelectedWorld;
                }

                MusicManager.Instance.UpdateSoundMixerSnapshots();
                ChangeColorByInverseWorld.UpdateAllColor();

                yield return(new WaitForSeconds(2f));
            }

            inInverseAnimation = false;
        }
    }
Beispiel #2
0
    IEnumerator FakeInverseWorld()
    {
        ChangeColorByInverseWorld.UpdateAllColor();
        if (!inInverseAnimation)
        {
            inInverseAnimation = true;
            yield return(new WaitForSeconds(0.05f));

            screenWipeScript = GameObject.Find("Camera Parent");
            if (screenWipeScript != null)
            {
                screenWipeScript.SendMessage("FakeInverseWorld", !isInverseWorld());
            }

            yield return(new WaitForSeconds(0.5f));

            inInverseAnimation = false;
        }
    }