コード例 #1
0
 public bool Initialize(ApolloBufferBase registerInfo)
 {
     ADebug.Log("ApolloPayService Initialize!");
     this.inited = true;
     byte[] array;
     registerInfo.Encode(out array);
     return(ApolloPayService.apollo_pay_Initialize(array, array.Length));
 }
コード例 #2
0
 public void Action(ApolloActionBufferBase info, ApolloActionDelegate callback)
 {
     if (info == null)
     {
         ADebug.LogError("PayService Action Info == null");
         return;
     }
     byte[] array;
     if (!info.Encode(out array))
     {
         ADebug.LogError("Action Encode error!");
         return;
     }
     if (this.actionCallbackCollection.ContainsKey(info.Action))
     {
         this.actionCallbackCollection[info.Action] = callback;
     }
     else
     {
         this.actionCallbackCollection.Add(info.Action, callback);
     }
     ApolloPayService.apollo_pay_action(array, array.Length);
 }
コード例 #3
0
 public bool Dipose()
 {
     this.inited = false;
     return(ApolloPayService.apollo_pay_Dipose());
 }
コード例 #4
0
 public bool Pay4Mounth(ApolloBufferBase pay4MountInfo)
 {
     byte[] array;
     pay4MountInfo.Encode(out array);
     return(this.inited && ApolloPayService.apollo_pay_Pay4Mounth(array, array.Length));
 }