jet 8 gadi atpakaļ
vecāks
revīzija
9fef192fe8
76 mainītis faili ar 108 papildinājumiem un 1715 dzēšanām
  1. 0 24
      Assets/Editor/EdTest.cs
  2. 0 12
      Assets/Editor/EdTest.cs.meta
  3. 1 1
      Assets/Plugins/AlipayLib.meta
  4. 0 0
      Assets/Plugins/AlipayLib/alipaySdk-20170710.jar
  5. 24 0
      Assets/Plugins/AlipayLib/alipaySdk-20170710.jar.meta
  6. BIN
      Assets/Plugins/AlipayLib/unitytool.jar
  7. 24 0
      Assets/Plugins/AlipayLib/unitytool.jar.meta
  8. 0 8
      Assets/Plugins/Android/AlipayLib/alipaySdk-20170710.jar.meta
  9. 0 8
      Assets/Plugins/Android/AlipayLib/unitytool.jar.meta
  10. 0 35
      Assets/Plugins/Android/AndroidManifest.xml
  11. 0 6
      Assets/Plugins/Android/AndroidManifest.xml.meta
  12. 0 9
      Assets/Plugins/Android/libs/armeabi-v7a.meta
  13. BIN
      Assets/Plugins/Android/libs/armeabi-v7a/libPluginProtocol.so
  14. 0 6
      Assets/Plugins/Android/libs/armeabi-v7a/libPluginProtocol.so.meta
  15. BIN
      Assets/Plugins/Android/libs/libPluginProtocolForUnity_fat.jar
  16. 0 6
      Assets/Plugins/Android/libs/libPluginProtocolForUnity_fat.jar.meta
  17. 0 9
      Assets/Plugins/Android/libs/x86.meta
  18. BIN
      Assets/Plugins/Android/libs/x86/libPluginProtocol.so
  19. 0 6
      Assets/Plugins/Android/libs/x86/libPluginProtocol.so.meta
  20. 0 9
      Assets/Plugins/Android/res/anim.meta
  21. 0 6
      Assets/Plugins/Android/res/anim/plugin_fade_in.xml
  22. 0 6
      Assets/Plugins/Android/res/anim/plugin_fade_in.xml.meta
  23. 0 6
      Assets/Plugins/Android/res/anim/plugin_fade_out.xml
  24. 0 6
      Assets/Plugins/Android/res/anim/plugin_fade_out.xml.meta
  25. 0 9
      Assets/Plugins/Android/res/drawable.meta
  26. BIN
      Assets/Plugins/Android/res/drawable/plugin_btn_close.png
  27. 0 6
      Assets/Plugins/Android/res/drawable/plugin_btn_close.png.meta
  28. BIN
      Assets/Plugins/Android/res/drawable/plugin_ui_ad.png
  29. 0 6
      Assets/Plugins/Android/res/drawable/plugin_ui_ad.png.meta
  30. 0 9
      Assets/Plugins/Android/res/layout.meta
  31. 0 24
      Assets/Plugins/Android/res/layout/plugin_ads.xml
  32. 0 6
      Assets/Plugins/Android/res/layout/plugin_ads.xml.meta
  33. 0 62
      Assets/Plugins/Android/res/layout/plugin_login.xml
  34. 0 6
      Assets/Plugins/Android/res/layout/plugin_login.xml.meta
  35. 0 9
      Assets/Plugins/Android/res/values-en.meta
  36. 0 29
      Assets/Plugins/Android/res/values-en/plugin_string.xml
  37. 0 6
      Assets/Plugins/Android/res/values-en/plugin_string.xml.meta
  38. 0 28
      Assets/Plugins/Android/res/values/plugin_string.xml
  39. 0 6
      Assets/Plugins/Android/res/values/plugin_string.xml.meta
  40. 0 13
      Assets/Plugins/Android/res/values/plugin_style.xml
  41. 0 6
      Assets/Plugins/Android/res/values/plugin_style.xml.meta
  42. 0 9
      Assets/Plugins/script.meta
  43. BIN
      Assets/Plugins/script/AnySDK.cs
  44. 0 10
      Assets/Plugins/script/AnySDK.cs.meta
  45. BIN
      Assets/Plugins/script/AnySDKAdTracking.cs
  46. 0 10
      Assets/Plugins/script/AnySDKAdTracking.cs.meta
  47. BIN
      Assets/Plugins/script/AnySDKAds.cs
  48. 0 10
      Assets/Plugins/script/AnySDKAds.cs.meta
  49. BIN
      Assets/Plugins/script/AnySDKAnalytics.cs
  50. 0 10
      Assets/Plugins/script/AnySDKAnalytics.cs.meta
  51. BIN
      Assets/Plugins/script/AnySDKCrash.cs
  52. 0 10
      Assets/Plugins/script/AnySDKCrash.cs.meta
  53. 0 350
      Assets/Plugins/script/AnySDKCustom.cs
  54. 0 10
      Assets/Plugins/script/AnySDKCustom.cs.meta
  55. BIN
      Assets/Plugins/script/AnySDKIAP.cs
  56. 0 10
      Assets/Plugins/script/AnySDKIAP.cs.meta
  57. BIN
      Assets/Plugins/script/AnySDKParam.cs
  58. 0 10
      Assets/Plugins/script/AnySDKParam.cs.meta
  59. BIN
      Assets/Plugins/script/AnySDKPush.cs
  60. 0 10
      Assets/Plugins/script/AnySDKPush.cs.meta
  61. 0 414
      Assets/Plugins/script/AnySDKREC.cs
  62. 0 10
      Assets/Plugins/script/AnySDKREC.cs.meta
  63. 0 375
      Assets/Plugins/script/AnySDKShare.cs
  64. 0 10
      Assets/Plugins/script/AnySDKShare.cs.meta
  65. BIN
      Assets/Plugins/script/AnySDKSocial.cs
  66. 0 10
      Assets/Plugins/script/AnySDKSocial.cs.meta
  67. BIN
      Assets/Plugins/script/AnySDKUser.cs
  68. 0 10
      Assets/Plugins/script/AnySDKUser.cs.meta
  69. BIN
      Assets/Plugins/script/AnySDKUtil.cs
  70. 0 10
      Assets/Plugins/script/AnySDKUtil.cs.meta
  71. 14 0
      Assets/Script/Manage/ManaServer.cs
  72. 9 7
      Assets/Script/ThirdParty/Alipay/AlipayManager.cs
  73. 34 2
      Assets/Script/Tool/Auxiliary.cs
  74. 2 2
      Assets/Script/Tool/DashGame/URLRequest.cs
  75. 0 16
      Assets/Test.cs
  76. 0 12
      Assets/Test.cs.meta

+ 0 - 24
Assets/Editor/EdTest.cs

@@ -1,24 +0,0 @@
-using UnityEditor;
-using UnityEngine;
-
-using System.Collections;
-using System.Collections.Generic;
-
-[CustomEditor(typeof(Test))]
-public class EdTest : Editor
-{
-    public override void OnInspectorGUI()
-    {
-        base.OnInspectorGUI();
-
-        if (GUILayout.Button("Show"))
-        {
-            EditorUtility.DisplayProgressBar("Test", "Info", 0.5f);
-        }
-
-        if (GUILayout.Button("Test"))
-        {
-            EditorUtility.ClearProgressBar();
-        }
-    }
-}

+ 0 - 12
Assets/Editor/EdTest.cs.meta

@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 7154c58f8232b3a4d9d3eb7b781dc5ff
-timeCreated: 1501469813
-licenseType: Pro
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 1 - 1
Assets/Plugins/Android/AlipayLib.meta → Assets/Plugins/AlipayLib.meta

@@ -1,7 +1,7 @@
 fileFormatVersion: 2
 guid: 2258b6720ff3c014e90f2fb63647e0af
 folderAsset: yes
-timeCreated: 1501233661
+timeCreated: 1501493180
 licenseType: Pro
 PluginImporter:
   serializedVersion: 1

+ 0 - 0
Assets/Plugins/Android/AlipayLib/alipaySdk-20170710.jar → Assets/Plugins/AlipayLib/alipaySdk-20170710.jar


