using System.Collections; using System.Collections.Generic; using UnityEngine; public class remakeTwo : MonoBehaviour { public static int a; public GameObject[] gb; public GameObject[] gb2; void Start() { gb[0].SetActive(false); gb[a].SetActive(true); gb2[0].SetActive(false); gb2[a].SetActive(true); } /// /// 重做启用,c代表场景名称 /// /// public void Remake(string c) { Application.LoadLevel(c); } /// /// 切换场景启用,为了让下一道题从第0题开始显示,把静态变量a归0 /// /// //public void NextScene(string b) //{ /*a = 0; Application.LoadLevel(b);*/ //} /// /// /// public void IAdd() { a++; } }