title: unity text trigger not working as expected
body: <p>in my game im trying to make text appear on the ui when entering a specific room,but when i try to go into that room nothing happens</p>
  
  <pre><code>using System.Collections.Generic;
  using UnityEngine;
  using UnityEngine.UI;
  
  public class Room_trigger : MonoBehaviour
  {
      public GameObject UiObject;
      public GameObject cube;
  
      void Start()
      {
          UiObject.SetActive(false);
      }
      void OnTriggerEnter(Collider other)
      {
  
          if (other.tag == "player")
          {
              UiObject.SetActive(true);
          }
      }
      void Update()
      {
  
      }
      void OnTriggerExit(Collider other)
      {
          UiObject.SetActive(false);
          Destroy(cube);
      }
  }
  </code></pre>
  
  <p>the player controller is based of of brakeys fps controller tutorial.</p>