public void RemoveObserver(ITimeObserver o) { int i = observers.IndexOf(o); if (i >= 0) { observers.Remove(o); } }
public void RemoveObserver(ITimeObserver ob) { if (m_Observers.Contains(ob)) { m_Observers.Remove(ob); } else { Log.w("This time observer can't be found"); } }
public void AddObserver(ITimeObserver ob) { if (!m_Observers.Contains(ob)) { m_Observers.Add(ob); ob.OnStart(); } else { Log.w("This time observer has been added before"); } }
public void RemoveObserver(ITimeObserver o) { TimeObservers.Remove(o); }
public void AddObserver(ITimeObserver o) { TimeObservers.Add(o); }
public void RegisterObserver(ITimeObserver o) { observers.Add(o); }
public void SubscribeTimer(ITimeObserver obj) { m_Observer.Add(obj); }
public void UnSubscribeTimer(ITimeObserver obj) { m_ObserverToRemove.Add(obj); //m_Observer.Remove(obj); }
public void RegisterObserver(ITimeObserver timeObserver) { _observers.Add(timeObserver); }