Exemplo n.º 1
0
 private void ClosePainel()
 {
     if (selectLoot)
     {
         selectLoot.transform.parent = lastParent;
     }
     passivePainel[i].SetActive(false);
     Passiva.CleanPainel();
     foreach (var loot in loots)
     {
         loot.botao.onClick.RemoveListener(loot.Chose);
         loot.botao.onClick.AddListener(loot.SpendLoot);
     }
 }