using UnityEngine; using System.Collections; using UnityEngine.UI; public class ExitModeSet : MonoBehaviour { /// /// 退出 /// private bool Flag = true; private Animator Ani; private Button MyButton; private Toggle TheExit;// 退出 private Text TheShowText; public static ExitModeSet instance; void Awake() { if (instance == null) { instance = this; } } void Start() { Ani = this.gameObject.GetComponent(); MyButton = this.gameObject.GetComponent