public override void Awake() { base.Awake(); UITools.RequireEventSystem(); selectionPanelContentManager = new StandardUIInstancedContentManager(); detailsPanelContentManager = new StandardUIInstancedContentManager(); InitializeTemplates(); }
public void Assign(string text, bool expanded) { if (contentManager == null) { contentManager = new StandardUIInstancedContentManager(); } contentManager.Clear(); name = text; foldoutText.text = text; interiorPanel.gameObject.SetActive(expanded); }