ND_SimulationAutomaticControl/Assets/Scripts/UI/UIPanel/UI_ChooesPanel.cs

65 lines
1.2 KiB
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class UI_ChooesPanel : BasePanel
{
public Image targetimage;
protected override void Awake()
{
base.Awake();
OnInit();
}
public void OnInit()
{
targetimage = GetControl<Image>("???????");
}
public override void ShowMe()
{
base.ShowMe();
}
public override void HideMe()
{
base.HideMe();
}
protected override void OnClick(string btnPath)
{
base.OnClick(btnPath);
switch (btnPath)
{
case "testBtn1":
Debug.Log(1);
break;
case "testBtn2":
Debug.Log(2);
break;
case "testBtn3":
break;
}
}
protected override void OnChangeToggle(string btnPath , bool ison)
{
base.OnClick(btnPath);
if (ison)
{
switch (btnPath)
{
case "testBtn1":
break;
case "testBtn2":
break;
case "testBtn3":
break;
}
}
}
}