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.
50 lines
1003 B
50 lines
1003 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class panding25 : MonoBehaviour
|
|
{
|
|
public DuoXuan dx;
|
|
public GameObject[] gb;
|
|
public static int[] a = new int[2];//代表54的12345题的对错
|
|
public static bool z;//代表第一次初始化
|
|
public GameObject[] chuanghu;
|
|
private bool b;
|
|
private void Start()
|
|
{
|
|
if (!z)
|
|
{
|
|
for (int i = 0; i < a.Length; i++)
|
|
{
|
|
a[i] = -1;
|
|
}
|
|
z = true;
|
|
}
|
|
dx.选项[0] = a[0];
|
|
dx.选项[1] = a[1];
|
|
}
|
|
|
|
public void panding1(int b)
|
|
{
|
|
a[0] = b;
|
|
dx.选项[0] = b;
|
|
}
|
|
public void panding2()
|
|
{
|
|
if (b)
|
|
{
|
|
a[1] = 0;
|
|
dx.选项[1] = 0;
|
|
chuanghu[0].SetActive(false);
|
|
chuanghu[1].SetActive(true);
|
|
}
|
|
}
|
|
public void panding3()
|
|
{
|
|
if (!b)
|
|
{
|
|
b = true;
|
|
}
|
|
}
|
|
}
|