void Pickup() { // Effect for (int i = 0; i < 200; i++) { objPooler.DespawnToPool("Enemy"); } FindObjectOfType <SoundManager>().Play("Explosion"); objPooler.DespawnToPool("BombPU"); }
void Pickup() { // Effect stats.Heal(10f); score.Heal(10f); FindObjectOfType <SoundManager>().Play("HeartPickup"); objPooler.DespawnToPool("HeartPU"); }
public void HandleUserEarnedReward(object sender, EventArgs args) { for (int i = 0; i < 200; i++) { objPool.DespawnToPool("Enemy"); } adRev.ContinueGame(); stats.Revive(30f); score.Revive(30f); timeScript.Revive(); adRev.alreadyRevived = true; }