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

75 lines
1.9 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SheJiControl : UIPageBtnEventBase
{
public GameObject ;
public GameObject ;
public GameObject currectPage;
//public SheJiXiuZhengPage sheJiXiuZheng;
//public ZhuYuanFangShiPage zhuYuanFangShi;
//public ZuoBiaoFangShiPage zuoBiaoFangShiPage;
//public GameObject backPage;
//public string backName;
public MonoBehaviour mono;
private void OnEnable()
{
currectPage = null;
//只要弹出射击控制界面则一定出现调炮画面
AnimationModel.instance.Show181Tween();
mono.enabled = false;
//sheJiXiuZheng = FindObjectOfType<SheJiXiuZhengPage>();
//sheJiXiuZheng.enabled = false;
}
private void OnDisable()
{
//sheJiXiuZheng.enabled = true;
mono.enabled = true;
}
public override void OnF1Click()
{
base.OnF1Click();
if (currectPage != null) //如果当前界面已经有子界面打开
{
//则F1调炮并关闭子界面
AnimationModel.instance.Show181Tween();
currectPage.SetActive(false);
currectPage = null;
return;
}
.SetActive(true);
.SetActive(false);
currectPage = ;
}
public override void OnF3Click()
{
base.OnF3Click();
.SetActive(true);
.SetActive(false);
currectPage = ;
}
public override void OnF4Click()
{
base.OnF4Click();
if (currectPage != null)
{
currectPage.SetActive(false);
currectPage = null;
return;
}
//backPage.SetActive(true);
//sheJiXiuZheng.currectName = backName;
//gameObject.SetActive(false);
Destroy(gameObject);
Debug.Log("返回");
}
}