42 lines
1004 B
C#
42 lines
1004 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
/// <summary>
|
|
/// 选择进入的课时
|
|
/// </summary>
|
|
public class SelectModel : MonoBehaviour
|
|
{
|
|
public static SelectModel Instance;
|
|
public Button environment;//环境控制
|
|
public Button connected_Devices;//设备互联与系统控制
|
|
public Button maintenance;//智能家电与维护
|
|
public Region region = Region.None;
|
|
private void Awake()
|
|
{
|
|
Instance = this;
|
|
}
|
|
void Start()
|
|
{
|
|
environment.onClick.AddListener(() =>
|
|
{
|
|
region = Region.环境控制;
|
|
gameObject.SetActive(false);
|
|
});
|
|
connected_Devices.onClick.AddListener(() =>
|
|
{
|
|
region = Region.设备互联与系统控制;
|
|
gameObject.SetActive(false);
|
|
});
|
|
maintenance.onClick.AddListener(() =>
|
|
{
|
|
region = Region.智能家电与维护;
|
|
gameObject.SetActive(false);
|
|
});
|
|
}
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|