public void startClick_3()
 {
     _Manu.SetActive(false);
     _Player.SetActive(true);
     _GameLevel.SetActive(true);
     Player3.SetActive(true);
 }
 public void Start()
 {
     FindObjectOfType <AdManager>().RequestVideo();
     _Manu.SetActive(true);
     _Player.SetActive(false);
     _GameLevel.SetActive(false);
     Player1.SetActive(false);
     Player2.SetActive(false);
     Player3.SetActive(false);
 }
 public void Start()
 {
     Stats.SetActive(false);
     Player2.SetActive(false);
     Player3.SetActive(false);
     TimerReset();
     isRunning = false;
     sTime     = Time.time;
     endLev.SetActive(false);
     endTimerText.text = sTime.ToString("f0");
     highScore.text    = "High Score : " + ((int)PlayerPrefs.GetInt("HighScore_Low")).ToString();
 }
Ejemplo n.º 4
0
    public void OnBackPlayerButtonClick()
    {
        Player1.SetActive(false);
        Player2.SetActive(false);
        Player3.SetActive(false);
        Player4.SetActive(false);

        Player2Button.SetActive(true);
        Player3Button.SetActive(true);
        Player4Button.SetActive(true);

        MatchSelectButton.SetActive(false);
        BackPlayer.SetActive(false);
        BackMenu.SetActive(true);
        PlaySelectButton.SetActive(false);

        es.SetSelectedGameObject(Player2Button);
    }
Ejemplo n.º 5
0
    public void OnPlayer3Click()
    {
        GameData.AIs = new bool[3];
        Player2Button.SetActive(false);
        Player3Button.SetActive(false);
        Player4Button.SetActive(false);

        Player1.SetActive(true);
        Player2.SetActive(true);
        Player3.SetActive(true);

        BackPlayer.SetActive(true);
        BackMenu.SetActive(false);
        MatchSelectButton.SetActive(true);
        PlaySelectButton.SetActive(true);

        es.SetSelectedGameObject(Player1);
    }
    public void Update()
    {
        string Sc = sScore_Low.ToString("f0");

        score.text = Sc;

        sTime = stopTime + (Time.time - startTime);
        int min = (int)sTime / 60;
        int sec = (int)sTime % 60;

        if (isRunning)
        {
            timerText.text = min.ToString() + ":" + sec.ToString();
        }
        if (PlayerPrefs.GetInt("HexDead") > 40)
        {
            Player2.SetActive(true);
        }
        if (PlayerPrefs.GetInt("HexDead") > 100)
        {
            Player3.SetActive(true);
        }
        AchievementUpdate();
    }