コード例 #1
0
 // Use this for initialization
 void Start()
 {
     buttonTxt = buttonTxtObj.GetComponent<Text>();
     worldObjCode = GameObject.FindGameObjectWithTag ("globalObj").GetComponent<StartEndStuff>();
     if (worldObjCode.UseColorBlindMode ()) {
         buttonTxt.text = "Color Blind Mode: ON";
     } else {
         buttonTxt.text = "Color Blind Mode: OFF";
     }
 }