Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        splashImage = gameObject.GetComponent <Image> ();
        DontDestroyOnLoad(this);

        googleAnalytics.StartSession();
        googleAnalytics.LogScreen("Splash");
        googleAnalytics.DispatchHits();
        //googleAnalytics.
    }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     if (isAnalyticsEnabled && googleAnalytics != null)
     {
         googleAnalytics.DispatchHits();
         googleAnalytics.StartSession();
     }
     else
     {
         googleAnalytics = null;
     }
 }
Beispiel #3
0
    public void gameOver(bool outOfMoves)
    {
        isGameOver = true;
        pauzeButtonScript.pauseNoMenu();
        pauzeButton.interactable = false;

        if (outOfMoves)
        {
            outOfMovesSprite.GetComponent <Renderer>().enabled = true;
        }
        else
        {
            gameOverSprite.GetComponent <Renderer>().enabled = true;
        }

        gameOverPanel.SetActive(true);
        int playerId = PlayerPrefs.GetInt("playerId");

        googleAnalytics.LogEvent("Level failed - " + getLevelManager().currentLevelIndex, "Player: " + playerId + ", level failed - " + getLevelManager().currentLevelIndex, "BecauseOutOfMoves: " + outOfMoves, 1);
        googleAnalytics.DispatchHits();
    }