Пример #1
0
 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);
     }
 }
Пример #2
0
 public bool HasLaserSource(LaserSource source)
 {
     return(currentSources.Contains(source));
 }
Пример #3
0
 public void SetLaserSource(LaserSource source)
 {
     Assert.IsFalse(_laserSources.Contains(source));
     _laserSources.Add(source);
     OnLaserCountChanged(_laserSources.Count);
 }