public void Sjekk() { if (blirAApnet) { counter--; if (counter == 10) { megDoor.OpenDoor(); } else if (counter < 0) { megDoor.CloseDoor(); counter = 10; blirAApnet = false; } } else if (megDoor.Open && !blirAApnet) { if (counter < 0) { //Åpne den andre megDoor.CloseDoor(); annenDoor.AApne(); counter = 10; } else { counter--; } } }