public void RemoveLaserSource(LaserSource source)
 {
     //Safe check, because who doesn't clear their laser beams EXCESSIVELY?
     if (_laserSources.Contains(source))
     {
         _laserSources.Remove(source);
         OnLaserCountChanged(_laserSources.Count);
     }
 }
Example #2
0
 public bool HasLaserSource(LaserSource source)
 {
     return(currentSources.Contains(source));
 }
 public void SetLaserSource(LaserSource source)
 {
     Assert.IsFalse(_laserSources.Contains(source));
     _laserSources.Add(source);
     OnLaserCountChanged(_laserSources.Count);
 }