| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- using UnityEngine.SceneManagement;
- /* 设置界面1 */
- public class SetUpView1 : MonoBehaviour
- {
- public void GoToGameSetupView() {
- AudioMgr.ins.PlayBtn();
- GameObject.Instantiate(Resources.Load<GameObject>("Prefabs/Views/SetUpView"), Vector3.zero, new Quaternion());
- }
- public void AboutUs() {
- AudioMgr.ins.PlayBtn();
- PopupMgr.ins.ShowTip("关于我们-智能弓箭App!");
- }
- public void GoToUserAgreement() {
- AudioMgr.ins.PlayBtn();
- GameObject o = GameObject.Instantiate(Resources.Load<GameObject>("Prefabs/Views/AgreementView"));
- o.GetComponent<AgreementView>().EnterUserAgreement();
- }
- public void GoToPrivacyAgreement() {
- AudioMgr.ins.PlayBtn();
- GameObject o = GameObject.Instantiate(Resources.Load<GameObject>("Prefabs/Views/AgreementView"));
- o.GetComponent<AgreementView>().EnterPrivacyAgreement();
- }
- public void QuitGame() {
- AudioMgr.ins.PlayBtn();
- Application.Quit();
- }
- public void QuitLogin()
- {
- AudioMgr.ins.PlayBtn();
- PlayerPrefs.DeleteKey("IdAndToken");
- SceneManager.LoadScene("Login", LoadSceneMode.Single);
- if (UserPlayer.ins != null) UserPlayer.ins.Close();
- }
- public void Back() {
- AudioMgr.ins.PlayBtn();
- Destroy(this.gameObject);
- }
- }
|