Ejemplo n.º 1
0
    public void Shutdown()
    {
        if (active)
        {
            LightGroup.SetActive(false);
            active = false;

            levelDj.FadeOutCurrentSong();

            if (BlockersOnShutdown.Length != 0)
            {
                foreach (var block in BlockersOnShutdown)
                {
                    if (block != null)
                    {
                        block.transform.position = Vector3.zero;
                    }
                }
            }
        }
    }
Ejemplo n.º 2
0
    public void Shutdown()
    {
        if (active)
        {
            rotate = true;
            BaseLight.GetComponent <Light>().intensity = 0;

            levelDj.FadeOutCurrentSong();

            if (BlockersOnShutdown.Length != 0)
            {
                foreach (var block in BlockersOnShutdown)
                {
                    if (block != null)
                    {
                        block.transform.position = Vector3.zero;
                    }
                }
            }
        }
    }