public void AddRadiation() { audioManager.PlaySound(3); lightFlash.Flash(); Instantiate(nuclearExplosion, nuclearExplosion.transform.position, Quaternion.identity); Shake(radShakeDuration, radShakeAmount, radShakeDecrease); }
void EatFood(GameObject food) { Instantiate(bubbleBurst, transform.position, Quaternion.identity); Instantiate(eatNuclearExp, transform.position, Quaternion.identity); audioManager.PlaySound(0); lightFlash.Flash(); food.GetComponent <Food>().Eat(); }