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); }
int OpenSnapApp(bool success) { if (success) { var snapApp = GameObject.Instantiate(Resources.Load("Prefabs/SnapApp") as GameObject); snapApp.transform.position = new Vector3( transform.position.x + 1.0f, transform.position.y + 0.4f, -5.0f); cameraController.PanToLocation(transform.position); cameraController.SetOrthographicSize(5.0f); ioController.DisableClicking(); ioController.DisableScrolling(); } return(0); }
public void RevertToNormal() { clickTimer = defaultClickBuffer; EnableScrolling(); cameraController.SetOrthographicSize(6.0f); }