43 lines
972 B
C#
43 lines
972 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
using UnityEngine.UI;
|
|
|
|
public class Judgmentstate : MonoBehaviour
|
|
{
|
|
/// <summary>
|
|
/// 环境设置按钮
|
|
/// </summary>
|
|
public Button environment;
|
|
/// <summary>
|
|
/// 天气配置页面
|
|
/// </summary>
|
|
public RectTransform weather_panl;
|
|
/// <summary>
|
|
/// 关闭天气配置界面按钮
|
|
/// </summary>
|
|
public Button fanhui1;
|
|
public Button off_btn;
|
|
void Start()
|
|
{
|
|
environment.onClick.AddListener(() =>
|
|
{
|
|
weather_panl.gameObject.SetActive(true);
|
|
});
|
|
off_btn.onClick.AddListener(() =>
|
|
{
|
|
weather_panl.gameObject.SetActive(false);
|
|
});
|
|
fanhui1.onClick.AddListener(() =>
|
|
{
|
|
GameMain.tiao = false;
|
|
SceneManager.LoadScene("SampleScene");
|
|
});
|
|
}
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|