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