Beispiel #1
0
    public void Restart()
    {
        StarsList.Clear();
        stopTime      = 0;
        startstopTime = 0;

        curLife       = MaxLife;
        nullTime      = 0;
        flagHeadStars = false;
        scoreTime     = Time.time;
        addToLifeTime = Time.time;
        StopVodka();
        AddToLife(0, null);

        flagX2          = false;
        flagNotTwinkled = true;
        //simply set X
        SetMultiplier();

        SetMoney(GlobalOptions.GetLevelStartMoney());
        SetPoints(GlobalOptions.GetLevelStartPoints());
        pause.SetActive(true);

        GlobalOptions.GetMissionEmmitters().RestartActiveMissions();

        currentMissionsNotifierController.Restart();
        upNotifierController.Restart();
        boostNotifierController.Restart();
        downNotifierController.Restart();
        HeadStart.ResetTwinkling();
    }