上海虹口龙之梦项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

58 lines
1.5 KiB

using UnityEngine;
using UnityEngine.UI;
using UniRx;
public class PlottingTablesPanel : UIView
{
//组织指挥架构表
public Toggle StructureToggle;
//联动力量表
public Toggle LinkageForceToggle;
//联勤保障表
public Toggle SupportToggle;
public override void Awake()
{
base.Awake();
//组织指挥架构表
StructureToggle.OnValueChangedAsObservable()
.Subscribe(value =>
{
if (value)
UIManager.Instance.Show<CommandTablePanel>();
else
UIManager.Instance.Hide<CommandTablePanel>();
});
//联动力量表
LinkageForceToggle.OnValueChangedAsObservable()
.Subscribe(value =>
{
if (value)
UIManager.Instance.Show<LinkageForceTablePanel>();
else
UIManager.Instance.Hide<LinkageForceTablePanel>();
});
//联勤保障表
SupportToggle.OnValueChangedAsObservable()
.Subscribe(value =>
{
if (value)
UIManager.Instance.Show<SafeguardTablePanel>();
else
UIManager.Instance.Hide<SafeguardTablePanel>();
});
}
public override void Hide()
{
base.Hide();
StructureToggle.isOn = false;
LinkageForceToggle.isOn = false;
SupportToggle.isOn = false;
}
}