private void OnTriggerEnter(Collider other) { m_IsInArea = true; // Door check works like security clearance if (m_Player.GetKeyCount() != m_Door.GetDoorID()) { KeyText.text = "Key not found yet"; } else { KeyText.text = "Press E to Open Door"; } }
private void OnTriggerEnter(Collider other) { m_IsInArea = true; // Door check works like security clearance if (m_Player.GetKeyCount() != m_Door.GetDoorID()) { KeyText.text = "Key not found yet"; } else { KeyText.text = "Press E to Open Door"; } }