Exemplo n.º 1
0
    private void Awake()
    {
        instance = this;

        const string projectId = "2c1f10e1-98fe-43b7-9e59-06ee70a3fe87";
        UnityAnalytics.StartSDK (projectId);
        DontDestroyOnLoad(gameObject);
    }
Exemplo n.º 2
0
    public static UnityAnalyticsIntegration Instance()
    {
        if(instance == null)
        {
            GameObject objTemp = new GameObject();
            objTemp.name = "[UNITY_ANALYTICS_INTEGRATION]";
            instance = objTemp.AddComponent<UnityAnalyticsIntegration>();
        }

        return instance;
    }