Ejemplo n.º 1
0
    public void ButtonGuard()
    {
        upgrade = true;
        myInstance.SetActive(false);

        GameObject[] tabGuard    = gm.GetTabGuard();
        int[]        guardActive = gm.GetActiveGuard();
        for (int i = 0; i < tabGuard.Length; i++)
        {
            if (guardActive[i] == 0)
            {
                tabGuard [i].GetComponent <SpriteRenderer> ().color = new Color(1f, 1f, 1f, .5f);
                tabGuard[i].SetActive(true);
            }
        }
    }