Пример #1
0
    private void CheckExit()
    {
        // Only check enter if the room is the current room.
        if (!selected)
        {
            return;
        }

        if (visited)
        {
            fadeInOut.FadeAuto(0.2f, "fast");
        }
        else
        {
            fadeInOut.FadeAuto(0.2f, "slow");
        }

        if (OnExit != null)
        {
            OnExit();
        }
    }