+ 24 - 0
Assets/Plugins/AlipayLib/alipaySdk-20170710.jar.meta

@@ -0,0 +1,24 @@
+fileFormatVersion: 2
+guid: 86cfd88d295982941bd87bfee0abc49c
+timeCreated: 1501233694
+licenseType: Pro
+PluginImporter:
+  serializedVersion: 1
+  iconMap: {}
+  executionOrder: {}
+  isPreloaded: 0
+  isOverridable: 0
+  platformData:
+    Android:
+      enabled: 1
+      settings: {}
+    Any:
+      enabled: 0
+      settings: {}
+    Editor:
+      enabled: 0
+      settings:
+        DefaultValueInitialized: true
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

BIN
Assets/Plugins/Android/AlipayLib/unitytool.jar → Assets/Plugins/AlipayLib/unitytool.jar


+ 24 - 0
Assets/Plugins/AlipayLib/unitytool.jar.meta

@@ -0,0 +1,24 @@
+fileFormatVersion: 2
+guid: 62204b2b074864a40b3bd1994d7f086d
+timeCreated: 1501233694
+licenseType: Pro
+PluginImporter:
+  serializedVersion: 1
+  iconMap: {}
+  executionOrder: {}
+  isPreloaded: 0
+  isOverridable: 0
+  platformData:
+    Android:
+      enabled: 1
+      settings: {}
+    Any:
+      enabled: 0
+      settings: {}
+    Editor:
+      enabled: 0
+      settings:
+        DefaultValueInitialized: true
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 0 - 8
Assets/Plugins/Android/AlipayLib/alipaySdk-20170710.jar.meta

@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 86cfd88d295982941bd87bfee0abc49c
-timeCreated: 1501233694
-licenseType: Pro
-DefaultImporter:
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 8
Assets/Plugins/Android/AlipayLib/unitytool.jar.meta

@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 62204b2b074864a40b3bd1994d7f086d
-timeCreated: 1501233694
-licenseType: Pro
-DefaultImporter:
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 35
Assets/Plugins/Android/AndroidManifest.xml

@@ -1,35 +0,0 @@
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
-    package="com.anysdk.framework.unity"
-    android:versionCode="1"
-    android:versionName="1.0" >
-
-    <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="24" />
-	<uses-permission android:name="android.permission.INTERNET" />
-	<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
-	<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
-	<uses-permission android:name="android.permission.RESTART_PACKAGES" />
-	<uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" />
-    <!-- oneway ads -->
-    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
-	<application
-        android:allowBackup="true"
-        android:label="@string/app_name">
-        <activity
-            android:name="com.anysdk.framework.unity.AnySDKActivity"
-            android:theme="@style/plugin_anim_fade"
-            android:configChanges="orientation|keyboardHidden|screenSize"
-            android:screenOrientation="landscape">
-          <intent-filter>
-                <action android:name="android.intent.action.MAIN" />
-                <category android:name="android.intent.category.LAUNCHER" />
-            </intent-filter>
-        </activity>
-
-        <!-- oneway ads -->
-        <activity     
-            android:name="mobi.oneway.sdk.AdShowActivity"
-            android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"
-            android:hardwareAccelerated="true"
-            android:theme="@android:style/Theme.NoTitleBar.Fullscreen" />
-    </application>
-</manifest>

+ 0 - 6
Assets/Plugins/Android/AndroidManifest.xml.meta

@@ -1,6 +0,0 @@
-fileFormatVersion: 2
-guid: 73f0f5e8e888a43b8899eacd6b65f06b
-TextScriptImporter:
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 9
Assets/Plugins/Android/libs/armeabi-v7a.meta

@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 78ea3451281f64e4faa720dc3011421d
-folderAsset: yes
-timeCreated: 1500971617
-licenseType: Pro
-DefaultImporter:
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

BIN
Assets/Plugins/Android/libs/armeabi-v7a/libPluginProtocol.so


+ 0 - 6
Assets/Plugins/Android/libs/armeabi-v7a/libPluginProtocol.so.meta

@@ -1,6 +0,0 @@
-fileFormatVersion: 2
-guid: 42b702d98dfba4ac7be207d7e345c7af
-DefaultImporter:
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

BIN
Assets/Plugins/Android/libs/libPluginProtocolForUnity_fat.jar


+ 0 - 6
Assets/Plugins/Android/libs/libPluginProtocolForUnity_fat.jar.meta

@@ -1,6 +0,0 @@
-fileFormatVersion: 2
-guid: 4b89d2e8bbc7b4809adfe8805bb59e33
-DefaultImporter:
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 9
Assets/Plugins/Android/libs/x86.meta

@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 7df510efb1d411c418731d4b1c267f0b
-folderAsset: yes
-timeCreated: 1500971617
-licenseType: Pro
-DefaultImporter:
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

BIN
Assets/Plugins/Android/libs/x86/libPluginProtocol.so


+ 0 - 6
Assets/Plugins/Android/libs/x86/libPluginProtocol.so.meta

@@ -1,6 +0,0 @@
-fileFormatVersion: 2
-guid: 564dbe869da2f4666b023ce53f92fe8a
-DefaultImporter:
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 9
Assets/Plugins/Android/res/anim.meta

@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 4b5462a00a930e14d81442d24b953f4d
-folderAsset: yes
-timeCreated: 1500972409
-licenseType: Pro
-DefaultImporter:
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 6
Assets/Plugins/Android/res/anim/plugin_fade_in.xml

@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>  
-<alpha xmlns:android="http://schemas.android.com/apk/res/android"  
-    android:duration="300"  
-    android:fromAlpha="0.0"  
-    android:interpolator="@android:anim/accelerate_interpolator"  
-    android:toAlpha="1.0" />

+ 0 - 6
Assets/Plugins/Android/res/anim/plugin_fade_in.xml.meta

@@ -1,6 +0,0 @@
-fileFormatVersion: 2
-guid: cad574052044940d5a7ccbd0577ac87d
-DefaultImporter:
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 6
Assets/Plugins/Android/res/anim/plugin_fade_out.xml

@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>  
-<alpha xmlns:android="http://schemas.android.com/apk/res/android"  
-    android:duration="300"  
-    android:fromAlpha="1.0"  
-    android:interpolator="@android:anim/accelerate_interpolator"  
-    android:toAlpha="0.0" /> 

+ 0 - 6
Assets/Plugins/Android/res/anim/plugin_fade_out.xml.meta

@@ -1,6 +0,0 @@
-fileFormatVersion: 2
-guid: ad9a672da5e254f54b0d6222804ad4bf
-DefaultImporter:
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 9
Assets/Plugins/Android/res/drawable.meta

@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 0ccc5a1c28cb1b84ca9b4a697290fc7a
-folderAsset: yes
-timeCreated: 1500972409
-licenseType: Pro
-DefaultImporter:
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

BIN
Assets/Plugins/Android/res/drawable/plugin_btn_close.png


+ 0 - 6
Assets/Plugins/Android/res/drawable/plugin_btn_close.png.meta

@@ -1,6 +0,0 @@
-fileFormatVersion: 2
-guid: dfedbe36ff3f14577a58a7b2089d57a2
-DefaultImporter:
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

BIN
Assets/Plugins/Android/res/drawable/plugin_ui_ad.png


+ 0 - 6
Assets/Plugins/Android/res/drawable/plugin_ui_ad.png.meta

@@ -1,6 +0,0 @@
-fileFormatVersion: 2
-guid: a391ab6ddc672435da579c6a53b09d9a
-DefaultImporter:
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 9
Assets/Plugins/Android/res/layout.meta

@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: f930aaa345c6ebb4cac39d21c9c8a743
-folderAsset: yes
-timeCreated: 1500972409
-licenseType: Pro
-DefaultImporter:
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 24
Assets/Plugins/Android/res/layout/plugin_ads.xml

