Exemplo n.º 1
0
 public override bool RemoveElement(GameObject gameObject)
 {
     if (base.RemoveElement(gameObject))
     {
         if (Elemenets.Count > 0)
         {
             Elemenets.Last().SetActive(true);
         }
         return(true);
     }
     return(false);
 }
Exemplo n.º 2
0
 public override GameObject AddElement(GameObject elementPrefab)
 {
     Elemenets.ForEach(e => e.SetActive(false));
     return(base.AddElement(elementPrefab));
 }