public void Setup() { Util.FindIfNotSet(this, ref hudManager); creationLibrary = Instantiate(creationLibraryPrefab, rectTransform); logicSidebar = Instantiate(logicPrefab, rectTransform); terrainSidebar = Instantiate(terrainToolSettingsPrefab, rectTransform); creationLibrary.Setup(this); logicSidebar.Setup(this); terrainSidebar.Setup(this); }
private void OnImportButtonClicked() { creationLibrarySidebar.gameObject.SetActive(true); creationLibrarySidebar.Setup(sidebarManager); creationLibrarySidebar.SetToPicker(OnPickedFromCreationLibrary); }