void Update() { if (Input.GetKey(KeyCode.X) && (Input.GetKey(KeyCode.Alpha1) || Input.GetKey(KeyCode.Keypad1)) && (Input.GetKey(KeyCode.Alpha0) || Input.GetKey(KeyCode.Keypad0))) { GameStateHandler gameStateHandler = GameControllerScript.GetInstance().GetComponent <GameStateHandler>(); for (int x = 0; x < 4; x++) { gameStateHandler.SetBossDefeated(EnemyType.DarkPlayer, x); gameStateHandler.SetBossDefeated(EnemyType.Dummy, x); gameStateHandler.SetBossDefeated(EnemyType.Vampire, x); gameStateHandler.SetBossDefeated(EnemyType.Psychic, x); } LoadMapState(); } }