private void OnTriggerEnter(Collider other) { if (other.gameObject.tag == "Player") { TextContentUIDisplay.SetDisplayText(contents, _npc); if (destroyAfterTrigger) { Destroy(this.gameObject); } } }
// Update is called once per frame void Update() { // Toggle Hint Notebook if (Input.GetKeyDown(KeyCode.Q) || Input.GetKeyDown(KeyCode.H)) { panel.SetActive(!panel.activeSelf); } if (TextContentUIDisplay.getIsOpen()) { panel.SetActive(false); } }
// Start is called before the first frame update public void Start() { instance = this; }