Beispiel #1
0
    public void Cost()
    {
        gameOver.SetActive(true);
        player.SetActive(false);
        Invoke("Invok", 0.5f);

        HightScore.HightCoin();
        HightScore.HightScoreCounter();
    }
Beispiel #2
0
 public void BackMenu()
 {
     activeEndPanel.SetActive(true);
     EndGame.coin  = cost;
     EndGame.two   = HudScr.scoreCounter;
     EndGame.three = HightScore.scoreHightCounter;
     Missions.SavedPlayerPrefs();
     HightScore.HightCoin();
     HightScore.HightScoreCounter();
     Exit();
 }
Beispiel #3
0
    public void Event()
    {
        HightScore.HightCoin();
        HightScore.HightScoreCounter();

        GameObject.FindGameObjectWithTag("VisibleMagnet").GetComponent <MagnetVisible>().StopMagn();

        MagnetVisible.magnetTest = false;
        player.SetActive(false);
        gameOver.SetActive(true);
        Invoke("Invok", 0.5f);
    }