Exemple #1
0
 public static void Emit(Countly.Event e)
 {
     Countly.Manager instance = Instance;
     if (instance != null)
     {
         instance.RecordEvent(e);
     }
 }
Exemple #2
0
    protected void Awake()
    {
        if ((_instance != this) && (_instance != null))
        {
            Log("Duplicate manager detected. Destroying...");
            Destroy(gameObject);
            return;
        }

        _instance = this;
        DontDestroyOnLoad(gameObject);
    }
Exemple #3
0
    public static new void Init(string appKey = null)
    {
        Countly.Manager instance = Instance;

        if (instance != null)
        {
            if (appKey == null)
            {
                appKey = instance.appKey;
            }
            instance.Init(appKey);
        }
    }
Exemple #4
0
    public static void Emit(string key, long count)
    {
        Countly.Manager instance = Instance;

        if (instance != null)
        {
            Countly.Event e = new Countly.Event();

            e.Key   = key;
            e.Count = count;

            instance.RecordEvent(e);
        }
    }
Exemple #5
0
    public static void Emit(string key, long count, Dictionary <string, string> segmentation)
    {
        Countly.Manager instance = Instance;

        if (instance != null)
        {
            Countly.Event e = new Countly.Event();

            e.Key          = key;
            e.Count        = count;
            e.Segmentation = segmentation;

            instance.RecordEvent(e);
        }
    }
    protected void Awake()
    {
        if ((_instance != this) && (_instance != null))
        {
          Log("Duplicate manager detected. Destroying...");
          Destroy(gameObject);
          return;
        }

        _instance = this;
        DontDestroyOnLoad(gameObject);
    }