HKMBFZ/Assets/Scripts/Szz_Scripts/UI/181/ZhuJieMianPage.cs

54 lines
1.1 KiB
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ZhuJieMianPage : UIPageBtnEventBase
{
public List<GameObject> pages=new List<GameObject>();
public GameObject JiShuZhenDiUI; //技术阵地UI
public GameObject UI;
public override void OnF1Click()
{
base.OnF1Click();
pages[0].SetActive(true);
JiShuZhenDiUI.SetActive(true);
gameObject.SetActive(false);
}
public override void OnF2Click()
{
base.OnF2Click();
pages[1].SetActive(true);
UI.SetActive(true);
gameObject.SetActive(false);
}
public override void OnF3Click()
{
base.OnF3Click();
pages[2].SetActive(true);
gameObject.SetActive(false);
}
public override void OnF4Click()
{
base.OnF4Click();
pages[3].SetActive(true);
gameObject.SetActive(false);
}
public override void OnF5Click()
{
base.OnF5Click();
pages[4].SetActive(true);
gameObject.SetActive(false);
}
}