using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; /// /// 第十题第二小题 /// public class ChangeTextTwo : MonoBehaviour { public Text[] text; public void ChangeOne() { text[0].text = "0*"; } public void ChangeTwo() { text[0].text = "01"; text[1].text = "***"; } public void ChangeThree() { text[1].text = "0**"; } public void ChangeFour() { text[1].text = "00*"; } public void ChangeFive() { text[1].text = "001"; text[2].text = "**"; } public void ChangeSix() { text[2].text = "0*"; } public void ChangeSeven() { text[2].text = "01"; } }