18 lines
479 B
C#
18 lines
479 B
C#
using LightJSON;
|
|
using UbiServices;
|
|
using UnityEngine;
|
|
namespace Online
|
|
{
|
|
public class TrackingService
|
|
{
|
|
public void SendEvent(string name, JSON json)
|
|
{
|
|
OnlineEngine.Session.Refresh()
|
|
.Then(session =>
|
|
{
|
|
var eventData = new EventInfoCustom(name, JSON.Stringify(json));
|
|
session.UbiservicesFacade.getEventClient().pushEvent(eventData);
|
|
});
|
|
}
|
|
}
|
|
}
|