@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
-    android:layout_width="fill_parent"
-    android:layout_height="fill_parent"
-    android:orientation="vertical" >
-    <ImageView
-        android:id="@+id/plugin_image_ad"
-        android:layout_width="fill_parent"
-        android:layout_height="fill_parent"
-        android:layout_alignParentLeft="true"
-        android:layout_alignParentTop="true"
-        android:src="@drawable/plugin_ui_ad" />
-
-    <ImageButton
-        android:id="@+id/plugin_image_close"
-        android:layout_width="20dip"
-        android:layout_height="20dip"
-        android:layout_alignParentRight="true"
-        android:layout_alignParentTop="true"
-        android:src="@drawable/plugin_btn_close" />
-
- 
-
-</RelativeLayout>

+ 0 - 6
Assets/Plugins/Android/res/layout/plugin_ads.xml.meta

@@ -1,6 +0,0 @@
-fileFormatVersion: 2
-guid: c48dfb95c2ca3491cb49db8ce9b588e1
-DefaultImporter:
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 62
Assets/Plugins/Android/res/layout/plugin_login.xml

@@ -1,62 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<RelativeLayout
-  xmlns:android="http://schemas.android.com/apk/res/android"
-   android:layout_width="fill_parent"
-   android:layout_height="fill_parent">
-    
-
-   
-   
-   <TextView
-      android:id="@+id/username"
-      android:layout_height="50dp"
-      android:layout_width="80dp"
-      android:text="@string/plugin_login_account"
-      android:layout_alignParentLeft="true"
-      android:layout_alignParentTop="true"
-      android:textSize="18sp"
-      android:gravity="center" 
-      android:textColor="#ffffff"/>
-
-   <EditText
-       android:id="@+id/txt_username"
-       android:layout_width="wrap_content"
-       android:layout_height="wrap_content" 
-       android:inputType="text"
-       android:layout_toRightOf="@id/username"
-       android:layout_alignParentRight="true"/>
-   
-    <TextView
-        android:id="@+id/password"
-        android:layout_width="80dp"
-        android:layout_height="50dp"
-        android:gravity="center"
-        android:layout_alignParentLeft="true"
-        android:text="@string/plugin_login_password" 
-        android:layout_below="@id/username"
-        android:textSize="18sp"
-        android:textColor="#ffffff"/>
-
-    <EditText
-        android:id="@+id/txt_password"
-        android:layout_width="wrap_content"
-        android:layout_height="wrap_content"
-        android:inputType="textPassword"
-        android:layout_alignParentRight="true"
-        android:layout_toRightOf="@id/password"
-        android:layout_below="@id/txt_username"/>
-    
-    <TextView
-        android:id="@+id/tips"
-        android:layout_width="wrap_content"
-        android:layout_height= "25dp"
-        android:layout_alignParentRight="true"
-        android:text="@string/plugin_tips" 
-        android:layout_below="@id/password"
-        android:textSize="18sp"
-        android:textColor="#ffffff"/>
-        
-
-   
-     
-</RelativeLayout>

+ 0 - 6
Assets/Plugins/Android/res/layout/plugin_login.xml.meta

@@ -1,6 +0,0 @@
-fileFormatVersion: 2
-guid: d2a74f5e308aa4577905893c0084e886
-DefaultImporter:
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 9
Assets/Plugins/Android/res/values-en.meta

@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 24c8b081f14d5c94181c6bcefa5f7dc7
-folderAsset: yes
-timeCreated: 1500971868
-licenseType: Pro
-DefaultImporter:
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 29
Assets/Plugins/Android/res/values-en/plugin_string.xml

@@ -1,29 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
-    <string name="plugin_login_title">Account login</string>
-    <string name="plugin_login_account">Account</string>
-    <string name="plugin_login_password">Password</string>
-    <string name="plugin_login">Login</string>
-    <string name="plugin_cancel">Cancel</string>
-    <string name="plugin_pay_content">Do you confirm the payment?</string>
-    <string name="plugin_pay">Pay</string>
-    <string name="plugin_rank">Rank</string>
-    <string name="plugin_achievement">Achievement</string>
-    <string name="plugin_center">Platform center</string>
-    <string name="plugin_showTool">Show toolbar</string>
-    <string name="plugin_hideTool">Hide toolbar</string>
-    <string name="plugin_realNameRegister">Real-name registration</string>
-    <string name="plugin_antiAddictionQuery">Anti-addiction query</string>
-    <string name="plugin_exit">Exit</string>
-    <string name="plugin_pause">Pause the game</string>
-    <string name="plugin_sure">Confirm</string>
-    <string name="plugin_accountSwitch">Switch account</string>
-    <string name="plugin_logout">Logout</string>
-    <string name="plugin_submitLoginGameRole">Submit the role information</string>
-    <string name="plugin_tips">Test mode, not for official release!</string>
-    <string name="plugin_waiting">Just a moment please</string>
-    <string name="plugin_data">Data is communication</string>
-    
-    
-    
-</resources>

+ 0 - 6
Assets/Plugins/Android/res/values-en/plugin_string.xml.meta

@@ -1,6 +0,0 @@
-fileFormatVersion: 2
-guid: cd4e89af5f07048cebac8e63d84694b1
-DefaultImporter:
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 28
Assets/Plugins/Android/res/values/plugin_string.xml

@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
-    <string name="plugin_login_title">账号登陆</string>
-    <string name="plugin_login_account">账号</string>
-    <string name="plugin_login_password">密码</string>
-    <string name="plugin_login">登陆</string>
-    <string name="plugin_cancel">取消</string>
-    <string name="plugin_pay_content">是否确认支付?</string>
-    <string name="plugin_pay">支付</string>
-    <string name="plugin_rank">排行榜</string>
-    <string name="plugin_achievement">成就榜</string>
-    <string name="plugin_center">平台中心</string>
-    <string name="plugin_showTool">工具栏</string>
-    <string name="plugin_hideTool">隐藏工具栏</string>
-    <string name="plugin_realNameRegister">实名注册</string>
-    <string name="plugin_antiAddictionQuery">防沉迷查询</string>
-    <string name="plugin_exit">退出</string>
-    <string name="plugin_pause">暂停游戏</string>
-    <string name="plugin_sure">确认</string>
-    <string name="plugin_accountSwitch">切换账号</string>
-    <string name="plugin_logout">登出</string>
-    <string name="plugin_submitLoginGameRole">提交角色信息</string>
-    <string name="plugin_tips">测试模式,不能用于渠道发布</string>
-    <string name="plugin_waiting">请稍等</string>
-    <string name="plugin_data">数据通信中...</string>
-    
-    
-</resources>

+ 0 - 6
Assets/Plugins/Android/res/values/plugin_string.xml.meta

@@ -1,6 +0,0 @@
-fileFormatVersion: 2
-guid: e62769bea649544e2b3b25ba3f399e45
-DefaultImporter:
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 13
Assets/Plugins/Android/res/values/plugin_style.xml

@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?> 
-<resources> 
-    <style name="plugin_anim_fade" parent="android:Theme.NoTitleBar.Fullscreen">  
-       <item name="android:windowAnimationStyle">@style/plugin_fade</item>  
-   </style>  
-  
-   <style name="plugin_fade" parent="@android:style/Animation.Activity">  
-       <item name="android:activityOpenEnterAnimation">@anim/plugin_fade_in</item>  
-       <item name="android:activityOpenExitAnimation">@anim/plugin_fade_out</item>  
-       <item name="android:activityCloseEnterAnimation">@anim/plugin_fade_in</item>  
-       <item name="android:activityCloseExitAnimation">@anim/plugin_fade_out</item>  
-   </style> 
-</resources>

+ 0 - 6
Assets/Plugins/Android/res/values/plugin_style.xml.meta

@@ -1,6 +0,0 @@
-fileFormatVersion: 2
-guid: 651b91f44d0ca4f80b0b47f8cae3323c
-DefaultImporter:
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 9
Assets/Plugins/script.meta

@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 48109d42b75d09840bd75b6ca07ea7d7
-folderAsset: yes
-timeCreated: 1500971617
-licenseType: Pro
-DefaultImporter:
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

BIN
Assets/Plugins/script/AnySDK.cs


+ 0 - 10
Assets/Plugins/script/AnySDK.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 2e26038bf205e4c619f3c88ee79318bb
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

BIN
Assets/Plugins/script/AnySDKAdTracking.cs


