Ejemplo n.º 1
0
    public EscapePanel CreateChild(EscapePanel panelPrefab)
    {
        var panel = Instantiate(panelPrefab);

        AddChild(panel);
        return(panel);
    }
Ejemplo n.º 2
0
 public void AddChild(EscapePanel panel)
 {
     children.Add(panel);
     if (panel.parent != null)
     {
         panel.parent.children.Remove(panel);
     }
     panel.parent = this;
 }
Ejemplo n.º 3
0
 public void _ChangePanel(EscapePanel panel)
 {
     _DestroySelf();
     Instantiate(panel);
 }
Ejemplo n.º 4
0
    public void _CreateChild(EscapePanel panelPrefab)
    {
        var panel = Instantiate(panelPrefab);

        AddChild(panel);
    }