private Transform CreateNewDropFold() { Transform df = (Transform)GameObject.Instantiate(rd.BaseDropPanelPrefab, Vector3.zero, Quaternion.identity); FoldManager fm = df.GetComponent <FoldManager>(); fm.Initialize(ChildrenArgs); fm.SetArrowAlpha(rd.ArrowAlpha); DropControl dc = fm.GetComponent <DropControl>(); DropDownPanelScript ddps = dc.ContainerObj.transform.GetComponent <DropDownPanelScript>(); ddps.InstallRD(rd); return(df); }
public void InstallRD(RootData rda) { Panel.InstallRD(rda); }