Exemplo n.º 1
0
    void OnDismiss(bool dontAskAgain)
    {
        if (dontAskAgain)
        {
            SetEmailFlag();
        }
        SetVisibility(false);

        WebInterface.AnalyticsPayload.Property[] properties = new WebInterface.AnalyticsPayload.Property[] {
            new WebInterface.AnalyticsPayload.Property("notAgain", dontAskAgain? "true" : "false")
        };
        WebInterface.ReportAnalyticsEvent("skip email popup", properties);
    }
Exemplo n.º 2
0
    public void SetVisibility(bool visible)
    {
        if (visible)
        {
            Utils.UnlockCursor();
            view.gameObject.SetActive(true);
            view.showHideAnimator.Show();
            WebInterface.ReportAnalyticsEvent("open email popup");

            AudioScriptableObjects.fadeIn.Play(true);
        }
        else
        {
            view.showHideAnimator.Hide();

            AudioScriptableObjects.fadeOut.Play(true);
        }
    }
Exemplo n.º 3
0
 internal void SendToSegment(string eventName, Dictionary <string, string> data)
 {
     WebInterface.ReportAnalyticsEvent(eventName, data.Select(x => new WebInterface.AnalyticsPayload.Property(x.Key, x.Value)).ToArray());
 }