public void UnregisterListener(BaseBehaviour eventToRemove) { if (m_gameBehaviours.Contains(eventToRemove)) { m_gameBehaviours.Remove(eventToRemove); } }
public void RegisterListener(BaseBehaviour eventToAdd) { if (!m_gameBehaviours.Contains(eventToAdd)) { m_gameBehaviours.Add(eventToAdd); } }