using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
///
/// 游戏主界面
///
public class MainWin : UIBase
{
private GameObject windowBackground;
// 底部按钮组
private Button[] bottomTabButtons;
// 当前选中的底部标签索引
private int currentTabIndex = 0;
// 当前打开的子界面
private UIBase currentSubUI;
///
/// 初始化组件
///
protected override void InitComponent()
{
base.InitComponent();
windowBackground = transform.Find("RawImgBackground").gameObject;
bottomTabButtons = new Button[5];
for (int i = 1; i <= 5; i++)
{
string buttonName = "Buttons/Button" + i;
bottomTabButtons[i-1] = transform.Find(buttonName).GetComponent