NanDaEnvironmentalProtection/Assets/Scripts/UI/UIPanel/UI_UpBgPanel.cs

59 lines
1.2 KiB
C#

using DG.Tweening;
using System.Collections;
using System.Collections.Generic;
using Unity.VisualScripting;
using UnityEngine;
using UnityEngine.UI;
/// <summary>
/// Ï·½Ãæ°å
/// </summary>
public class UI_UpBgPanel : BasePanel
{
public ToggleGroup AllToggle_Tg;
public List<Toggle> toggle_Up = new List<Toggle>();
protected override void Awake()
{
base.Awake();
AllToggle_Tg = GetControl<ToggleGroup>("AllToggle_Tg");
foreach (Toggle itemToggle in toggle_Up)
{
itemToggle.group = AllToggle_Tg;
}
}
public override void ShowMe()
{
base.ShowMe();
Debug.Log("UI_LoadingPanel ShowMe");
}
public override void HideMe()
{
base.HideMe();
Debug.Log("UI_LoadingPanel HideMe");
}
private void Update()
{
}
protected override void OnChangeToggle(string btnPath ,bool ison)
{
base.OnChangeToggle(btnPath, ison);
if (ison)
{
switch (btnPath)
{
case "LeftOpen_Btn":
Debug.Log(btnPath);
break;
}
}
}
}