public void RemoveBooster(PlasmaBooster plasmaBooster) { activePlasmaBoosters.Remove(plasmaBooster); if (activePlasmaBoosters.Count == 0) { StopTilePulsations(); } UpdateBoostBonus(); }
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); } }