Ejemplo n.º 1
0
    public void StartBeerPongMiniGame()
    {
        ioController.DisableClicking();
        ioController.DisableScrolling();
        beerPongInstance = GameObject.Instantiate(Resources.Load("Prefabs/BeerPongInstance") as GameObject);
        var newPosition = cameraController.GetCameraPosition();

        newPosition.y += 1.0f;
        newPosition.z  = 0.0f;
        beerPongInstance.transform.position = newPosition;
        cameraController.SetOrthographicSize(5.5f);
    }