void Start()
        {
            if (UnityEngine.XR.XRDevice.model == "Oculus Quest")
            {
                controllerRayCaster.RayCastEnabled = true;
                controllerRayCaster.EnableLineRenderer(true);
            }

            // once we have registered users we can use a better ID
            Mixpanel.Identify(getUniqueID());
            Mixpanel.People.Set("Headset", UnityEngine.XR.XRDevice.model);

            // set random name
            Mixpanel.People.SetOnce("$name", getRandomName());

            var props = new Value();

            props["Scene Name"] = SceneManager.GetActiveScene().name;
            Mixpanel.Track("Opened Scene", props);

            //Mixpanel.StartTimedEvent("App Session");

            if (PlayerPrefs.GetInt("hasEnteredWelcomeEmail") == 1)
            {
                feedbackPopup.SetActive(false);
            }
            else
            {
                feedbackPopup.SetActive(true);
            }

            TouchHaptics.Instance.VibrateFor(0.25f, 0.2f, 0.2f, OVRInput.Controller.Touch);
        }
示例#2
0
    private IEnumerator AccountDeletedInternal()
    {
        Mixpanel.Track("Account Deleted");

        System.Guid newGUID = System.Guid.NewGuid();
        yield return(SetUID(newGUID.ToString()));

        Mixpanel.Identify(m_analyticsData.m_uid);

        if (Debug.isDebugBuild)
        {
            Debug.Log("------- VREEL: Analytics.AccountDeleted(), and new Anonymous GUID set");
        }

        yield break;
    }
示例#3
0
        protected override void Awake()
        {
            Application.targetFrameRate = 60;
            Application.SetStackTraceLogType(LogType.Log, StackTraceLogType.None);
            base.Awake();
            _options = CommandLineOptions.Load(
                CommandLineOptionsJsonPath
                );

#if !UNITY_EDITOR
            // FIXME 이후 사용자가 원치 않으면 정보를 보내지 않게끔 해야 합니다.
            Mixpanel.SetToken("80a1e14b57d050536185c7459d45195a");

            if (!(_options.PrivateKey is null))
            {
                var     privateKey = new PrivateKey(ByteUtil.ParseHex(_options.PrivateKey));
                Address address    = privateKey.ToAddress();
                Mixpanel.Identify(address.ToString());
            }

            Mixpanel.Init();
            Mixpanel.Track("Unity/Started");
#endif

            if (_options.RpcClient)
            {
                Agent = GetComponent <RPCAgent>();
                SubscribeRPCAgent();
            }
            else
            {
                Agent = GetComponent <Agent>();
            }

            States     = new States();
            LocalLayer = new LocalLayer();
            MainCanvas.instance.InitializeIntro();

#if !UNITY_EDITOR
            var c = new CognitoAWSCredentials("ap-northeast-2:6fea0e84-a609-4774-a407-c63de9dbea7b",
                                              RegionEndpoint.APNortheast2);
            _logsClient = new AmazonCloudWatchLogsClient(c, RegionEndpoint.APNortheast2);
            Application.logMessageReceivedThreaded += UploadLog;
#endif
        }
示例#4
0
    private IEnumerator LoginSelectedInternal()
    {
        while (!m_user.IsLoggedIn())
        {
            yield return(null);
        }

        yield return(SetUID(m_user.m_id));

        Mixpanel.Identify(m_analyticsData.m_uid);

        Mixpanel.Track("Logged In");

        if (Debug.isDebugBuild)
        {
            Debug.Log("------- VREEL: Analytics.LoginSelectedInternal() Identify: " + m_analyticsData.m_uid);
        }
    }
示例#5
0
    private IEnumerator IdentifyInternal()
    {
        if (File.Exists(m_analyticsFilePath))
        {
            BinaryFormatter binaryFormatter = new BinaryFormatter();
            using (FileStream fileStream = File.Open(m_analyticsFilePath, FileMode.Open))
            {
                m_analyticsData = (AnalyticsData)binaryFormatter.Deserialize(fileStream);
            }

            Mixpanel.Identify(m_analyticsData.m_uid);
        }

        Mixpanel.Track("Opened App");

        if (Debug.isDebugBuild)
        {
            Debug.Log("------- VREEL: Analytics.IdentifyInternal() Identify: " + m_analyticsData.m_uid);
        }

        yield break;
    }
示例#6
0
        protected override void Awake()
        {
            Application.targetFrameRate = 60;
            Application.SetStackTraceLogType(LogType.Log, StackTraceLogType.None);
            base.Awake();
            _options = CommandLineOptions.Load(
                CommandLineOptionsJsonPath
                );

#if !UNITY_EDITOR
            // FIXME 이후 사용자가 원치 않으면 정보를 보내지 않게끔 해야 합니다.
            Mixpanel.SetToken("80a1e14b57d050536185c7459d45195a");

            if (!(_options.PrivateKey is null))
            {
                var     privateKey = new PrivateKey(ByteUtil.ParseHex(_options.PrivateKey));
                Address address    = privateKey.ToAddress();
                Mixpanel.Identify(address.ToString());
            }

            Mixpanel.Init();
            Mixpanel.Track("Unity/Started");
#endif

            if (_options.RpcClient)
            {
                Agent = GetComponent <RPCAgent>();
                SubscribeRPCAgent();
            }
            else
            {
                Agent = GetComponent <Agent>();
            }

            States     = new States();
            LocalLayer = new LocalLayer();
            MainCanvas.instance.InitializeIntro();
        }
示例#7
0
 // Start is called before the first frame update
 void Start()
 {
     StartCoroutine(CheckInternetConnection());
     Mixpanel.Identify("some-random-user");
 }
示例#8
0
 public void Login()
 {
     Mixpanel.Identify(input.text);
     MakeEventDeleyed("Login");
 }
 /// <summary>
 /// Activate account tracking
 /// </summary>
 /// <param name="id">account id</param>
 public override void Identify(string id)
 {
     Mixpanel.Identify(id);
 }