Beispiel #1
0
 public void UnregisterListener(BaseBehaviour eventToRemove)
 {
     if (m_gameBehaviours.Contains(eventToRemove))
     {
         m_gameBehaviours.Remove(eventToRemove);
     }
 }
Beispiel #2
0
 public void RegisterListener(BaseBehaviour eventToAdd)
 {
     if (!m_gameBehaviours.Contains(eventToAdd))
     {
         m_gameBehaviours.Add(eventToAdd);
     }
 }