void KillAsteroid() { //get points based on how big the asteroid is //GUIManager.currentScore = GUIManager.currentScore + startingHealth * 2; //GUIManager.SetHighScore(); int addedPoints = startingHealth * 2; GUIManager.AddPoint(addedPoints); //random chance to instantiate the pickup //91 is the default if (randomNumber >= 91) { CreatePickup(); } //get rid of far away asteroids //RemoveAsteroid(); //split asteroid TriggerBreak(); //trigger particle system death explosion Explosion(); //StartCoroutine("Explosion"); }