Esempio n. 1
0
    void Awake()
    {
        manage = this;
        Amplitude amplitude = Amplitude.Instance;

        amplitude.logging = true;
        amplitude.init("8578eac3466937dd610b84480ff56bd8");
        PlayerPrefs.SetInt("AppActive", PlayerPrefs.GetInt("AppActive") + 1);
        if (PlayerPrefs.GetInt("FirstActive") == 0)
        {
            Amplitude.Instance.logEvent("AppOpen", FirstTime);
            Amplitude.Instance.logEvent("FirstTime");
            // MainMenuManager.manage.Soundtracks();
            PlayerPrefs.SetFloat("DriftCoin", PlayerPrefs.GetFloat("DriftCoin") + 10000f);
            PlayerPrefs.SetInt("citysingle", 1);
            PlayerPrefs.SetString("Player", "Player" + Random.Range(0, 9999));
            PlayerPrefs.SetInt("FirstActive", PlayerPrefs.GetInt("FirstActive") + 1);
            isFirstActivate = true;
        }

        if (LobbyManager.manage.isCityLoadingBtnClicked)
        {
            PlayerPrefs.SetInt("AppActivate", PlayerPrefs.GetInt("AppActivate") + 1);
        }
    }
Esempio n. 2
0
    void Awake()
    {
        Amplitude amplitude = Amplitude.Instance;

        amplitude.logging = true;
        amplitude.init("24124fc176fddaf8f13b157c1586cb32");
        manage = this;

        if (PlayerPrefs.GetInt("Install") == 0)
        {
            Amplitude.Instance.logEvent("AppOpen", FirstTime);
            PlayerPrefs.SetInt("Install", PlayerPrefs.GetInt("Install") + 1);
            isFirstActivate = true;
        }
    }