コード例 #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");
    }