Esempio n. 1
0
    public void trapsOnMapBorderHandler(Toggle t)
    {
        GeneratorManager GM = GeneratorManager.Instance;

        UILineRenderer[] Lines;
        if (t.isOn)
        {
            Lines = GM.DisplayMainMapKeepLines(GM.GeneratorsVect[(int)GM.activeGenerator].getMapWTrapBorder());
        }
        else
        {
            Lines = GM.DisplayMainMapKeepLines(GM.GeneratorsVect[(int)GM.activeGenerator].getMap());
        }

        foreach (UILineRenderer l in Lines)
        {
            l.transform.SetAsLastSibling();
        }
    }