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.
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 ;
using UnityEngine.SceneManagement ;
public class remake : MonoBehaviour
{
public static int a ; //代表实际的题号,不代表提交的题号
public GameObject [ ] gb ;
void Start ( )
{
gb [ 0 ] . SetActive ( false ) ;
gb [ a ] . SetActive ( true ) ;
}
/// <summary>
/// 重做启用, a代表场景名称
/// </summary>
/// <param name="a"></param>
public void Remake ( )
{
Application . LoadLevel ( SceneManager . GetActiveScene ( ) . name ) ;
}
/// <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 + + ;
}
}