Exemplo n.º 1
0
        void Start()
        {
            Application.runInBackground = true;
                        mScene = new ClassicTetrisRules ();
                        mScene.RegisterObserver (this);

                        //Register this class as an observer with the input and menu controller
                        GameObject go = GameObject.Find ("GameObject");
                        PlayerControl inputController = (PlayerControl)go.GetComponent (typeof(PlayerControl));
                        inputController.RegisterObserver (this);
                        DelegateMenu gameStateController = (DelegateMenu)go.GetComponent (typeof(DelegateMenu));
                        gameStateController.RegisterObserver (this);
        }