Beispiel #1
0
    void OnMouseDown()
    {
        if (fieldMover.IsPaused() || fieldMover.GetGameOver())
        {
            return;
        }
        GameObject currCell = transform.parent.gameObject;

        fieldProcs.SetCurrentCell(currCell);
        mouseDowned = true;
        tapTime     = 0;
        isFlagSet   = false;

        Vector3 pickpos = mainCamera.GetComponent <Camera>().ScreenToWorldPoint(Input.mousePosition);

        uiProcs.ShowWaiter(pickpos.x, pickpos.z, flagTime);
    }
Beispiel #2
0
 public void backButtonPress()
 {
     if (InfoWindow.activeSelf || ScoreWindow.activeSelf || HelpWindow.activeSelf || CustomGameWindow.activeSelf)
     {
         ScoreWindow.SetActive(false);
         InfoWindow.SetActive(false);
         HelpWindow.SetActive(false);
         CustomGameWindow.SetActive(false);
         MenuWindow.SetActive(true);
     }
     else
     {
         if (fieldMover.IsPaused())
         {
             pauseGame(false);
             MenuWindow.SetActive(false);
             TitlePanel.SetActive(false);
             AdMob.Show();
         }
     }
 }