예제 #1
0
 //Updates observers that are not interacted with directly but are affected by input such as the AI.
 public void UpdateGeneralObservers(IGeneralInputObserver observer)
 {
     if (!_generalObservers.Contains(observer))
     {
         _generalObservers.Add(observer);
     }
 }
예제 #2
0
 public void RemoveGeneralObserver(IGeneralInputObserver observer)
 {
     _generalObserver.Remove(observer);
 }
예제 #3
0
 public void AddGeneralObserver(IGeneralInputObserver observer)
 {
     _generalObserver.Add(observer);
 }