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