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

62 lines
1.3 KiB
C#

using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
public class UI_ExperimentChooesPanel : BasePanel
{
protected override void Awake()
{
base.Awake();
OnInit();
}
public void OnInit()
{
}
protected override void OnChangeToggle(string btnPath, bool isOn)
{
base.OnClick(btnPath);
if (isOn)
{
Debug.Log("µ±Ç°µã»÷µÄ¿ÆÄ¿ÊÇ" + btnPath);
switch (btnPath)
{
case "5-1-1":
LineManager.instance.ChangeClass(511);
break;
case "5-1-2":
LineManager.instance.ChangeClass(512);
break;
case "5-2-1":
LineManager.instance.ChangeClass(521);
break;
case "5-2-2":
break;
case "1-3-1":
break;
case "1-3-2":
break;
case "1-4-1":
break;
case "1-4-2":
break;
case "1-5-1":
break;
case "1-5-2":
break;
}
}
}
}