public void update(NumberGenerator generator) { Debug.Log("DigitObserver:" + generator.getNumber()); try { Thread.Sleep(100); } catch (Exception) { } }
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) { } }
public void update(NumberGenerator generator) { Debug.Log("FrameObserver:"); int count = generator.getNumber(); for (int i = 0; i < count; i++) { var cube = GameObject.CreatePrimitive(PrimitiveType.Cube); cube.transform.position = new Vector3(0, i, 0); } Debug.Log(""); try { Thread.Sleep(100); } catch (Exception) { } }