Exemplo n.º 1
0
 public bool BackupBoost(PowerUpBoost p)
 {
     if (boost.Count < 4)
     {
         boost.Add(p);
         return(true);
     }
     return(false);
 }
Exemplo n.º 2
0
 //Adds the boost to the list so it can be used and restore --DONE
 public bool AddNitro(PowerUpBoost p)
 {
     if (bs.BackupBoost(p))
     {
         if (!ch.IsBoostActive())
         {
             ch.ActivateBoost(true);
         }
         ch.UpdateBoost(bs.BoostCount());
         return(true);
     }
     return(false);
 }