Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     // Application Start event
     CSEventHandler.BasicEvent(
         GetSessionID(),
         GetUserID(),
         "ApplicationStart"
         );
 }
Ejemplo n.º 2
0
    // when the application quits this is called sending an event to the json event
    void OnApplicationQuit()
    {
        CSEventHandler.BasicDictionaryEvent(
            GetSessionID(),
            GetUserID(),
            "ApplicationExit",
            new Dictionary <string, object> {
            { "RunTime", Time.time }
        });

        Debug.Log("session quit");
    }