Exemple #1
0
        public void Init(TreasureTreesPanelManager myParent, int myPosition)
        {
            this.myParent = myParent;
            MyPositionID  = myPosition;
            //TraceUtil.Log("InitPosition:"+myPosition);
            MyTreeData = myParent.TreasureTreesDataBase.TreasureTreesDataList.First(P => P.PositionID == myPosition);
            //TODO GuideBtnManager.Instance.RegGuideButton(this.gameObject, UIType.Treasure, SubType.TreasureTreesItem, out m_guideBtnID);
            switch (myPosition)
            {
            case 1:
                gameObject.RegisterBtnMappingId(UIType.Treasure, BtnMapId_Sub.Treasure_Fruit1);
                break;

            case 2:
                gameObject.RegisterBtnMappingId(UIType.Treasure, BtnMapId_Sub.Treasure_Fruit2);
                break;

            case 3:
                gameObject.RegisterBtnMappingId(UIType.Treasure, BtnMapId_Sub.Treasure_Fruit3);
                break;

            case 4:
                gameObject.RegisterBtnMappingId(UIType.Treasure, BtnMapId_Sub.Treasure_Fruit4);
                break;

            case 5:
                gameObject.RegisterBtnMappingId(UIType.Treasure, BtnMapId_Sub.Treasure_Fruit5);
                break;

            case 6:
                gameObject.RegisterBtnMappingId(UIType.Treasure, BtnMapId_Sub.Treasure_Fruit6);
                break;

            case 7:
                gameObject.RegisterBtnMappingId(UIType.Treasure, BtnMapId_Sub.Treasure_Fruit7);
                break;

            case 8:
                gameObject.RegisterBtnMappingId(UIType.Treasure, BtnMapId_Sub.Treasure_Fruit8);
                break;
            }
        }
Exemple #2
0
 public void Init(TreasureTreesPanelManager MyParent)
 {
     this.MyParent = MyParent;
     SetAddManaBtnStatus();
 }
Exemple #3
0
 public void Init(TreasureTreesPanelManager myParent)
 {
     this.MyParent = myParent;
 }