using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; /// /// 12.3/6房间里触发按钮则改变文本 /// public class fangJianLa : MonoBehaviour { public GameObject[] text; public GameObject[] gb; public GameObject paiyananban; public void La() { text[0].SetActive(false);//关闭 text[1].SetActive(true);//打开 text[2].SetActive(true);//文本打开的东西 gb[0].SetActive(true); gb[1].SetActive(true); paiyananban.transform.localEulerAngles = new Vector3(0, 100, 0); } }