using UnityEngine; public class KeyCardPlayer : MonoBehaviour { // does the player have the key card? public bool hasKeyCard = false; }