+ 0 - 10
Assets/Plugins/script/AnySDKAdTracking.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 297914093d6fc43639e2ce3b2b070eb1
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

BIN
Assets/Plugins/script/AnySDKAds.cs


+ 0 - 10
Assets/Plugins/script/AnySDKAds.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 9272981ac409d4a789e54bad812f726a
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

BIN
Assets/Plugins/script/AnySDKAnalytics.cs


+ 0 - 10
Assets/Plugins/script/AnySDKAnalytics.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 179d90b4c9e5e4d19a1a909e30be2cf5
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

BIN
Assets/Plugins/script/AnySDKCrash.cs


+ 0 - 10
Assets/Plugins/script/AnySDKCrash.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 0ebd515b1a2c343249b181c3d1df5395
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 350
Assets/Plugins/script/AnySDKCustom.cs

@@ -1,350 +0,0 @@
-using UnityEngine;
-using System.Collections;
-using System.Collections.Generic;
-using System.Runtime.InteropServices;
-using System.Text;
-using System;
-
-namespace anysdk {
-	public enum CustomResultCode
-	{
-		kCustomExtension = 80000 /**< enum value is  extension code . */
-	};
-	public class AnySDKCustom
-	{
-
-		private static AnySDKCustom _instance;
-		
-		public static AnySDKCustom getInstance() {
-			if( null == _instance ) {
-				_instance = new AnySDKCustom();
-			}
-			return _instance;
-		}
-
-
-		/**
-     	@brief Check function the plugin support or not
-     	*/
-		
-		public  bool  isFunctionSupported (string functionName)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			return AnySDKCustom_nativeIsFunctionSupported (functionName);
-#else
-			Debug.Log("This platform does not support!");
-			return false;
-#endif
-		}
-
-		/**
-		 * set debugmode for plugin
-		 * 
-		 */
-		[Obsolete("This interface is obsolete!",false)]
-		public  void setDebugMode(bool bDebug)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			AnySDKCustom_nativeSetDebugMode (bDebug);
-#else
-			Debug.Log("This platform does not support!");
-#endif
-		}
-
-		/**
-    	 @brief set pListener The callback object for share result
-    	 @param the MonoBehaviour object
-    	 @param the callback of function
-    	 */
-
-		public  void setListener(MonoBehaviour gameObject,string functionName)
-		{
-#if !UNITY_EDITOR && UNITY_ANDROID
-			AnySDKUtil.registerActionCallback (AnySDKType.Custom, gameObject, functionName);
-#elif !UNITY_EDITOR && UNITY_IOS
-			string gameObjectName = gameObject.gameObject.name;
-			AnySDKCustom_nativeSetListener(gameObjectName,functionName);
-#else
-			Debug.Log("This platform does not support!");
-#endif
-		}
-
-		/**
-		 * Get Plugin version
-		 * 
-		 * @return string
-	 	*/
-		public  string getPluginVersion()
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			StringBuilder version = new StringBuilder();
-			version.Capacity = AnySDKUtil.MAX_CAPACITY_NUM;
-			AnySDKCustom_nativeGetPluginVersion (version);
-			return version.ToString();
-#else
-			Debug.Log("This platform does not support!");
-			return "";
-#endif
-		}
-
-		
-		/**
-		 * Get SDK version
-		 * 
-		 * @return string
-	 	*/
-		public  string getSDKVersion()
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			StringBuilder version = new StringBuilder();
-			version.Capacity = AnySDKUtil.MAX_CAPACITY_NUM;
-			AnySDKCustom_nativeGetSDKVersion (version);
-			return version.ToString();
-#else
-			Debug.Log("This platform does not support!");
-			return "";
-#endif
-		}
-
-		/**
-    	 *@brief methods for reflections
-   	 	 *@param function name
-   		 *@param AnySDKParam param 
-    	 *@return void
-    	 */
-		
-		public  void callFuncWithParam(string functionName, AnySDKParam param)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS)  
-			List<AnySDKParam> list = new List<AnySDKParam> ();
-			list.Add (param);
-			AnySDKCustom_nativeCallFuncWithParam(functionName, list.ToArray(),list.Count);
-#else
-			Debug.Log("This platform does not support!");
-#endif
-		}
-
-		/**
-    	 *@brief methods for reflections
-   	 	 *@param function name
-   		 *@param List<AnySDKParam param 
-    	 *@return void
-    	 */
-		public  void callFuncWithParam(string functionName, List<AnySDKParam> param = null)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			if (param == null) 
-			{
-				AnySDKCustom_nativeCallFuncWithParam (functionName, null, 0);
-				
-			} else {
-				AnySDKCustom_nativeCallFuncWithParam (functionName, param.ToArray (), param.Count);
-			}
-#else
-			Debug.Log("This platform does not support!");
-#endif
-		}
-
-		/**
-    	 *@brief methods for reflections
-   	 	 *@param function name
-   		 *@param AnySDKParam param 
-    	 *@return int
-    	 */
-		public  int callIntFuncWithParam(string functionName, AnySDKParam param)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS)  
-			List<AnySDKParam> list = new List<AnySDKParam> ();
-			list.Add (param);
-			return AnySDKCustom_nativeCallIntFuncWithParam(functionName, list.ToArray(),list.Count);
-#else
-			Debug.Log("This platform does not support!");
-			return -1;
-#endif
-		}
-
-		/**
-    	 *@brief methods for reflections
-   	 	 *@param function name
-   		 *@param List<AnySDKParam param 
-    	 *@return int
-    	 */
-		public  int  callIntFuncWithParam(string functionName, List<AnySDKParam> param = null)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS)  
-			if (param == null)
-			{
-				return AnySDKCustom_nativeCallIntFuncWithParam (functionName, null, 0);
-				
-			} else {
-				return AnySDKCustom_nativeCallIntFuncWithParam (functionName, param.ToArray (), param.Count);
-			}
-#else
-			Debug.Log("This platform does not support!");
-			return -1;
-#endif
-		}
-
-		/**
-    	 *@brief methods for reflections
-   	 	 *@param function name
-   		 *@param AnySDKParam param 
-    	 *@return float
-    	 */
-		public  float callFloatFuncWithParam(string functionName, AnySDKParam param)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			List<AnySDKParam> list = new List<AnySDKParam> ();
-			list.Add (param);
-			return AnySDKCustom_nativeCallFloatFuncWithParam(functionName, list.ToArray(),list.Count);
-#else
-			Debug.Log("This platform does not support!");
-			return 0;
-#endif
-		}
-
-		/**
-    	 *@brief methods for reflections
-   	 	 *@param function name
-   		 *@param List<AnySDKParam param 
-    	 *@return float
-    	 */
-		public  float callFloatFuncWithParam(string functionName, List<AnySDKParam> param = null)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			if (param == null)
-			{
-				return AnySDKCustom_nativeCallFloatFuncWithParam (functionName, null, 0);
-				
-			} else {
-				return AnySDKCustom_nativeCallFloatFuncWithParam (functionName, param.ToArray (), param.Count);
-			}
-#else
-			Debug.Log("This platform does not support!");
-			return 0;
-#endif
-		}
-
-		/**
-    	 *@brief methods for reflections
-   	 	 *@param function name
-   		 *@param AnySDKParam param 
-    	 *@return bool
-    	 */
-		public  bool callBoolFuncWithParam(string functionName, AnySDKParam param)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			List<AnySDKParam> list = new List<AnySDKParam> ();
-			list.Add (param);
-			return AnySDKCustom_nativeCallBoolFuncWithParam(functionName, list.ToArray(),list.Count);
-#else
-			Debug.Log("This platform does not support!");
-			return false;
-#endif
-		}
-
-		/**
-    	 *@brief methods for reflections
-   	 	 *@param function name
-   		 *@param List<AnySDKParam param 
-    	 *@return bool
-    	 */
-		public  bool callBoolFuncWithParam(string functionName, List<AnySDKParam> param = null)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			if (param == null)
-			{
-				return AnySDKCustom_nativeCallBoolFuncWithParam (functionName, null, 0);
-				
-			} else {
-				return AnySDKCustom_nativeCallBoolFuncWithParam (functionName, param.ToArray (), param.Count);
-			}
-#else
-			Debug.Log("This platform does not support!");
-			return false;
-#endif
-		}
-
-		/**
-    	 *@brief methods for reflections
-   	 	 *@param function name
-   		 *@param AnySDKParam param 
-    	 *@return string
-    	 */
-		public  string callStringFuncWithParam(string functionName, AnySDKParam param)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			List<AnySDKParam> list = new List<AnySDKParam> ();
-			list.Add (param);
-			StringBuilder value = new StringBuilder();
-			value.Capacity = AnySDKUtil.MAX_CAPACITY_NUM;
-			AnySDKCustom_nativeCallStringFuncWithParam(functionName, list.ToArray(),list.Count,value);
-			return value.ToString ();
-#else
-			Debug.Log("This platform does not support!");
-			return "";
-#endif
-		}
-
-		/**
-    	 *@brief methods for reflections
-   	 	 *@param function name
-   		 *@param List<AnySDKParam param 
-    	 *@return string
-    	 */
-		public  string callStringFuncWithParam(string functionName, List<AnySDKParam> param = null)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			StringBuilder value = new StringBuilder();
-			value.Capacity = AnySDKUtil.MAX_CAPACITY_NUM;
-			if (param == null)
-			{
-				AnySDKCustom_nativeCallStringFuncWithParam (functionName, null, 0,value);
-				
-			} else {
-				AnySDKCustom_nativeCallStringFuncWithParam (functionName, param.ToArray (), param.Count,value);
-			}
-			return value.ToString ();
-#else
-			Debug.Log("This platform does not support!");
-			return "";
-#endif
-		}
-		
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM,CallingConvention=CallingConvention.Cdecl)]
-		private static extern void AnySDKCustom_RegisterExternalCallDelegate(IntPtr functionPointer);
-
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern void AnySDKCustom_nativeSetListener(string gameName, string functionName);
-
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern bool AnySDKCustom_nativeIsFunctionSupported(string functionName);
-	
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern void AnySDKCustom_nativeSetDebugMode(bool bDebug);
-		
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern void AnySDKCustom_nativeGetPluginVersion(StringBuilder version);
-		
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern void AnySDKCustom_nativeGetSDKVersion(StringBuilder version);
-		
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern void AnySDKCustom_nativeCallFuncWithParam(string functionName, AnySDKParam[] param,int count);
-		
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern int AnySDKCustom_nativeCallIntFuncWithParam(string functionName, AnySDKParam[] param,int count);
-		
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern float AnySDKCustom_nativeCallFloatFuncWithParam(string functionName, AnySDKParam[] param,int count);
-		
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern bool AnySDKCustom_nativeCallBoolFuncWithParam(string functionName, AnySDKParam[] param,int count);
-		
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern void AnySDKCustom_nativeCallStringFuncWithParam(string functionName, AnySDKParam[] param,int count,StringBuilder value);
-	}
-	
-}
-
-

