Example #1
0
 // PVE ONLY
 void CheckForExtraLife()
 {
     if (score > scoreLife * 20000f)
     {
         for (int i = 0; i < 4; i++)
         {
             if (players [i] == null)
             {
                 continue;
             }
             Player_Health hs = players [i].GetComponent <Player_Health> ();
             NumberSpawner.Instance.CreateNumber(players [i].transform.position, "EXTRA LIFE", NUMBER_COL.MOB_DMG, .005f, 240f, 5f);
             if (hs.Lives > 0)
             {
                 hs.SetLives_Hard(hs.Lives + 1);
             }
         }
         scoreLife++;
     }
 }