using System.Collections; using System.Collections.Generic; using UnityEngine; public class ZhuJieMianPage : UIPageBtnEventBase { public List pages=new List(); 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); } }