private void OnMouseDown() { mainCamera = Camera.main; mainCamera.orthographicSize = 9.1f; mainCamera.transform.position = new Vector3(12, 2.9f, 9); mainCamera.transform.Rotate(90, 0, 0); GameObject groundBackObject = GameObject.Find("GroundBack"); GroundBack groundBack = groundBackObject.GetComponent <GroundBack>(); groundBack.SetActiveAll(); GameController.gamePause = false; GameController.boolComputer1 = false; Destroy(allVirus); }
void OnMouseDown() { if (RoofsBool.cam == true) { mainCamera.orthographicSize = 1.8f; mainCamera.transform.position = new Vector3(16.01f, 5.3f, 1.56f); //mainCamera.rect = new Rect(2f, 5f, 1, 1); cam8 = false; RoofsBool.cam = false; } else if (RoofsBool.cam == false) { GameObject groundBackObject = GameObject.Find("GroundBack"); GroundBack groundBack = groundBackObject.GetComponent <GroundBack>(); groundBack.SetActiveAll(); mainCamera.orthographicSize = 9.1f; mainCamera.transform.position = new Vector3(12, 2.9f, 9); RoofsBool.cam = true; } }