public void update(NumberGenerator generator)
 {
     Debug.Log("DigitObserver:" + generator.getNumber());
     try
     {
         Thread.Sleep(100);
     }
     catch (Exception)
     {
     }
 }
Exemple #2
0
        public void update(NumberGenerator generator)
        {
            Debug.Log("GraphObserver:");
            int count = generator.getNumber();

            for (int i = 0; i < count; i++)
            {
                Debug.Log("*");
            }
            Debug.Log("");
            try
            {
                Thread.Sleep(100);
            }
            catch (Exception)
            {
            }
        }