// Use this for initialization void Start() { // Application Start event CSEventHandler.BasicEvent( GetSessionID(), GetUserID(), "ApplicationStart" ); }
// 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"); }