Ejemplo n.º 1
0
 public void Start()
 {
     GameObject go = GameObject.Find ("GameObject");
                 ((PlayerControl)go.GetComponent (typeof(PlayerControl))).RegisterObserver (this);
                 mUnityTetris = (UnityTetris)go.GetComponent (typeof(UnityTetris));
                 mUnityTetris.Scene.RegisterObserver (this);
 }
Ejemplo n.º 2
0
    // Use this for initialization
    private void Start()
    {
        mScreenHeight = Screen.height;
                mScreenWidth = Screen.width;

                mButtonHeight = mScreenHeight * 0.2f;
                mButtonWidth = mScreenWidth * 0.4f;

                menuFunction = mainMenu;

                //Register with the input controller so I observer updates
                GameObject go = GameObject.Find ("GameObject");
                AssemblyCSharp.PlayerControl inputController = (AssemblyCSharp.PlayerControl)go.GetComponent (typeof(AssemblyCSharp.PlayerControl));
                inputController.RegisterObserver (this);
                mUnityTetris = (AssemblyCSharp.UnityTetris)go.GetComponent (typeof(AssemblyCSharp.UnityTetris));
    }