Пример #1
0
    private void ConnectDone(string response = "")
    {
        Debug.Log("Connect complete: " + response);

        // Attempt to start a session.
        Debug.Log("Start a session...");
        glsdk.StartSession(StartSessionDone);

        // Send some basic events.
        Debug.Log("Saving Events...");
        for (int i = 1; i < 100; i++)
        {
            glsdk.AddTelemEventValue("string key", "asd");
            glsdk.AddTelemEventValue("int key", i);
            glsdk.AddTelemEventValue("float key", i * 1.23);

            glsdk.SaveTelemEvent("SampleEvent");

            Thread.Sleep(1);
        }
        Debug.Log("Done Saving Events");

        // Attempt to end the session.
        Debug.Log("End Session...");
        glsdk.EndSession(EndSessionDone);
    }
Пример #2
0
    private void LoginDone(string response)
    {
        Debug.Log("Login complete: " + response);

        // Attempt to start a session.
        Debug.Log("Start Session...");
        glsdk.StartSession(StartSessionDone);
    }