Beispiel #1
0
    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.A))
        {
            App42Analytics.TrackEvent("EVENT_SINGLE", null, OnTrackEventSuccess, OnTrackEventException);
//
        }
        if (Input.GetKeyDown(KeyCode.S))
        {
            Dictionary <string, object> properties = new Dictionary <string, object> ();
            properties.Add("gold", 555);
            App42Analytics.TrackEvent("EVENTPROPERTY", properties, OnTrackEventSuccess, OnTrackEventException);
        }
        if (Input.GetKeyDown(KeyCode.D))
        {
            App42Analytics.EnableSessionTracking(true);
        }
        if (Input.GetKeyDown(KeyCode.F))
        {
            App42Analytics.EnableSessionTracking(false);
        }
    }
Beispiel #2
0
 void OnDestroy()
 {
     App42Analytics.EnableSessionTracking(false);
 }