+ 0 - 10
Assets/Plugins/script/AnySDKCustom.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: cca6e6519007b410cbf97f6505cb3ce6
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

BIN
Assets/Plugins/script/AnySDKIAP.cs


+ 0 - 10
Assets/Plugins/script/AnySDKIAP.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 859a2897ee0a54717a7a571dffab0b22
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

BIN
Assets/Plugins/script/AnySDKParam.cs


+ 0 - 10
Assets/Plugins/script/AnySDKParam.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 3bd2f8dcddb5240c490d7149a98db082
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

BIN
Assets/Plugins/script/AnySDKPush.cs


+ 0 - 10
Assets/Plugins/script/AnySDKPush.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 14960e0cbb6d948118381c87adaa2bc7
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 414
Assets/Plugins/script/AnySDKREC.cs

@@ -1,414 +0,0 @@
-using UnityEngine;
-using System.Collections;
-using System.Collections.Generic;
-using System.Runtime.InteropServices;
-using System.Text;
-using System;
-
-namespace anysdk {
-	public enum RECResultCode
-	{
-		kRECInitSuccess = 0,/**< enum value is callback of succeeding in initing sdk . */
-		kRECInitFail,/**< enum  value is callback of failing to init sdk. */
-		kRECStartRecording,/**< enum  value is callback of starting to record. */
-		kRECStopRecording,/**< enum  value is callback of stoping to record. */
-		kRECPauseRecording,/**< enum  value is callback of pausing to record. */
-		kRECResumeRecording,/**< enum  value is callback of resuming to record. */
-		kRECEnterSDKPage,/**< enum  value is callback of failing to init sdk. */
-		kRECQuitSDKPage,/**< enum  value is callback of entering SDK`s page. */
-		kRECShareSuccess,/**< enum  value is callback of  quiting SDK`s page. */
-		kRECShareFail,/**< enum  value is callback of failing to share. */
-		kRECExtension = 90000 /**< enum value is  extension code . */
-	};
-	public class AnySDKREC
-	{
-
-		private static AnySDKREC _instance;
-		
-		public static AnySDKREC getInstance() {
-			if( null == _instance ) {
-				_instance = new AnySDKREC();
-			}
-			return _instance;
-		}
-
-		/**
-     	@brief Start to record
-    	 */
-		
-		public  void startRecording()
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			AnySDKREC_nativeStartRecording ();
-#else
-			Debug.Log("This platform does not support!");
-#endif
-		}
-		
-		/**
-     	@brief Stop a session.
-    	 @warning This interface only worked on android
-    	 */
-		
-		public  void stopRecording()
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			AnySDKREC_nativeStopRecording ();
-#else
-			Debug.Log("This platform does not support!");
-#endif
-		}
-
-		/**
-    	@brief share video
-   		@param info The info of share, contains key:
-   		 @warning Look at the manual of plugins.
-
-    	*/
-		
-		public  void share(Dictionary<string,string> shareInfo)
-		{
-			
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			string info = AnySDKUtil.dictionaryToString (shareInfo);
-			Debug.Log("share   " + info);
-			AnySDKREC_nativeShare (info );
-#else
-			Debug.Log("This platform does not support!");
-#endif
-		}
-
-		/**
-     	@brief Check function the plugin support or not
-     	*/
-		
-		public  bool  isFunctionSupported (string functionName)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			return AnySDKREC_nativeIsFunctionSupported (functionName);
-#else
-			Debug.Log("This platform does not support!");
-			return false;
-#endif
-		}
-
-		/**
-		 * set debugmode for plugin
-		 * 
-		 */
-		[Obsolete("This interface is obsolete!",false)]
-		public  void setDebugMode(bool bDebug)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			AnySDKREC_nativeSetDebugMode (bDebug);
-#else
-			Debug.Log("This platform does not support!");
-#endif
-		}
-
-		/**
-    	 @brief set pListener The callback object for share result
-    	 @param the MonoBehaviour object
-    	 @param the callback of function
-    	 */
-
-		public  void setListener(MonoBehaviour gameObject,string functionName)
-		{
-#if !UNITY_EDITOR && UNITY_ANDROID
-			AnySDKUtil.registerActionCallback (AnySDKType.REC, gameObject, functionName);
-#elif !UNITY_EDITOR && UNITY_IOS
-			string gameObjectName = gameObject.gameObject.name;
-			AnySDKREC_nativeSetListener(gameObjectName,functionName);
-#else
-			Debug.Log("This platform does not support!");
-#endif
-		}
-
-		/**
-		 * Get Plugin version
-		 * 
-		 * @return string
-	 	*/
-		public  string getPluginVersion()
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			StringBuilder version = new StringBuilder();
-			version.Capacity = AnySDKUtil.MAX_CAPACITY_NUM;
-			AnySDKREC_nativeGetPluginVersion (version);
-			return version.ToString();
-#else
-			Debug.Log("This platform does not support!");
-			return "";
-#endif
-		}
-
-		
-		/**
-		 * Get SDK version
-		 * 
-		 * @return string
-	 	*/
-		public  string getSDKVersion()
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			StringBuilder version = new StringBuilder();
-			version.Capacity = AnySDKUtil.MAX_CAPACITY_NUM;
-			AnySDKREC_nativeGetSDKVersion (version);
-			return version.ToString();
-#else
-			Debug.Log("This platform does not support!");
-			return "";
-#endif
-		}
-
-		/**
-    	 *@brief methods for reflections
-   	 	 *@param function name
-   		 *@param AnySDKParam param 
-    	 *@return void
-    	 */
-		
-		public  void callFuncWithParam(string functionName, AnySDKParam param)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS)  
-			List<AnySDKParam> list = new List<AnySDKParam> ();
-			list.Add (param);
-			AnySDKREC_nativeCallFuncWithParam(functionName, list.ToArray(),list.Count);
-#else
-			Debug.Log("This platform does not support!");
-#endif
-		}
-
-		/**
-    	 *@brief methods for reflections
-   	 	 *@param function name
-   		 *@param List<AnySDKParam param 
-    	 *@return void
-    	 */
-		public  void callFuncWithParam(string functionName, List<AnySDKParam> param = null)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			if (param == null) 
-			{
-				AnySDKREC_nativeCallFuncWithParam (functionName, null, 0);
-				
-			} else {
-				AnySDKREC_nativeCallFuncWithParam (functionName, param.ToArray (), param.Count);
-			}
-#else
-			Debug.Log("This platform does not support!");
-#endif
-		}
-
-		/**
-    	 *@brief methods for reflections
-   	 	 *@param function name
-   		 *@param AnySDKParam param 
-    	 *@return int
-    	 */
-		public  int callIntFuncWithParam(string functionName, AnySDKParam param)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS)  
-			List<AnySDKParam> list = new List<AnySDKParam> ();
-			list.Add (param);
-			return AnySDKREC_nativeCallIntFuncWithParam(functionName, list.ToArray(),list.Count);
-#else
-			Debug.Log("This platform does not support!");
-			return -1;
-#endif
-		}
-
-		/**
-    	 *@brief methods for reflections
-   	 	 *@param function name
-   		 *@param List<AnySDKParam param 
-    	 *@return int
-    	 */
-		public  int  callIntFuncWithParam(string functionName, List<AnySDKParam> param = null)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS)  
-			if (param == null)
-			{
-				return AnySDKREC_nativeCallIntFuncWithParam (functionName, null, 0);
-				
-			} else {
-				return AnySDKREC_nativeCallIntFuncWithParam (functionName, param.ToArray (), param.Count);
-			}
-#else
-			Debug.Log("This platform does not support!");
-			return -1;
-#endif
-		}
-
-		/**
-    	 *@brief methods for reflections
-   	 	 *@param function name
-   		 *@param AnySDKParam param 
-    	 *@return float
-    	 */
-		public  float callFloatFuncWithParam(string functionName, AnySDKParam param)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			List<AnySDKParam> list = new List<AnySDKParam> ();
-			list.Add (param);
-			return AnySDKREC_nativeCallFloatFuncWithParam(functionName, list.ToArray(),list.Count);
-#else
-			Debug.Log("This platform does not support!");
-			return 0;
-#endif
-		}
-
-		/**
-    	 *@brief methods for reflections
-   	 	 *@param function name
-   		 *@param List<AnySDKParam param 
-    	 *@return float
-    	 */
-		public  float callFloatFuncWithParam(string functionName, List<AnySDKParam> param = null)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			if (param == null)
-			{
-				return AnySDKREC_nativeCallFloatFuncWithParam (functionName, null, 0);
-				
-			} else {
-				return AnySDKREC_nativeCallFloatFuncWithParam (functionName, param.ToArray (), param.Count);
-			}
-#else
-			Debug.Log("This platform does not support!");
-			return 0;
-#endif
-		}
-
-		/**
-    	 *@brief methods for reflections
-   	 	 *@param function name
-   		 *@param AnySDKParam param 
-    	 *@return bool
-    	 */
-		public  bool callBoolFuncWithParam(string functionName, AnySDKParam param)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			List<AnySDKParam> list = new List<AnySDKParam> ();
-			list.Add (param);
-			return AnySDKREC_nativeCallBoolFuncWithParam(functionName, list.ToArray(),list.Count);
-#else
-			Debug.Log("This platform does not support!");
-			return false;
-#endif
-		}
-
-		/**
-    	 *@brief methods for reflections
-   	 	 *@param function name
-   		 *@param List<AnySDKParam param 
-    	 *@return bool
-    	 */
-		public  bool callBoolFuncWithParam(string functionName, List<AnySDKParam> param = null)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			if (param == null)
-			{
-				return AnySDKREC_nativeCallBoolFuncWithParam (functionName, null, 0);
-				
-			} else {
-				return AnySDKREC_nativeCallBoolFuncWithParam (functionName, param.ToArray (), param.Count);
-			}
-#else
-			Debug.Log("This platform does not support!");
-			return false;
-#endif
-		}
-
-		/**
-    	 *@brief methods for reflections
-   	 	 *@param function name
-   		 *@param AnySDKParam param 
-    	 *@return string
-    	 */
-		public  string callStringFuncWithParam(string functionName, AnySDKParam param)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			List<AnySDKParam> list = new List<AnySDKParam> ();
-			list.Add (param);
-			StringBuilder value = new StringBuilder();
-			value.Capacity = AnySDKUtil.MAX_CAPACITY_NUM;
-			AnySDKREC_nativeCallStringFuncWithParam(functionName, list.ToArray(),list.Count,value);
-			return value.ToString ();
-#else
-			Debug.Log("This platform does not support!");
-			return "";
-#endif
-		}
-
-		/**
-    	 *@brief methods for reflections
-   	 	 *@param function name
-   		 *@param List<AnySDKParam param 
-    	 *@return string
-    	 */
-		public  string callStringFuncWithParam(string functionName, List<AnySDKParam> param = null)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			StringBuilder value = new StringBuilder();
-			value.Capacity = AnySDKUtil.MAX_CAPACITY_NUM;
-			if (param == null)
-			{
-				AnySDKREC_nativeCallStringFuncWithParam (functionName, null, 0,value);
-				
-			} else {
-				AnySDKREC_nativeCallStringFuncWithParam (functionName, param.ToArray (), param.Count,value);
-			}
-			return value.ToString ();
-#else
-			Debug.Log("This platform does not support!");
-			return "";
-#endif
-		}
-		
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM,CallingConvention=CallingConvention.Cdecl)]
-		private static extern void AnySDKREC_RegisterExternalCallDelegate(IntPtr functionPointer);
-
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern void AnySDKREC_nativeStartRecording();
-		
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern void AnySDKREC_nativeStopRecording();
-
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern void AnySDKREC_nativeShare(string info);
-
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern void AnySDKREC_nativeSetListener(string gameName, string functionName);
-
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern bool AnySDKREC_nativeIsFunctionSupported(string functionName);
-	
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern void AnySDKREC_nativeSetDebugMode(bool bDebug);
-		
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern void AnySDKREC_nativeGetPluginVersion(StringBuilder version);
-		
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern void AnySDKREC_nativeGetSDKVersion(StringBuilder version);
-		
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern void AnySDKREC_nativeCallFuncWithParam(string functionName, AnySDKParam[] param,int count);
-		
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern int AnySDKREC_nativeCallIntFuncWithParam(string functionName, AnySDKParam[] param,int count);
-		
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern float AnySDKREC_nativeCallFloatFuncWithParam(string functionName, AnySDKParam[] param,int count);
-		
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern bool AnySDKREC_nativeCallBoolFuncWithParam(string functionName, AnySDKParam[] param,int count);
-		
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern void AnySDKREC_nativeCallStringFuncWithParam(string functionName, AnySDKParam[] param,int count,StringBuilder value);
-	}
-	
-}
-
-

