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.

35 lines
702 B

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
/// <summary>
/// 第十题第一小题
/// </summary>
public class ChangeText : MonoBehaviour
{
public Text[] text;
public void ChangeOne()
{
text[0].text = "0<color=#FF0000>*</color>*";
}
public void ChangeTwo()
{
text[0].text = "00<color=#FF0000>*</color>";
}
public void ChangeThree()
{
text[0].text = "001";
text[1].text = "<color=#FF0000>*</color>*";
}
public void ChangeFour()
{
text[1].text = "0<color=#FF0000>*</color>";
}
public void ChangeFive()
{
text[1].text = "01";
}
}