Exemplo n.º 1
0
 private void EndGame()
 {
     roof.GroundClicked();
     panel.SetActive(false);
     gameWin.transform.GetChild(1).GetComponent <TextMesh>().text = "with " + totalPoints + " points";
     if (totalPoints == 0)
     {
         gameOver.SetActive(true);
     }
     else
     {
         gameWin.SetActive(true);
     }
 }
Exemplo n.º 2
0
    private void OnMouseDown()
    {
        mainCamera = Camera.main;

        mainCamera.orthographicSize   = 9.1f;
        mainCamera.transform.position = new Vector3(12, 29f, 9);
        mainCamera.transform.Rotate(90, 0, 0);

        GameController.gamePause = false;
        GameController.z++;

        roof.GroundClicked();

        if (VirusManager3.losePointOk)
        {
            gameController.UpdateScore(10);
        }

        Destroy(transform.parent.gameObject);
    }
Exemplo n.º 3
0
    public void OnMouseDown()
    {
        mainCamera = Camera.main;

        mainCamera.orthographicSize   = 9.1f;
        mainCamera.transform.position = new Vector3(12, 29f, 9);
        mainCamera.transform.Rotate(90, 0, 0);

        GameController.gamePause = false;
        GameController.z++;

        roof.GroundClicked();

        if (RepairManager.losePointOK)
        {
            gameController.UpdateScore(10);
            RepairManager.losePointOK = false;
        }

        Destroy(allRepair);
    }
Exemplo n.º 4
0
 public void OnPointerClick(PointerEventData data)
 {
     roof.GroundClicked();
 }