public void UnlockRelatedDoor() { status = CardReaderStatus.unlocked; statuslight.GetComponent <MeshRenderer>().material = lightMaterialUnlocked; relatedDoor.GetComponent <Rigidbody>().freezeRotation = false; }
// Use this for initialization void Start() { status = CardReaderStatus.locked; lockflag = false; }