コード例 #1
0
 public void RemoveBooster(PlasmaBooster plasmaBooster)
 {
     activePlasmaBoosters.Remove(plasmaBooster);
     if (activePlasmaBoosters.Count == 0) {
         StopTilePulsations();
     }
     UpdateBoostBonus();
 }
コード例 #2
0
 public void AddBooster(PlasmaBooster plasmaBooster)
 {
     //Start executes after AddBooster happens so we eed to initialize here for now
     if (activePlasmaBoosters == null){
         canShoot = GetComponent<CanShoot>();
         activePlasmaBoosters = new List<PlasmaBooster>();
     }
     if (!activePlasmaBoosters.Contains(plasmaBooster)){
         activePlasmaBoosters.Add(plasmaBooster);
     }
 }