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("»ñÈ¡ËùÓе¥Ñ¡°´Å¥")]
|
|
public void GetAllToggle()
|
|
{
|
|
Toggle[] v=transform.GetComponentsInChildren<Toggle>();
|
|
options= v.ToList();
|
|
|
|
|
|
|
|
}
|
|
}
|