Exemplo n.º 1
0
 /// <summary>
 /// 充值统计
 /// </summary>
 /// <param name="cash">现金</param>
 /// <param name="platform">平台</param>
 /// <param name="value">价值</param>
 public static void PostPay(double cash, string platform, double value)
 {
     if (ILRDefine.USE_UMENG && !ILRDefine.UNITY_EDITOR)
     {
         Umeng.GA.PaySource platformCode = (Umeng.GA.PaySource)System.Enum.Parse(typeof(Umeng.GA.PaySource), platform);
         EB.Debug.Log("Pay cash = {0} value = {1} platform = {2} platformCode = {3}", cash, value, platform, platformCode);
         Umeng.GA.Pay(cash, platformCode, value);
     }
 }
Exemplo n.º 2
0
        static StackObject *Pay_2(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Double @coin = *(double *)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            Umeng.GA.PaySource @source = (Umeng.GA.PaySource) typeof(Umeng.GA.PaySource).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            System.Double @cash = *(double *)&ptr_of_this_method->Value;


            Umeng.GA.Pay(@cash, @source, @coin);

            return(__ret);
        }