void SwitchSytem() { InputField _String = ObjString.GetComponent <InputField>(); if (switchDataType) { CheckString(_String.text); ObjString.SetActive(true); ObjInt.SetActive(false); } else { CheckInt(); ObjString.SetActive(false); ObjInt.SetActive(true); } }
private void Start() { GlobalObj = GameObject.Find("ProgramingUI"); ObjString = GameObject.Find("StringInput"); ObjInt = GameObject.Find("IntInput"); ObjString.SetActive(true); ObjInt.SetActive(false); if (GlobalObj != null) { GlobalObj.SetActive(false); } ObjManager = GameObject.Find("Manager"); if (ObjManager != null) { manager = ObjManager.GetComponent <_GameManager>(); } }