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.

40 lines
784 B

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class panding511 : MonoBehaviour
{
public Toggle[] gb;
public DuoXuan dx;
public static int a=-1;//代表511的对错
private void Start()
{
dx.[0] = a;
}
public void panding()
{
if (gb[0].isOn && !gb[1].isOn && !gb[2].isOn)
{
a = 0;
dx.[0] = 0;
}
else
{
a = 1;
dx.[0] = 1;
}
}
public void pandingtrue2()
{
if (!gb[3].isOn && !gb[4].isOn && !gb[5].isOn)
{
dx.[1] = 0;
}
}
public void pandingfalse2()
{
dx.[1] = 1;
}
}