예제 #1
0
 public void setState(bool isFold)
 {
     if (treeMenu == null)
     {
         treeMenu = NGUITools.FindInParents <TreeMenu>(gameObject);
     }
     sprite.spriteName = treeMenu.getTreeItemSprite(false, nodeLevel, isFold);
     this.isFold       = isFold;
 }
예제 #2
0
 void Start()
 {
     //Nodes = new List<TreeMenuItem>();
     treeMenu = NGUITools.FindInParents <TreeMenu>(gameObject);
 }