예제 #1
0
 void Awake()
 {
     if (this.transform.childCount < 2)
     {
         Debug.Log("Fail To Load Player Img");
     }
     for (ImgIndex index = ImgIndex.live; index < ImgIndex.max; ++index)
     {
         heroSprites[(int)index] = this.transform.GetChild((int)index).gameObject;
     }
 }
예제 #2
0
 protected void SetNodeImgIndex(TreeNode node, ImgIndex i)
 {
     node.ImageIndex = (int) i;
     node.SelectedImageIndex = (int) i;
     return;
 }