// Update is called once per frame void Update() { if (playercontrollerscript.howManyDeadEnemies >= howManyEnemieShouldBeDead) { doorisopen.FadeToLevel(3); } }