Пример #1
0
 private void Update()
 {
     //Call Input On Screen
     if (Input.GetKeyDown(KeyCode.LeftShift) || Input.GetKeyDown(KeyCode.C))
     {
         GlobalObj.SetActive(true);
     }
     SwitchSytem();
 }
Пример #2
0
    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>();
        }
    }