private void Awake() { uiText.text = "---"; TerminalEventManager.instance.resetEvent.AddListener(Reset); if (windowGO == null) { return; } GameObject terminal = GameObject.Find("/Terminal"); GameObject go = Instantiate(windowGO, terminal.transform); window = go.transform.GetComponent <LeanWindow> (); window.GetComponent <BlockWindow>().myBlock = this.GetComponent <TerminalBlocks>(); }