private void Update() { //Call Input On Screen if (Input.GetKeyDown(KeyCode.LeftShift) || Input.GetKeyDown(KeyCode.C)) { GlobalObj.SetActive(true); } SwitchSytem(); }
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>(); } }