Exemplo n.º 1
0
    void Update()
    {
        if (this.detectSceneName)
        {
            this.sceneName = SceneManager.GetActiveScene().name;
        }

        if (loadInfo)
        {
            TelemetryCore.loadSessionsData("Users");
            loadInfo  = false;
            isReading = true;
        }

        if (isReading)
        {
            if (TelemetryCore.getSessionsData() != null)
            {
                clearData();
                setup(TelemetryCore.getSessionsData());
            }
            isReading = false;
        }

        if (draw)
        {
            clearScene();
            render();
            draw = false;
        }
    }
Exemplo n.º 2
0
    void Update()
    {
        if (loadInfo)
        {
            TelemetryCore.loadSessionsData("Users");
            loadInfo = false;
        }

        if (read)
        {
            if (TelemetryCore.getSessionsData() != null)
            {
                clear();
                setup(TelemetryCore.getSessionsData());
            }
            read = false;
        }
    }