贵港路建设路地下商业街网上演练
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.
 
 
 

26 lines
594 B

using UnityEngine;
public class ViewSwitchPanelHideOrShow : BaseToggle
{
private Transform mViewSwithPanel;
void Start()
{
mViewSwithPanel = transform.parent.transform.Find("ViewSwitchPanel");
mViewSwithPanel.gameObject.SetActive(false);
}
public override void RespondFun(bool value)
{
if (value == true)
{
mViewSwithPanel.gameObject.SetActive(true);
mViewSwithPanel.SetAsLastSibling();
}
else
{
mViewSwithPanel.gameObject.SetActive(false);
}
}
}