+ 0 - 10
Assets/Plugins/script/AnySDKREC.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 49d82f9153efc4719bf9594aa402355c
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 375
Assets/Plugins/script/AnySDKShare.cs

@@ -1,375 +0,0 @@
-using UnityEngine;
-using System.Collections;
-using System.Collections.Generic;
-using System.Runtime.InteropServices;
-using System.Text;
-using System;
-
-namespace anysdk {
-	public enum ShareResultCode
-	{
-		kShareSuccess = 0,/**< enum value is callback of failing to sharing . */
-		kShareFail,/**< enum value is callback of failing to share . */
-		kShareCancel,/**< enum value is callback of canceling to share . */
-		kShareNetworkError,/**< enum value is callback of network error . */
-		kShareExtension = 10000 /**< enum value is  extension code . */
-	};
-	public class AnySDKShare
-	{
-
-		private static AnySDKShare _instance;
-		
-		public static AnySDKShare getInstance() {
-			if( null == _instance ) {
-				_instance = new AnySDKShare();
-			}
-			return _instance;
-		}
-
-		/**
-    	@brief share information
-   		@param info The info of share, contains key:
-   		 @warning Look at the manual of plugins.
-
-    	*/
-
-		public  void share(Dictionary<string,string> shareInfo)
-		{
-
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			string info = AnySDKUtil.dictionaryToString (shareInfo);
-			Debug.Log("share   " + info);
-			AnySDKShare_nativeShare (info );
-#else
-			Debug.Log("This platform does not support!");
-#endif
-		}
-
-		/**
-     	@brief Check function the plugin support or not
-     	*/
-		
-		public  bool  isFunctionSupported (string functionName)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			return AnySDKShare_nativeIsFunctionSupported (functionName);
-#else
-			Debug.Log("This platform does not support!");
-			return false;
-#endif
-		}
-
-		/**
-		 * set debugmode for plugin
-		 * 
-		 */
-		[Obsolete("This interface is obsolete!",false)]
-		public  void setDebugMode(bool bDebug)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			AnySDKShare_nativeSetDebugMode (bDebug);
-#else
-			Debug.Log("This platform does not support!");
-#endif
-		}
-
-		/**
-    	 @brief set pListener The callback object for share result
-    	 @param the MonoBehaviour object
-    	 @param the callback of function
-    	 */
-
-		public  void setListener(MonoBehaviour gameObject,string functionName)
-		{
-#if !UNITY_EDITOR && UNITY_ANDROID
-			AnySDKUtil.registerActionCallback (AnySDKType.Share, gameObject, functionName);
-#elif !UNITY_EDITOR && UNITY_IOS
-			string gameObjectName = gameObject.gameObject.name;
-			AnySDKShare_nativeSetListener(gameObjectName,functionName);
-#else
-			Debug.Log("This platform does not support!");
-#endif
-		}
-
-		/**
-		 * Get Plugin version
-		 * 
-		 * @return string
-	 	*/
-		public  string getPluginVersion()
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			StringBuilder version = new StringBuilder();
-			version.Capacity = AnySDKUtil.MAX_CAPACITY_NUM;
-			AnySDKShare_nativeGetPluginVersion (version);
-			return version.ToString();
-#else
-			Debug.Log("This platform does not support!");
-			return "";
-#endif
-		}
-
-		
-		/**
-		 * Get SDK version
-		 * 
-		 * @return string
-	 	*/
-		public  string getSDKVersion()
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			StringBuilder version = new StringBuilder();
-			version.Capacity = AnySDKUtil.MAX_CAPACITY_NUM;
-			AnySDKShare_nativeGetSDKVersion (version);
-			return version.ToString();
-#else
-			Debug.Log("This platform does not support!");
-			return "";
-#endif
-		}
-
-		/**
-    	 *@brief methods for reflections
-   	 	 *@param function name
-   		 *@param AnySDKParam param 
-    	 *@return void
-    	 */
-		
-		public  void callFuncWithParam(string functionName, AnySDKParam param)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS)  
-			List<AnySDKParam> list = new List<AnySDKParam> ();
-			list.Add (param);
-			AnySDKShare_nativeCallFuncWithParam(functionName, list.ToArray(),list.Count);
-#else
-			Debug.Log("This platform does not support!");
-#endif
-		}
-
-		/**
-    	 *@brief methods for reflections
-   	 	 *@param function name
-   		 *@param List<AnySDKParam param 
-    	 *@return void
-    	 */
-		public  void callFuncWithParam(string functionName, List<AnySDKParam> param = null)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			if (param == null) 
-			{
-				AnySDKShare_nativeCallFuncWithParam (functionName, null, 0);
-				
-			} else {
-				AnySDKShare_nativeCallFuncWithParam (functionName, param.ToArray (), param.Count);
-			}
-#else
-			Debug.Log("This platform does not support!");
-#endif
-		}
-
-		/**
-    	 *@brief methods for reflections
-   	 	 *@param function name
-   		 *@param AnySDKParam param 
-    	 *@return int
-    	 */
-		public  int callIntFuncWithParam(string functionName, AnySDKParam param)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS)  
-			List<AnySDKParam> list = new List<AnySDKParam> ();
-			list.Add (param);
-			return AnySDKShare_nativeCallIntFuncWithParam(functionName, list.ToArray(),list.Count);
-#else
-			Debug.Log("This platform does not support!");
-			return -1;
-#endif
-		}
-
-		/**
-    	 *@brief methods for reflections
-   	 	 *@param function name
-   		 *@param List<AnySDKParam param 
-    	 *@return int
-    	 */
-		public  int  callIntFuncWithParam(string functionName, List<AnySDKParam> param = null)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS)  
-			if (param == null)
-			{
-				return AnySDKShare_nativeCallIntFuncWithParam (functionName, null, 0);
-				
-			} else {
-				return AnySDKShare_nativeCallIntFuncWithParam (functionName, param.ToArray (), param.Count);
-			}
-#else
-			Debug.Log("This platform does not support!");
-			return -1;
-#endif
-		}
-
-		/**
-    	 *@brief methods for reflections
-   	 	 *@param function name
-   		 *@param AnySDKParam param 
-    	 *@return float
-    	 */
-		public  float callFloatFuncWithParam(string functionName, AnySDKParam param)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			List<AnySDKParam> list = new List<AnySDKParam> ();
-			list.Add (param);
-			return AnySDKShare_nativeCallFloatFuncWithParam(functionName, list.ToArray(),list.Count);
-#else
-			Debug.Log("This platform does not support!");
-			return 0;
-#endif
-		}
-
-		/**
-    	 *@brief methods for reflections
-   	 	 *@param function name
-   		 *@param List<AnySDKParam param 
-    	 *@return float
-    	 */
-		public  float callFloatFuncWithParam(string functionName, List<AnySDKParam> param = null)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			if (param == null)
-			{
-				return AnySDKShare_nativeCallFloatFuncWithParam (functionName, null, 0);
-				
-			} else {
-				return AnySDKShare_nativeCallFloatFuncWithParam (functionName, param.ToArray (), param.Count);
-			}
-#else
-			Debug.Log("This platform does not support!");
-			return 0;
-#endif
-		}
-
-		/**
-    	 *@brief methods for reflections
-   	 	 *@param function name
-   		 *@param AnySDKParam param 
-    	 *@return bool
-    	 */
-		public  bool callBoolFuncWithParam(string functionName, AnySDKParam param)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			List<AnySDKParam> list = new List<AnySDKParam> ();
-			list.Add (param);
-			return AnySDKShare_nativeCallBoolFuncWithParam(functionName, list.ToArray(),list.Count);
-#else
-			Debug.Log("This platform does not support!");
-			return false;
-#endif
-		}
-
-		/**
-    	 *@brief methods for reflections
-   	 	 *@param function name
-   		 *@param List<AnySDKParam param 
-    	 *@return bool
-    	 */
-		public  bool callBoolFuncWithParam(string functionName, List<AnySDKParam> param = null)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			if (param == null)
-			{
-				return AnySDKShare_nativeCallBoolFuncWithParam (functionName, null, 0);
-				
-			} else {
-				return AnySDKShare_nativeCallBoolFuncWithParam (functionName, param.ToArray (), param.Count);
-			}
-#else
-			Debug.Log("This platform does not support!");
-			return false;
-#endif
-		}
-
-		/**
-    	 *@brief methods for reflections
-   	 	 *@param function name
-   		 *@param AnySDKParam param 
-    	 *@return string
-    	 */
-		public  string callStringFuncWithParam(string functionName, AnySDKParam param)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			List<AnySDKParam> list = new List<AnySDKParam> ();
-			list.Add (param);
-			StringBuilder value = new StringBuilder();
-			value.Capacity = AnySDKUtil.MAX_CAPACITY_NUM;
-			AnySDKShare_nativeCallStringFuncWithParam(functionName, list.ToArray(),list.Count,value);
-			return value.ToString ();
-#else
-			Debug.Log("This platform does not support!");
-			return "";
-#endif
-		}
-
-		/**
-    	 *@brief methods for reflections
-   	 	 *@param function name
-   		 *@param List<AnySDKParam param 
-    	 *@return string
-    	 */
-		public  string callStringFuncWithParam(string functionName, List<AnySDKParam> param = null)
-		{
-#if !UNITY_EDITOR &&( UNITY_ANDROID ||  UNITY_IOS) 
-			StringBuilder value = new StringBuilder();
-			value.Capacity = AnySDKUtil.MAX_CAPACITY_NUM;
-			if (param == null)
-			{
-				AnySDKShare_nativeCallStringFuncWithParam (functionName, null, 0,value);
-				
-			} else {
-				AnySDKShare_nativeCallStringFuncWithParam (functionName, param.ToArray (), param.Count,value);
-			}
-			return value.ToString ();
-#else
-			Debug.Log("This platform does not support!");
-			return "";
-#endif
-		}
-		
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM,CallingConvention=CallingConvention.Cdecl)]
-		private static extern void AnySDKShare_RegisterExternalCallDelegate(IntPtr functionPointer);
-
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern void AnySDKShare_nativeSetListener(string gameName, string functionName);
-
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern void AnySDKShare_nativeShare(string info);
-
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern bool AnySDKShare_nativeIsFunctionSupported(string functionName);
-	
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern void AnySDKShare_nativeSetDebugMode(bool bDebug);
-		
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern void AnySDKShare_nativeGetPluginVersion(StringBuilder version);
-		
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern void AnySDKShare_nativeGetSDKVersion(StringBuilder version);
-		
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern void AnySDKShare_nativeCallFuncWithParam(string functionName, AnySDKParam[] param,int count);
-		
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern int AnySDKShare_nativeCallIntFuncWithParam(string functionName, AnySDKParam[] param,int count);
-		
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern float AnySDKShare_nativeCallFloatFuncWithParam(string functionName, AnySDKParam[] param,int count);
-		
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern bool AnySDKShare_nativeCallBoolFuncWithParam(string functionName, AnySDKParam[] param,int count);
-		
-		[DllImport(AnySDKUtil.ANYSDK_PLATFORM)]
-		private static extern void AnySDKShare_nativeCallStringFuncWithParam(string functionName, AnySDKParam[] param,int count,StringBuilder value);
-	}
-	
-}
-
-

