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.
31 lines
558 B
31 lines
558 B
using System;
|
|
using System.Collections;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
/// <summary>
|
|
/// 选项控制脚本
|
|
/// </summary>
|
|
public class QuestionCell : MonoBehaviour
|
|
{
|
|
[Header("Inputfield")]
|
|
public Text inputText;
|
|
public Text placeholder;
|
|
[Header("toggle")]
|
|
public Text toggleText;
|
|
|
|
[HideInInspector]
|
|
public int id;//原始序号
|
|
|
|
public void InitToggle(string value,int id)
|
|
{
|
|
toggleText.text = value;
|
|
this.id = id;
|
|
}
|
|
|
|
public void InitInput(string value)
|
|
{
|
|
placeholder.text = value;
|
|
}
|
|
}
|