using System.Collections; using System.Collections.Generic; using UnityEngine; public class Door : MonoBehaviour { private bool locked = false; // Use this for initialization void Start () { locked = false; } public void Lock() { locked = true; } public void Unlock() { locked = false; } public bool IsLocked() { return locked; } }