void destroyBoss() { BossSpawnPoint.continueWave(); Background.increaseSpeed(); Enemy.buffEnemy(); EnemySpawnPoint.buffSpawnPoint(); Destroy(gameObject); }
private void resetGame() { Score.resetScore(); Skill.instance.resetStack(); EnemySpawnPoint.resetSpawnPoint(); Enemy.resetEnemy(); BossSpawnPoint.resetSpawnPoint(); Boss.resetBoss(); Background.resetBackground(); Character character = GameObject.FindGameObjectWithTag("Player").GetComponent <Character>(); character.resetCharacter(); Feet.instance.startAnimation(); DestroyClass.destroyObjectsByTag("Enemy"); DestroyClass.destroyObjectsByTag("Projectile"); aud.clip = (AudioClip)Resources.Load("Audios/Musics/GameMusic"); }