You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
935 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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);
}
/// <summary>
/// 重做启用c代表场景名称
/// </summary>
/// <param name="c"></param>
public void Remake(string c)
{
Application.LoadLevel(c);
}
/// <summary>
/// 切换场景启用为了让下一道题从第0题开始显示把静态变量a归0
/// </summary>
/// <param name="b"></param>
//public void NextScene(string b)
//{
/*a = 0;
Application.LoadLevel(b);*/
//}
/// <summary>
///
/// </summary>
public void IAdd()
{
a++;
}
}