| using System.Collections; | 
| using System.Collections.Generic; | 
| using UnityEngine; | 
| using UnityEngine.UI; | 
|   | 
| /// <summary> | 
| /// 武将列表 | 
| /// </summary> | 
| public class HeroBaseWin : FunctionsBaseWin | 
| { | 
|   | 
|     [SerializeField] List<Image> funcSelectImgList; | 
|     [SerializeField] List<Image> funcUnSelectImgList; | 
|   | 
|     /// </summary> | 
|     protected override void InitComponent() | 
|     { | 
|         base.InitComponent(); | 
|     } | 
|   | 
|   | 
|     protected override void OnPreOpen() | 
|     { | 
|         base.OnPreOpen(); | 
|     } | 
|   | 
|     protected override void OnPreClose() | 
|     { | 
|         base.OnPreClose(); | 
|     } | 
|   | 
|   | 
|     public override void Refresh() | 
|     { | 
|   | 
|     } | 
|   | 
|   | 
|     protected override void UpdateButtonsState() | 
|     { | 
|         for (int i = 0; i < funcSelectImgList.Count; i++) | 
|         { | 
|             if (i == functionOrder) | 
|             { | 
|                 funcSelectImgList[i].SetActive(true); | 
|                 funcUnSelectImgList[i].SetActive(false); | 
|   | 
|             } | 
|             else | 
|             { | 
|                 funcSelectImgList[i].SetActive(false); | 
|                 funcUnSelectImgList[i].SetActive(true); | 
|   | 
|             } | 
|         } | 
|     } | 
|   | 
|     protected override void OpenSubUIByTabIndex() | 
|     { | 
|         Debug.Log("打开子界面 : " + functionOrder); | 
|         // 主城 内政 武将 挑战 公会 | 
|         //根据索引打开不同的界面 | 
|          switch (functionOrder) | 
|         { | 
|             case 0: | 
|                 // 打开主页界面 | 
|                 currentSubUI = UIManager.Instance.OpenWindow<HeroListWin>(); | 
|                 break; | 
|   | 
|             default: | 
|                 Debug.LogWarning("未知的标签索引: " + functionOrder); | 
|                 break; | 
|         } | 
|     } | 
| } |