28 lines
532 B
C#
28 lines
532 B
C#
|
|
using System.Collections;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using UnityEngine;
|
|||
|
|
using UnityEngine.UI;
|
|||
|
|
|
|||
|
|
|
|||
|
|
public class QuestionData: MonoBehaviour
|
|||
|
|
{
|
|||
|
|
public List<Toggle> options;
|
|||
|
|
[SerializeField]
|
|||
|
|
public Toggle rightToggle;
|
|||
|
|
public GameObject JieXi;
|
|||
|
|
public int scoreValue = 2;
|
|||
|
|
public bool hasBeenAnswered = false;
|
|||
|
|
|
|||
|
|
|
|||
|
|
[ContextMenu("<22><>ȡ<EFBFBD><C8A1><EFBFBD>е<EFBFBD>ѡ<EFBFBD><D1A1>ť")]
|
|||
|
|
public void GetAllToggle()
|
|||
|
|
{
|
|||
|
|
Toggle[] v=transform.GetComponentsInChildren<Toggle>();
|
|||
|
|
options= v.ToList();
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|