Exemplo n.º 1
0
 public void RemoveMenu()
 {
     Sbtgrp.GetComponent <ActiveSubButtonGroup> ().RemoveSubs();
     foreach (GameObject toRemove in _itemsFromSubGroupPool)
     {
         SubButtonGroupPool.ReturnObject(toRemove);
     }
     foreach (GameObject toRemove in _itemsFromMainButtonPool)
     {
         MainButtonPool.ReturnObject(toRemove);
     }
 }
Exemplo n.º 2
0
    private void AddSubMenuGroup()
    {
        GameObject subButGrp = this.SubButtonGroupPool.GetObject();

        this.Sbtgrp = subButGrp;
        //_itemsFromSubGroupPool.Add (subButGrp);
        _itemsFromSubGroupPool.Add(Sbtgrp);
        Sbtgrp.transform.SetParent(this.transform);
        this.SubButtonGroupScript = Sbtgrp.GetComponent <ActiveSubButtonGroup> ();
        this.SubButtonGroupScript.Setup(this.Lstsub, this.SubButtonPool);
        Debug.Log("sbubuttongroup active: " + subButGrp.activeSelf);
    }