예제 #1
0
    public void PlayerHasStopped()
    {
        inShopMode = true;
        shop.AddMoney(Mathf.RoundToInt(disttrac.score));
        analyticspass.ReportIn_NewDistPerRun((float)Mathf.RoundToInt(disttrac.score));
        analyticspass.ReportIn_HighestDistanceAchieved(Mathf.RoundToInt(disttrac.score));
        analyticspass.ReportIn_TotalTimeInRun(timeinrun);
        numofruns++;
        analyticspass.ReportIn_TotalNumberOfRuns(numofruns);

        shop.gameObject.SetActive(true);

        player.ResetForNewLaunch();
        disttrac.Reset();
        launcher.ResetForNextLaunch();
        //terrainscroll.enabled = false;
        player.gameObject.SetActive(false);
    }