예제 #1
0
 public void RemoveObserver(ITimeObserver o)
 {
     int i = observers.IndexOf(o);
     if (i >= 0)
     {
         observers.Remove(o);
     }
 }
예제 #2
0
 public void RemoveObserver(ITimeObserver ob)
 {
     if (m_Observers.Contains(ob))
     {
         m_Observers.Remove(ob);
     }
     else
     {
         Log.w("This time observer can't be found");
     }
 }
예제 #3
0
        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");
            }
        }
예제 #4
0
 public void RemoveObserver(ITimeObserver o)
 {
     TimeObservers.Remove(o);
 }
예제 #5
0
 public void AddObserver(ITimeObserver o)
 {
     TimeObservers.Add(o);
 }
예제 #6
0
 public void RegisterObserver(ITimeObserver o)
 {
     observers.Add(o);
 }
예제 #7
0
 public void SubscribeTimer(ITimeObserver obj)
 {
     m_Observer.Add(obj);
 }
예제 #8
0
 public void UnSubscribeTimer(ITimeObserver obj)
 {
     m_ObserverToRemove.Add(obj);
     //m_Observer.Remove(obj);
 }
 public void RegisterObserver(ITimeObserver timeObserver)
 {
     _observers.Add(timeObserver);
 }
 public void RegisterObserver(ITimeObserver timeObserver)
 {
     _observers.Add(timeObserver);
 }