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; } }
protected void SetNodeImgIndex(TreeNode node, ImgIndex i) { node.ImageIndex = (int) i; node.SelectedImageIndex = (int) i; return; }