using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class Windows : MonoBehaviour { public static Windows Instance = null; public int 关卡, 题号=1; private void Awake() { Instance = this; if (关卡 == 2) { if (remake.a == 0 || remake.a == 1||remake.a==2) { 题号 = 1; } else if (remake.a == 4|| remake.a == 5 || remake.a == 6 || remake.a == 7) { 题号 = 2; } else if (remake.a == 8) { 题号 = 3; } else if (remake.a == 9) { 题号 = 4; } else if (remake.a == 10||remake.a == 11 ) { 题号 = 5; } } else if (关卡 == 3) { 题号 = remake.a + 1; } else if (关卡 == 5) { if (remake.a==0||remake.a==1) { 题号 = 1; } else if (remake.a == 2) { 题号 = 2; } else if (remake.a == 3) { 题号 = 3; } else if (remake.a == 4||remake.a == 5||remake.a ==6||remake.a==7||remake.a==8) { 题号 = 4; } else if (remake.a == 9) { 题号 = 5; } else if (remake.a == 10||remake.a == 11||remake.a == 12||remake.a==13) { 题号 = 6; } } else if (关卡==6) { 题号 = remake.a + 1; } else if(关卡>6) { 题号 = remakeTwo.a + 1; } } public void ReturnMenu() { remake.a = 0; remakeTwo.a = 0; if (关卡==2) { panding21.z = false; panding22.z = false; panding25.z = false; } if (关卡==5) { panding511.a = -1; panding54.z = false; panding56.z = false; } if (关卡==7) { PanDing74.b = 0; } GameRoot.ReturnMenu(); } public void ReloadScene() { SceneManager.LoadScene(SceneManager.GetActiveScene().name); } }