Ejemplo n.º 1
0
    public void ShowLoseMassage()
    {
        isPlaying = false;

        PlayerPrefs.SetInt("HighScore", points);
        string beginning = "צברת " + points + "נקודות ";

        endText.text = beginning;
        endPanel.SetActive(true);

        spawner.StopSpawnAndClear();
    }
Ejemplo n.º 2
0
    public void ShowLoseMassage()
    {
        isPlaying = false;
        endTime   = Timer.timer;

        PlayerPrefs.SetInt("HighScore", points);
        string beginning = "צברת " + points + " נקודות ב " + Timer.SecondsToString((int)endTime) + " דקות";

        endText.text = beginning;
        endPanel.SetActive(true);

        Timer.ResetTimer();
        spawner.StopSpawnAndClear();
    }