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.

56 lines
1.0 KiB

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class panding54 : MonoBehaviour
{
public DuoXuan dx;
public static int[] a=new int[5];//代表54的12345题的对错
public static bool z;//代表第一次初始化
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];
dx.[2] = a[2];
dx.[3] = a[3];
}
public void panding1(int b)
{
a[0] = b;
dx.[0] = b;
}
public void panding2(int b)
{
a[4] = b;
dx.[4] = b;
}
public void panding3(int b)
{
a[3] = b;
dx.[3] = b;
}
public void panding4(int b)
{
a[2] = b;
dx.[2] = b;
}
public void panding5(int b)
{
a[1] = b;
dx.[1] = b;
}
}