private void trackEvent()
 {
     AnySDKAdTracking.getInstance().trackEvent("event_1", null);
     AnySDKAdTracking.getInstance().trackEvent("event_2", null);
     AnySDKAdTracking.getInstance().trackEvent("onCustEvent2", null);
     AnySDKAdTracking.getInstance().trackEvent("onCustEvent1", null);
 }
 /**
  * Call this method if you want to track custom events as happening during a section.
  */
 void trackEvent()
 {
     AnySDKAdTracking.getInstance().trackEvent("event_1");
     AnySDKAdTracking.getInstance().trackEvent("event_2");
     AnySDKAdTracking.getInstance().trackEvent("onCustEvent2");
     AnySDKAdTracking.getInstance().trackEvent("onCustEvent1");
 }
        private void onLogin()
        {
            Dictionary <string, string> dictionary = new Dictionary <string, string>();

            dictionary["User_Id"]   = "123456";
            dictionary["Role_Id"]   = "test";
            dictionary["Role_Name"] = "test";
            dictionary["Level"]     = "10";
            AnySDKAdTracking.getInstance().onLogin(dictionary);
        }
        private void onPay()
        {
            Dictionary <string, string> dictionary = new Dictionary <string, string>();

            dictionary["User_Id"]         = "123456";
            dictionary["Order_Id"]        = DateTime.Now.ToString();
            dictionary["Currency_Amount"] = "5";
            dictionary["Currency_Type"]   = "CNY";
            dictionary["Payment_Type"]    = "test";
            dictionary["Payment_Time"]    = DateTime.Now.ToString();
            AnySDKAdTracking.getInstance().onPay(dictionary);
        }
        private void onLevelUp()
        {
            if (!AnySDKAdTracking.getInstance().isFunctionSupported("onLevelUp"))
            {
                return;
            }
            Dictionary <string, string> dictionary = new Dictionary <string, string>();

            dictionary["User_Id"]   = "123456";
            dictionary["Role_Id"]   = "test";
            dictionary["Role_Name"] = "test";
            dictionary["Level"]     = "10";
            AnySDKAdTracking.getInstance().trackEvent("onLevelUp", dictionary);
            AnySDKAdTracking.getInstance().callFuncWithParam("onLevelUp", new AnySDKParam(dictionary));
        }
        /**
         * Call this method if you want to trackthe event of creating role as happening during a section.
         */
        void onCreateRole()
        {
            if (!AnySDKAdTracking.getInstance().isFunctionSupported("onStartToPay"))
            {
                return;
            }
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic["User_Id"]   = "123456";
            dic["Role_Id"]   = "test";
            dic["Role_Name"] = "test";
            dic["Level"]     = "10";
            AnySDKAdTracking.getInstance().trackEvent("onCreateRole", dic);
            AnySDKAdTracking.getInstance().callFuncWithParam("onCreateRole", new AnySDKParam(dic));
        }
        private void onStartToPay()
        {
            if (!AnySDKAdTracking.getInstance().isFunctionSupported("onStartToPay"))
            {
                return;
            }
            Dictionary <string, string> dictionary = new Dictionary <string, string>();

            dictionary["User_Id"]         = "123456";
            dictionary["Order_Id"]        = DateTime.Now.ToString();
            dictionary["Currency_Amount"] = "5";
            dictionary["Currency_Type"]   = "CNY";
            dictionary["Payment_Type"]    = "test";
            dictionary["Payment_Time"]    = DateTime.Now.ToString();
            AnySDKAdTracking.getInstance().trackEvent("onStartToPay", dictionary);
            AnySDKAdTracking.getInstance().callFuncWithParam("onStartToPay", new AnySDKParam(dictionary));
        }
 private void onRegister()
 {
     AnySDKAdTracking.getInstance().onRegister("user_unity");
 }