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.
44 lines
921 B
44 lines
921 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
/// <summary>
|
|
/// 第十题第二小题
|
|
/// </summary>
|
|
public class ChangeTextTwo : MonoBehaviour
|
|
{
|
|
public Text[] text;
|
|
public void ChangeOne()
|
|
{
|
|
text[0].text = "0<color=#FF0000>*</color>";
|
|
}
|
|
public void ChangeTwo()
|
|
{
|
|
text[0].text = "01";
|
|
text[1].text = "<color=#FF0000>*</color>**";
|
|
}
|
|
public void ChangeThree()
|
|
{
|
|
text[1].text = "0<color=#FF0000>*</color>*";
|
|
|
|
}
|
|
public void ChangeFour()
|
|
{
|
|
text[1].text = "00<color=#FF0000>*</color>";
|
|
}
|
|
public void ChangeFive()
|
|
{
|
|
text[1].text = "001";
|
|
text[2].text = "<color=#FF0000>*</color>*";
|
|
}
|
|
public void ChangeSix()
|
|
{
|
|
text[2].text = "0<color=#FF0000>*</color>";
|
|
}
|
|
public void ChangeSeven()
|
|
{
|
|
text[2].text = "01";
|
|
}
|
|
}
|