示例#1
0
        public void Update(NumberGenerator generator)
        {
            StringBuilder sb = new StringBuilder();

            for (int i = 0; i < generator.getNumber(); i++)
            {
                sb.Append("*");
            }

            UnityEngine.Debug.Log("GraphObserver:" + sb);
        }
示例#2
0
        public void update(NumberGenerator generator)
        {
            Console.WriteLine("GraphObserver:");
            int count = generator.getNumber();

            for (int i = 0; i < count; i++)
            {
                Console.Write("*");
            }
            Console.WriteLine();
            Thread.Sleep(100);
        }
示例#3
0
 public void Update(NumberGenerator generator)
 {
     this.numText.text = generator.getNumber().ToString();
 }
 public void update(NumberGenerator generator)
 {
     Console.WriteLine("DigitObserver:" + generator.getNumber());
     Thread.Sleep(100);
 }