+ 0 - 10
Assets/Plugins/script/AnySDKShare.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: ce3de0c83b33f4cf184a4217d94424f5
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

BIN
Assets/Plugins/script/AnySDKSocial.cs


+ 0 - 10
Assets/Plugins/script/AnySDKSocial.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: f32bddf990fbe4b409a2d1694bcb5b39
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

BIN
Assets/Plugins/script/AnySDKUser.cs


+ 0 - 10
Assets/Plugins/script/AnySDKUser.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 7fa8470dfd26344238c34a2f75964b59
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

BIN
Assets/Plugins/script/AnySDKUtil.cs


+ 0 - 10
Assets/Plugins/script/AnySDKUtil.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 05c06d8f06563462e84893a051b35372
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 14 - 0
Assets/Script/Manage/ManaServer.cs

@@ -107,6 +107,20 @@ public class ManaServer : Regist
     }
 
 
+    public static void GetProductID(int id, URLRequest.URLRequestCallBackDelegate callback)
+    {
+        URLRequestData urlData = new URLRequestData();
+
+        urlData.Add("t", 1);
+        urlData.Add("i", id.ToString());
+        urlData.Add("u", JsonData.Inst_Object["i"].ToJson().Trim('"'));
+
+        Debug.Log(JsonData.Inst_Object["i"].ToJson().Trim('"'));
+
+        URLRequest.CreateStrURLRequest("https://garden.dashgame.com/index.php/home/pay/pay", urlData, callback, URLRequest.Method.POST);
+    }
+
+
     public static void Login(URLRequest.URLRequestJsonCallBackDelegate callback = null)
     {
         URLRequestData urlData = new URLRequestData();

+ 9 - 7
Assets/Script/ThirdParty/Alipay/AlipayManager.cs

@@ -3,8 +3,8 @@ using UnityEngine;
 using System.Collections;
 using System.Collections.Generic;
 
-public class AliplayManager : UnitySingleton<AliplayManager> {
-
+public class AliplayManager : UnitySingleton<AliplayManager>
+{
     private AndroidJavaObject androidUnityTool;
 
 	public void Init()
@@ -13,19 +13,21 @@ public class AliplayManager : UnitySingleton<AliplayManager> {
 		androidUnityTool.Call("setResponseGameObject", this.name);
 	}
 
-	public void Pay(){
+	public void Pay(string id){
 
 		AndroidJavaClass jc = new AndroidJavaClass("com.unity3d.player.UnityPlayer");    
 		AndroidJavaObject currentActivity = jc.GetStatic<AndroidJavaObject>("currentActivity");
 
 		//Pay(string orderInfo, Activity activity)
-		androidUnityTool.Call("pay", "a=3", currentActivity); // 传递的参数需与服务器协商
+		androidUnityTool.Call("pay", id, currentActivity); // 传递的参数需与服务器协商
 
     }
 
     public void OnPayResult(string result)
 	{
 		//if result=9000 means pay success;
-	}
-
-}
+        
+        Debug.Log(result.Split('|')[0]);
+        Debug.Log(result.Split('|')[1]);
+    }
+}

+ 34 - 2
Assets/Script/Tool/Auxiliary.cs

@@ -128,7 +128,39 @@ public class Auxiliary : Regist
 
         if (Input.GetKeyDown(KeyCode.Escape))
         {
-            
+            ManaServer.GetProductID
+                (
+                    1,
+                    data =>
+                    {
+                        AliplayManager.Instance.Init();
+                        AliplayManager.Instance.Pay(data);
+                    }
+                );
+
+            //try
+            //{
+            //    AliplayManager.Instance.Init();
+            //}
+            //catch (Exception e)
+            //{
+            //    ManaDebug.Log("Init");
+            //    ManaDebug.Log(e.ToString());
+
+            //    throw;
+            //}
+
+            //try
+            //{
+            //    AliplayManager.Instance.Pay("1");
+            //}
+            //catch (Exception e)
+            //{
+            //    ManaDebug.Log("Pay");
+            //    ManaDebug.Log(e.ToString());
+
+            //    throw;
+            //}
         }
 
         if (Input.GetKeyDown(KeyCode.N))
@@ -156,7 +188,7 @@ public class Auxiliary : Regist
 
         if (Input.GetKeyDown(KeyCode.Z))
         {
-            ManaGarden.AwardTimer = 0;
+            Debug.Log(ManaServer.JsonData.Inst_Object["i"].ToJson().Trim('"'));
         }
 
         if (Input.GetKeyDown(KeyCode.X))

+ 2 - 2
Assets/Script/Tool/DashGame/URLRequest.cs

@@ -108,11 +108,11 @@ public class URLRequest : MonoBehaviour
 		catch(JsonException e)
 		{
 			Debuger.LogException(e);
+            Debug.Log(e.ToString());
 		}
 		
 		JsonData json = new JsonData();
 	    json["error"] = 0;
 		return json;
 	}
-}
-
+}

+ 0 - 16
Assets/Test.cs

@@ -1,16 +0,0 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-public class Test : MonoBehaviour {
-
-	// Use this for initialization
-	void Start () {
-		
-	}
-	
-	// Update is called once per frame
-	void Update () {
-		
-	}
-}

+ 0 - 12
Assets/Test.cs.meta

@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: e6941bbb7caf8374cab6ebb42b60c890
-timeCreated: 1501470941
-licenseType: Pro
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: