예제 #1
0
 public void RemoveNode(CLUI_Node node)
 {
     if (node.parent != this)
     {
         return;
     }
     node.SetParent(this);
     _subnodes.Remove(node);
 }
예제 #2
0
 public void AddNode(CLUI_Node node)
 {
     if (node.parent == this)
     {
         return;
     }
     if (node.parent != null)
     {
         node.parent.RemoveNode(node);
     }
     node.SetParent(this);
     if (_subnodes == null)
     {
         _subnodes = new List <CLUI_Node>();
     }
     _subnodes.Add(node);
 }
예제 #3
0
 void SetParent(CLUI_Node node)
 {
     this.parent = node;
 }
예제 #4
0
 public void RemoveNode(CLUI_Node node)
 {
     if (node.parent != this)
         return;
     node.SetParent(this);
     _subnodes.Remove(node);
 }
예제 #5
0
 public void AddNode(CLUI_Node node)
 {
     if (node.parent == this)
         return;
     if (node.parent != null)
     {
         node.parent.RemoveNode(node);
     }
     node.SetParent(this);
     if (_subnodes == null) _subnodes = new List<CLUI_Node>();
     _subnodes.Add(node);
 }
예제 #6
0
    // Use this for initialization
    void Start()
    {
        var _skin = Resources.Load("GUI/GUISkin001_100percent/GUISkin001") as GUISkin;
        SetSkin(_skin);
        nodeUIRoot = new CLUI_Node_Empty ("root");
        nodeUIRoot.rectScale = CLUI_Border.ScaleFill;

        this.ChangeState(new state_0Starter());
    }
예제 #7
0
 void SetParent(CLUI_Node node)
 {
     this.parent = node;
 }