Example #1
0
 void Awake()
 {
     Arrow = ArrowObj.GetComponent <ArrowScript>();
     Panel = ContainerObj.GetComponent <DropDownPanelScript>();
     Arrow.DropDownToggle += ArrowTogglePipe;
     _ContRT = ContainerObj.GetComponent <RectTransform>();
 }
Example #2
0
    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);
    }