using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Thing0 : MonoBehaviour { public Text mID; public Text mName; public Text mArea; public Text mOnOff; public Text mState; public void SetData(string id,string name,string area,string onoff,string state) { mID.text = id; mName.text = name; mArea.text = area; mOnOff.text = onoff; if (state == "Õý³£") { mState.color = new Color(0.41f, 0.65f, 0.89f); } else { mState.color = Color.red; } mState.text = state; } }