Ejemplo n.º 1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.tag == "Player")
     {
         TextContentUIDisplay.SetDisplayText(contents, _npc);
         if (destroyAfterTrigger)
         {
             Destroy(this.gameObject);
         }
     }
 }
Ejemplo n.º 2
0
    // 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);
        }
    }
Ejemplo n.º 3
0
 // Start is called before the first frame update
 public void Start()
 {
     instance = this;
 }