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); }
public void Setup(SubTask subtask, ActiveSubButtonGroup parent) { this.TextField.text = "SubTask"; //subtask.Title; this._subTask = subtask; this._parentGroup = parent; }