Ejemplo n.º 1
0
    private void OnMouseDown()
    {
        gc.IncreaseScore();
        GoToNewPosition();
        ChangeColor();
        m_audio.Play();
        starScript.SpawnStar();
        //   starScript.DestroyAllStars();
//        starScript.SpawnTriangle();
    }
Ejemplo n.º 2
0
    public void ResetGame()
    {
        current_score = 0;
        game_time     = (int)Time.time;
        end_time      = (int)Time.time + countdown;
        gameOver.gameObject.SetActive(false);
        resetButton.gameObject.SetActive(false);
//        star.gameObject.SetActive(true);
//      star.ResetPositionAndScale();
        timerStatus = true;
        destroyerOfWorlds.DestroyAllStars();
        destroyerOfWorlds.SpawnStar();
    }