Esempio n. 1
0
 public override void OnInspectorGUI()
 {
     base.OnInspectorGUI();
     if (GUILayout.Button(buttonText))
     {
         Mixpanel.ToggleSendInEditor(!Mixpanel.SendInEditor);
     }
 }
Esempio n. 2
0
    public override bool RunTest(out string feedback)
    {
        feedback = string.Empty;
//		try
//		{
        // Assume we're using mixpanel
        Mixpanel.ToggleSendInEditor(true);
        analytics.SendEvent(new AnalyticsEvent(
                                "Test Event",
                                new string[] { "Message" },
                                new string[] { "Hello World" }));
        Mixpanel.ToggleSendInEditor(false);
        return(true);
//		}
//		catch(System.Exception e)
//		{
//			UnityEngine.Debug.LogError(e);
//			return false;
//		}
    }