public void EndLevel() { playerUpgrades.SpendablePoints += 2; playerUpgrades.ShowStartLevel(); playerUpgrades.ShowRevert(); playerUpgrades.HideRestart(); Player.GetComponent <Player>().forceShield.transform.localScale = new Vector3(3f, 0.1f, 3f); Player.GetComponent <Player>().isScaling = false; StartCoroutine(EndLevelCoroutine(1.5f)); EnemyHealth += 5; EnemyCountPerSpawn += 1; EnemyAttackRange += 0.5f; EnemySpeed += 0.15f; if (currentLevel % 5 == 0) { playerUpgrades.SpendablePoints += 3; SpawnCountPerWave += 1; } }