示例#1
0
    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);
    }
示例#2
0
 private void OnImportButtonClicked()
 {
     creationLibrarySidebar.gameObject.SetActive(true);
     creationLibrarySidebar.Setup(sidebarManager);
     creationLibrarySidebar.SetToPicker(OnPickedFromCreationLibrary);
 }