private void OnEnable() { UpdateLevelStartVariables(); if (door07Unlocked == true) { door.Unlock(); } }
private void DoorLogic(DoorSwitch inDoor, bool doorState) { if (inDoor.isLocked()) { if (doorState == true) { inDoor.Unlock(); } } else { if (doorState == false) { inDoor.Lock(); } } }