Esempio n. 1
0
 public void AddRadiation()
 {
     audioManager.PlaySound(3);
     lightFlash.Flash();
     Instantiate(nuclearExplosion, nuclearExplosion.transform.position, Quaternion.identity);
     Shake(radShakeDuration, radShakeAmount, radShakeDecrease);
 }
Esempio n. 2
0
 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();
 }