22 lines
644 B
C#
22 lines
644 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using Ichni.RhythmGame;
|
|
using UnityEngine;
|
|
|
|
namespace Ichni.Editor
|
|
{
|
|
public class Hierarchy : StaticWindow
|
|
{
|
|
public GameObject hierarchyTabPrefab;
|
|
public RectTransform tabContainer;
|
|
|
|
public List<HierarchyTab> tabList;
|
|
|
|
public void GenerateTab(GameElement targetElement, GameElement parentElement)
|
|
{
|
|
HierarchyTab tab = Instantiate(hierarchyTabPrefab, tabContainer).GetComponent<HierarchyTab>();
|
|
tab.SetTab(targetElement, parentElement);
|
|
tabList.Add(tab);
|
|
}
|
|
}
|
|
} |