Beispiel #1
0
        public static void PostEvents()
        {
            if (_ease == null)
            {
                _ease = GameObject.Find("EaseAnalytics").GetComponent <EaseSettings>();
            }

            if (_events.Count == 0)
            {
                return;
            }

            var payload = string.Format(
                "H\t {0}\t{1}\t{2}\t{3}\n{4}",
                JavaScriptStartTimeMilliseconds,
                "0",
                _ease.ApiKey,
                SessionID,
                string.Join("\n", _events.ToArray())
                );

            _events.Clear();

            var url = string.Format(
                @"{0}/client/{1}/events",
                _apiUrl,
                _ease.ExperienceID
                );

            var www = new WWW(url, Encoding.UTF8.GetBytes(payload));
            //StartCoroutine
            //yield return www;
            //var text = www.text;
            //Debug.Log( text );
        }
Beispiel #2
0
 void Awake()
 {
     _ease     = GameObject.Find("EaseAnalytics").GetComponent <EaseSettings>();
     _lookedAt = new List <RaycastHit>();
 }
Beispiel #3
0
 void Awake()
 {
     _ease = GameObject.Find("EaseAnalytics").GetComponent <EaseSettings>();
 }