public static bool IsItUnlocked(DoorTrigger dt) { Doors thisDoorIs = BriansEngine.FindDoorType(dt); for (int i = 0; i < BriansEngine.openable.Count; i++) { if (thisDoorIs.Equals(BriansEngine.openable[i].doorType)) { return(!BriansEngine.openable[i].doorState); } } throw new UnityException("Not implemented"); }