public void EnterNextLevel() { char_0.GetComponent <Character>().isControlled = false; char_1.GetComponent <Character>().isControlled = false; char_2.GetComponent <Character>().isControlled = false; if (char_0.GetComponent <Character>().isAlive) { char_0.transform.position = spawnPos_0.position; } if (char_1.GetComponent <Character>().isAlive) { char_1.transform.position = spawnPos_1.position; } if (char_2.GetComponent <Character>().isAlive) { char_2.transform.position = spawnPos_2.position; } if (level == 1) { player.isLevel0 = false; } else if (level == 2) { player.isLevel2 = true; } managerUI.SelectChar(666); }