Exemple #1
0
 void Pickup()
 {
     // Effect
     for (int i = 0; i < 200; i++)
     {
         objPooler.DespawnToPool("Enemy");
     }
     FindObjectOfType <SoundManager>().Play("Explosion");
     objPooler.DespawnToPool("BombPU");
 }
Exemple #2
0
    void Pickup()
    {
        // Effect

        stats.Heal(10f);
        score.Heal(10f);

        FindObjectOfType <SoundManager>().Play("HeartPickup");

        objPooler.DespawnToPool("HeartPU");
    }
Exemple #3
0
 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;
 }