public EscapePanel CreateChild(EscapePanel panelPrefab) { var panel = Instantiate(panelPrefab); AddChild(panel); return(panel); }
public void AddChild(EscapePanel panel) { children.Add(panel); if (panel.parent != null) { panel.parent.children.Remove(panel); } panel.parent = this; }
public void _ChangePanel(EscapePanel panel) { _DestroySelf(); Instantiate(panel); }
public void _CreateChild(EscapePanel panelPrefab) { var panel = Instantiate(panelPrefab); AddChild(panel); }