//add weight to calculation if it isn't in it already, and calculate public void ActivateWeights(WeightedObjectScript weight) { if (!Objects.Contains(weight)) { Objects.Add(weight); } BeamScript.CheckWeights(); }
//remove weight from calculation and calculate public void RemoveFromList(WeightedObjectScript weight) { Objects.Remove(weight); BeamScript.CheckWeights(); }