浏览代码

first upload

fenix 8 年之前
当前提交
70ac1e05e4
共有 100 个文件被更改,包括 1307 次插入0 次删除
  1. 12 0
      .gitignore
  2. 5 0
      Assets/Animations.meta
  3. 二进制
      Assets/Animations/Button.controller
  4. 4 0
      Assets/Animations/Button.controller.meta
  5. 二进制
      Assets/Animations/EnergyPortal.anim
  6. 4 0
      Assets/Animations/EnergyPortal.anim.meta
  7. 二进制
      Assets/Animations/EnergyPortal.controller
  8. 4 0
      Assets/Animations/EnergyPortal.controller.meta
  9. 二进制
      Assets/Animations/EnergyPortal_Blue1.anim
  10. 4 0
      Assets/Animations/EnergyPortal_Blue1.anim.meta
  11. 二进制
      Assets/Animations/EnergyPortal_Blue2.anim
  12. 4 0
      Assets/Animations/EnergyPortal_Blue2.anim.meta
  13. 二进制
      Assets/Animations/EnergyPortal_Blue3.anim
  14. 4 0
      Assets/Animations/EnergyPortal_Blue3.anim.meta
  15. 二进制
      Assets/Animations/EnergyPortal_Blue4.anim
  16. 4 0
      Assets/Animations/EnergyPortal_Blue4.anim.meta
  17. 二进制
      Assets/Animations/EnergyPortal_Blue5.anim
  18. 4 0
      Assets/Animations/EnergyPortal_Blue5.anim.meta
  19. 二进制
      Assets/Animations/EnergyPortal_Red1.anim
  20. 4 0
      Assets/Animations/EnergyPortal_Red1.anim.meta
  21. 二进制
      Assets/Animations/EnergyPortal_Red2.anim
  22. 4 0
      Assets/Animations/EnergyPortal_Red2.anim.meta
  23. 二进制
      Assets/Animations/EnergyPortal_Red3.anim
  24. 4 0
      Assets/Animations/EnergyPortal_Red3.anim.meta
  25. 二进制
      Assets/Animations/EnergyPortal_Red4.anim
  26. 4 0
      Assets/Animations/EnergyPortal_Red4.anim.meta
  27. 二进制
      Assets/Animations/EnergyPortal_Red5.anim
  28. 4 0
      Assets/Animations/EnergyPortal_Red5.anim.meta
  29. 二进制
      Assets/Animations/LoginPageContainer.controller
  30. 4 0
      Assets/Animations/LoginPageContainer.controller.meta
  31. 二进制
      Assets/Animations/LoginPageHide.anim
  32. 4 0
      Assets/Animations/LoginPageHide.anim.meta
  33. 二进制
      Assets/Animations/LoginPageShow.anim
  34. 4 0
      Assets/Animations/LoginPageShow.anim.meta
  35. 二进制
      Assets/Animations/MapSelectPageContainer.controller
  36. 4 0
      Assets/Animations/MapSelectPageContainer.controller.meta
  37. 二进制
      Assets/Animations/MapSelectPageHide.anim
  38. 4 0
      Assets/Animations/MapSelectPageHide.anim.meta
  39. 二进制
      Assets/Animations/MapSelectPageShow.anim
  40. 4 0
      Assets/Animations/MapSelectPageShow.anim.meta
  41. 二进制
      Assets/Animations/Panel.controller
  42. 4 0
      Assets/Animations/Panel.controller.meta
  43. 二进制
      Assets/Animations/PanelHide.anim
  44. 4 0
      Assets/Animations/PanelHide.anim.meta
  45. 二进制
      Assets/Animations/PanelShow.anim
  46. 4 0
      Assets/Animations/PanelShow.anim.meta
  47. 二进制
      Assets/Animations/ResultPageContainer.controller
  48. 4 0
      Assets/Animations/ResultPageContainer.controller.meta
  49. 二进制
      Assets/Animations/ResultPageHide.anim
  50. 4 0
      Assets/Animations/ResultPageHide.anim.meta
  51. 二进制
      Assets/Animations/ResultPageShow.anim
  52. 4 0
      Assets/Animations/ResultPageShow.anim.meta
  53. 二进制
      Assets/Animations/ShopPageContainer.controller
  54. 4 0
      Assets/Animations/ShopPageContainer.controller.meta
  55. 二进制
      Assets/Animations/ShopPageHide.anim
  56. 4 0
      Assets/Animations/ShopPageHide.anim.meta
  57. 二进制
      Assets/Animations/ShopPageShow.anim
  58. 4 0
      Assets/Animations/ShopPageShow.anim.meta
  59. 二进制
      Assets/Animations/StartHalo.anim
  60. 4 0
      Assets/Animations/StartHalo.anim.meta
  61. 二进制
      Assets/Animations/StartHalo.controller
  62. 4 0
      Assets/Animations/StartHalo.controller.meta
  63. 二进制
      Assets/Animations/StartPageContainer.controller
  64. 4 0
      Assets/Animations/StartPageContainer.controller.meta
  65. 二进制
      Assets/Animations/StartPageHide.anim
  66. 4 0
      Assets/Animations/StartPageHide.anim.meta
  67. 二进制
      Assets/Animations/StartPageShow.anim
  68. 4 0
      Assets/Animations/StartPageShow.anim.meta
  69. 9 0
      Assets/DashGame.meta
  70. 21 0
      Assets/DashGame/DGSocial.cs
  71. 12 0
      Assets/DashGame/DGSocial.cs.meta
  72. 9 0
      Assets/DashGame/Kits.meta
  73. 15 0
      Assets/DashGame/Kits/CallBackUtil.cs
  74. 12 0
      Assets/DashGame/Kits/CallBackUtil.cs.meta
  75. 19 0
      Assets/DashGame/Kits/DGAnalytics.cs
  76. 12 0
      Assets/DashGame/Kits/DGAnalytics.cs.meta
  77. 114 0
      Assets/DashGame/Kits/DGFileUtil.cs
  78. 12 0
      Assets/DashGame/Kits/DGFileUtil.cs.meta
  79. 73 0
      Assets/DashGame/Kits/DecryptionUtil.cs
  80. 12 0
      Assets/DashGame/Kits/DecryptionUtil.cs.meta
  81. 46 0
      Assets/DashGame/Kits/GameTime.cs
  82. 8 0
      Assets/DashGame/Kits/GameTime.cs.meta
  83. 47 0
      Assets/DashGame/Kits/JsonUtil.cs
  84. 12 0
      Assets/DashGame/Kits/JsonUtil.cs.meta
  85. 98 0
      Assets/DashGame/Kits/Language.cs
  86. 8 0
      Assets/DashGame/Kits/Language.cs.meta
  87. 79 0
      Assets/DashGame/Kits/MD5Util.cs
  88. 8 0
      Assets/DashGame/Kits/MD5Util.cs.meta
  89. 160 0
      Assets/DashGame/Kits/NumberUtil.cs
  90. 8 0
      Assets/DashGame/Kits/NumberUtil.cs.meta
  91. 139 0
      Assets/DashGame/Kits/StringUtil.cs
  92. 12 0
      Assets/DashGame/Kits/StringUtil.cs.meta
  93. 9 0
      Assets/DashGame/SocialPlatforms.meta
  94. 124 0
      Assets/DashGame/SocialPlatforms/FaceBookPlatform.cs
  95. 12 0
      Assets/DashGame/SocialPlatforms/FaceBookPlatform.cs.meta
  96. 19 0
      Assets/DashGame/SocialPlatforms/ISocialPlatform.cs
  97. 12 0
      Assets/DashGame/SocialPlatforms/ISocialPlatform.cs.meta
  98. 16 0
      Assets/DashGame/SocialPlatforms/SocialUser.cs
  99. 12 0
      Assets/DashGame/SocialPlatforms/SocialUser.cs.meta
  100. 9 0
      Assets/Editor.meta

+ 12 - 0
.gitignore

@@ -0,0 +1,12 @@
+/.svn
+/*.csproj
+/*.unityproj
+/*.sln
+/*.userprefs
+/*.suo
+/*.txt
+ScreenShot
+Builds
+Library
+obj
+ProjectSettings

+ 5 - 0
Assets/Animations.meta

@@ -0,0 +1,5 @@
+fileFormatVersion: 2
+guid: a1d2e5f0a0cd88d45b39e1cd341cfe01
+folderAsset: yes
+DefaultImporter:
+  userData: 

二进制
Assets/Animations/Button.controller


+ 4 - 0
Assets/Animations/Button.controller.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: ca9f01947cfa2584b81cd3abaafd5aa1
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/EnergyPortal.anim


+ 4 - 0
Assets/Animations/EnergyPortal.anim.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: d6102d725895aaf429680ddb8e0039bc
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/EnergyPortal.controller


+ 4 - 0
Assets/Animations/EnergyPortal.controller.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: e2df34ee468ca1b4f8fc062a2a29412a
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/EnergyPortal_Blue1.anim


+ 4 - 0
Assets/Animations/EnergyPortal_Blue1.anim.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 509320dfbb725204f8dc71f7b9b36e2d
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/EnergyPortal_Blue2.anim


+ 4 - 0
Assets/Animations/EnergyPortal_Blue2.anim.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 9316ce3a61016064890236cbbfd67ae4
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/EnergyPortal_Blue3.anim


+ 4 - 0
Assets/Animations/EnergyPortal_Blue3.anim.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 167c9f1978f7b864288f9abb0fb84249
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/EnergyPortal_Blue4.anim


+ 4 - 0
Assets/Animations/EnergyPortal_Blue4.anim.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 65db4d9f5a59e1a409be75230894cd2a
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/EnergyPortal_Blue5.anim


+ 4 - 0
Assets/Animations/EnergyPortal_Blue5.anim.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: ecd3ac300e70c2c4e84cde85c4ddcff1
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/EnergyPortal_Red1.anim


+ 4 - 0
Assets/Animations/EnergyPortal_Red1.anim.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 4baa09edbf30e784690783b6c0021096
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/EnergyPortal_Red2.anim


+ 4 - 0
Assets/Animations/EnergyPortal_Red2.anim.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 7647946de5e896441989db21fd1d2ab9
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/EnergyPortal_Red3.anim


+ 4 - 0
Assets/Animations/EnergyPortal_Red3.anim.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: c8a66fe153cb3084eabce0e85ff0b5c4
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/EnergyPortal_Red4.anim


+ 4 - 0
Assets/Animations/EnergyPortal_Red4.anim.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: f83d65a3e20ec5542b196375a9f47ce2
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/EnergyPortal_Red5.anim


+ 4 - 0
Assets/Animations/EnergyPortal_Red5.anim.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 75a09d4a6b16c134589872c918556e20
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/LoginPageContainer.controller


+ 4 - 0
Assets/Animations/LoginPageContainer.controller.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: a2b6a1c49dba39e48b3e798a9e97be3c
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/LoginPageHide.anim


+ 4 - 0
Assets/Animations/LoginPageHide.anim.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 75439063897d577419132fbe5b0da142
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/LoginPageShow.anim


+ 4 - 0
Assets/Animations/LoginPageShow.anim.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 5f92dada9b06f9f449a44e69b9b0194f
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/MapSelectPageContainer.controller


+ 4 - 0
Assets/Animations/MapSelectPageContainer.controller.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 553273d518398d54b96b0220755cff1f
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/MapSelectPageHide.anim


+ 4 - 0
Assets/Animations/MapSelectPageHide.anim.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 831e2e81c18783447b33e3d73a767696
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/MapSelectPageShow.anim


+ 4 - 0
Assets/Animations/MapSelectPageShow.anim.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 6f26c1b06efd1db4d817c10bc3e8ac1b
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/Panel.controller


+ 4 - 0
Assets/Animations/Panel.controller.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 997717c7588ec394d94990f44a02cc3e
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/PanelHide.anim


+ 4 - 0
Assets/Animations/PanelHide.anim.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 50201e583d75acd45950b3655d5dfef6
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/PanelShow.anim


+ 4 - 0
Assets/Animations/PanelShow.anim.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 24cdf436b9b36ac488e428690f48ab1f
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/ResultPageContainer.controller


+ 4 - 0
Assets/Animations/ResultPageContainer.controller.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: ae26b0d0d2bd418408829db51cec237e
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/ResultPageHide.anim


+ 4 - 0
Assets/Animations/ResultPageHide.anim.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 84b0be0e82028c146887b42b32d8a7d7
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/ResultPageShow.anim


+ 4 - 0
Assets/Animations/ResultPageShow.anim.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 0d2866c06f22d614ba61720fca19d9e3
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/ShopPageContainer.controller


+ 4 - 0
Assets/Animations/ShopPageContainer.controller.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 6c757fbc83e80dd49b923de7aba0f40b
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/ShopPageHide.anim


+ 4 - 0
Assets/Animations/ShopPageHide.anim.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 1172632a138607643a4f2f1976693834
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/ShopPageShow.anim


+ 4 - 0
Assets/Animations/ShopPageShow.anim.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 69a6cc4cd2fbe4345a059ba4ab22bc80
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/StartHalo.anim


+ 4 - 0
Assets/Animations/StartHalo.anim.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: ec1be0ecd36e30f42a832dd4e02d79e1
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/StartHalo.controller


+ 4 - 0
Assets/Animations/StartHalo.controller.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 0b0f1543c43a67c429605af5c08ac493
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/StartPageContainer.controller


+ 4 - 0
Assets/Animations/StartPageContainer.controller.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 6cf29a4ff03af5f4ba9ed3069dadeba6
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/StartPageHide.anim


+ 4 - 0
Assets/Animations/StartPageHide.anim.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 2f83a8751b869d540aee3ae6614c349e
+NativeFormatImporter:
+  userData: 

二进制
Assets/Animations/StartPageShow.anim


+ 4 - 0
Assets/Animations/StartPageShow.anim.meta

@@ -0,0 +1,4 @@
+fileFormatVersion: 2
+guid: 84c665528583e5b439f1d1cffde199b3
+NativeFormatImporter:
+  userData: 

+ 9 - 0
Assets/DashGame.meta

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

+ 21 - 0
Assets/DashGame/DGSocial.cs

@@ -0,0 +1,21 @@
+using UnityEngine;
+using System.Collections;
+using DashGame;
+
+public class DGSocial 
+{
+
+	public enum Platform
+	{
+		GameCenter,
+		FaceBook,
+	}
+
+
+	private static ISocialPlatform socialPlatform;
+	public static ISocialPlatform GetSocialPlatform()
+	{
+		return socialPlatform;
+	}
+
+}

+ 12 - 0
Assets/DashGame/DGSocial.cs.meta

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

+ 9 - 0
Assets/DashGame/Kits.meta

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

+ 15 - 0
Assets/DashGame/Kits/CallBackUtil.cs

@@ -0,0 +1,15 @@
+using UnityEngine;
+using System.Collections;
+using LitJson;
+
+public class CallBackUtil
+{
+
+	public delegate void SimpleCallBack();
+	public delegate void BoolCallBack(bool value);
+	public delegate void StringCallBack(string value);
+	public delegate void IntegerCallBack(int value);
+	public delegate void JsonCallBack(JsonData value);
+	public delegate void RequestCallBack(bool success, JsonData data);
+}
+

+ 12 - 0
Assets/DashGame/Kits/CallBackUtil.cs.meta

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

+ 19 - 0
Assets/DashGame/Kits/DGAnalytics.cs

@@ -0,0 +1,19 @@
+using UnityEngine;
+using UnityEngine.Analytics;
+using System.Collections.Generic;
+
+public class DGAnalytics
+{
+
+	public static void CustomEvent(string customEventName)
+	{
+		Analytics.CustomEvent (customEventName);
+	}
+
+	public static void CustomEvent(string customEventName, IDictionary<string, object> eventData)
+	{
+		Analytics.CustomEvent (customEventName, eventData);
+	}
+
+}
+

+ 12 - 0
Assets/DashGame/Kits/DGAnalytics.cs.meta

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

+ 114 - 0
Assets/DashGame/Kits/DGFileUtil.cs

@@ -0,0 +1,114 @@
+using UnityEngine;
+using System.Collections;
+using System.Collections.Generic;
+using System.IO;
+
+public class DGFileUtil
+{
+
+	public static List<string> GetAllFiles(DirectoryInfo dir, string except=null)
+	{
+		List<string> fileList = new List<string>();
+		if(!Directory.Exists(dir.FullName) && !File.Exists(dir.FullName))
+		{
+			Debug.LogError("Directory not exists : "+dir.FullName);
+			return fileList;
+		}
+		
+		FileInfo[] allFile = dir.GetFiles();
+		for(int i=0; i<allFile.Length; i++)
+		{
+			FileInfo fi = allFile[i];
+			if(except != null && fi.Name.IndexOf(except) != -1)
+			{
+				continue;
+			}
+			fileList.Add(fi.FullName);
+		}
+		
+		DirectoryInfo[] allDir= dir.GetDirectories();
+		foreach (DirectoryInfo d in allDir)
+		{
+			if(d.FullName == dir.FullName)
+			{
+				continue;
+			}
+			fileList.AddRange(GetAllFiles(d, except));
+		}
+		return fileList;
+	}
+
+	public static List<string> GetChildrenDirectory(DirectoryInfo dir)
+	{
+		List<string> fileList = new List<string>();
+		if(!Directory.Exists(dir.FullName) && !File.Exists(dir.FullName))
+		{
+			Debug.LogError("Directory not exists : "+dir.FullName);
+			return fileList;
+		}
+		
+		DirectoryInfo[] allDir= dir.GetDirectories();
+		foreach (DirectoryInfo d in allDir)
+		{
+			if(d.FullName == dir.FullName)
+			{
+				continue;
+			}
+			fileList.Add(d.FullName);
+		}
+		return fileList;
+	}
+
+	public static void CreateDirectoryWhenNotExists(string destination)
+	{
+		destination = destination.Replace("\\", "/");
+		string dir = destination.Substring(0, destination.LastIndexOf("/"));
+		if(!Directory.Exists(dir))
+		{
+			Directory.CreateDirectory(dir);
+		}
+	}
+
+	public static void CopyFile(string source, string destination)
+	{
+		CreateDirectoryWhenNotExists(destination);
+		File.Copy(source, destination);
+	}
+
+	public static void CopyFileOrDirectory(string source, string destination, string except=null)
+	{
+		List<string> list = DGFileUtil.GetAllFiles(new DirectoryInfo(source), except);
+		for(int i=0; i<list.Count; i++)
+		{
+			string path = list[i];
+			string destPath = destination + path.Substring(source.Length);
+			DGFileUtil.CopyFile(path, destPath);
+		}
+	}
+
+
+	public static string GetFileNameByPath(string path)
+	{
+		path = path.Replace("\\", "/");
+		return path.Substring(path.LastIndexOf("/")+1);
+	}
+
+
+
+	public static void SaveFile(byte[] bytes, string path)
+	{
+		CreateDirectoryWhenNotExists(path);
+
+		FileStream output = new FileStream(path, FileMode.Create);
+		output.Write (bytes, 0, bytes.Length);
+
+		output.Flush();
+		output.Close();
+		output.Dispose();
+
+		Debuger.Log ("save file : "+path);
+	}
+
+
+}
+

+ 12 - 0
Assets/DashGame/Kits/DGFileUtil.cs.meta

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

+ 73 - 0
Assets/DashGame/Kits/DecryptionUtil.cs

@@ -0,0 +1,73 @@
+using System;   
+using System.Configuration;     
+using System.Security.Cryptography;   
+using System.IO;   
+using System.Text;
+using UnityEngine;
+using UnityEngine.UI;
+
+/*
+ * create by superbee, 2015-07-16
+ */ 
+
+public class DecryptionUtil
+{
+
+    private static string skey = "UnityBa1";
+
+	public static string GetKey()
+	{
+		return skey;
+	}
+  
+	/// <summary>  
+	///   
+	/// </summary>  
+	/// <param name="pToDecrypt"> 待解密的字符串</param>  
+	/// <param name="sKey"> 解密密钥,要求为8字节,和加密密钥相同</param>  
+	/// <returns>解密成功返回解密后的字符串,失败返源串</returns>  
+	public static string Decryption(string pToDecrypt)  
+	{  
+		//    HttpContext.Current.Response.Write(pToDecrypt + "<br>" + sKey);     
+		//    HttpContext.Current.Response.End();     
+		DESCryptoServiceProvider des = new DESCryptoServiceProvider();  
+		
+		byte[] inputByteArray = new byte[pToDecrypt.Length / 2];  
+		for (int x = 0; x < pToDecrypt.Length / 2; x++)  
+		{  
+			int i = (Convert.ToInt32(pToDecrypt.Substring(x * 2, 2), 16));  
+			inputByteArray[x] = (byte)i;
+		}
+
+        des.Key = ASCIIEncoding.ASCII.GetBytes(skey);
+        des.IV = ASCIIEncoding.ASCII.GetBytes(skey);  
+		MemoryStream ms = new MemoryStream();  
+		CryptoStream cs = new CryptoStream(ms, des.CreateDecryptor(), CryptoStreamMode.Write);  
+		cs.Write(inputByteArray, 0, inputByteArray.Length);  
+		cs.FlushFinalBlock();
+		
+		StringBuilder ret = new StringBuilder();  
+		
+		return System.Text.Encoding.Default.GetString(ms.ToArray());  
+	}
+
+	public static string Encryption(string pToEncrypt)
+	{
+		DESCryptoServiceProvider des = new DESCryptoServiceProvider();  
+		byte[] inputByteArray = Encoding.Default.GetBytes(pToEncrypt);  
+		des.Key = ASCIIEncoding.ASCII.GetBytes(skey);  
+		des.IV = ASCIIEncoding.ASCII.GetBytes(skey); 
+		MemoryStream ms = new MemoryStream();  
+		CryptoStream cs = new CryptoStream(ms, des.CreateEncryptor(), CryptoStreamMode.Write);  
+		cs.Write(inputByteArray, 0, inputByteArray.Length);  
+		cs.FlushFinalBlock();
+		StringBuilder ret = new StringBuilder();
+		foreach (byte b in ms.ToArray())  
+		{  
+			ret.AppendFormat("{0:X2}", b);  
+		}  
+		ret.ToString();  
+		return ret.ToString();
+	}
+
+}

+ 12 - 0
Assets/DashGame/Kits/DecryptionUtil.cs.meta

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

+ 46 - 0
Assets/DashGame/Kits/GameTime.cs

@@ -0,0 +1,46 @@
+using System;
+using UnityEngine;
+
+public class GameTime
+{
+	public GameTime ()
+	{
+	}
+	
+	//private static float time = 0.0f;
+	
+	public static float time
+	{
+		get
+		{
+			return Time.time;
+		}
+	}
+	
+	public static float deltaTime
+	{
+		get
+		{
+			return Time.deltaTime;
+		}
+	}
+
+	public static float realtimeSinceStartup
+	{
+		get
+		{
+			return Time.realtimeSinceStartup;
+		}
+	}
+
+	public static float timeScale
+	{
+		set{
+			Time.timeScale = value;
+		}
+		get{ 
+			return Time.timeScale;
+		}
+	}
+}
+

+ 8 - 0
Assets/DashGame/Kits/GameTime.cs.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 5db5d5156586f6642911cbefab5340e2
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 

+ 47 - 0
Assets/DashGame/Kits/JsonUtil.cs

@@ -0,0 +1,47 @@
+using UnityEngine;
+using System.Collections;
+using LitJson;
+
+public class JsonUtil
+{
+
+	public static bool ContainKey(JsonData data, string key)
+	{
+		if(data == null || data.Inst_Object == null)
+			return false;
+		return data.Inst_Object.ContainsKey(key);
+	}
+
+	public static int ToInt(JsonData data)
+	{
+		if (data == null)
+			return 0;
+		
+		if(data.IsString)
+		{
+			return StringUtil.ToInt((string)data);
+		}
+		else if(data.IsInt)
+		{
+			return (int)data;
+		}
+		return 0;
+	}
+
+	public static bool ToBool(JsonData data)
+	{
+		if (data == null)
+			return false;
+		
+		if(data.IsString)
+		{
+			return StringUtil.ToBool((string)data);
+		}
+		else if(data.IsBoolean)
+		{
+			return (bool)data;
+		}
+		return false;
+	}
+}
+

+ 12 - 0
Assets/DashGame/Kits/JsonUtil.cs.meta

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

+ 98 - 0
Assets/DashGame/Kits/Language.cs

@@ -0,0 +1,98 @@
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+using System.Xml;
+
+public class Language
+{
+	
+	private static Dictionary<string, string> lanDict;
+	
+	public static void init ()
+	{
+		lanDict = new Dictionary<string, string>();
+	}
+	
+	public static string GetStr(string id)
+	{
+		if(lanDict == null) 
+		{
+			init ();
+		}
+		
+		if(!lanDict.ContainsKey(id))
+		{
+			return "Topic missing id["+id+"]";
+		}
+		return lanDict[id];
+	}
+
+
+
+
+
+
+
+
+	private static SystemLanguage defaultLan = SystemLanguage.English;
+	private static SystemLanguage currentLan;
+	private static XmlDocument xml;
+	
+	public static void Init (SystemLanguage lan)
+	{
+		Debuger.Log("Init Language "+lan.ToString());
+
+		currentLan = lan;
+		TextAsset textAsset = (TextAsset)Resources.Load("XML/Language/"+lan.ToString());
+		if(textAsset == null)
+		{
+			Debuger.LogError("Can not find language use default "+defaultLan);
+			textAsset = (TextAsset)Resources.Load("XML/Language/"+defaultLan.ToString());
+			currentLan = defaultLan;
+		}
+		
+		if(xml == null)
+			xml = new XmlDocument();
+		xml.LoadXml(textAsset.text);
+	}
+
+	private static SystemLanguage GetSystemLanguage()
+	{
+		return SystemLanguage.English;
+//		return SystemLanguage.Chinese;
+	}
+
+	public static SystemLanguage GetCurrentLanguage()
+	{
+		if(xml == null)
+			Init (GetSystemLanguage());
+		return currentLan;
+	}
+	
+	public static string GetStr(string page, string id)
+	{
+		if(xml == null) 
+		{
+			Init (GetSystemLanguage());
+		}
+		
+		try
+		{
+			XmlNode pageNode = xml.SelectSingleNode("lan/"+page);
+			XmlNode node = pageNode.SelectSingleNode(id);
+			if(node != null)
+				return node.InnerText.Replace("\\n", "\n");
+		}
+		catch(Exception e)
+		{
+			Debuger.LogException(e);
+		}
+		
+		string error = "Topic missing page["+page+"] id["+id+"]";
+		Debuger.LogError(error);
+		return error;
+	}
+
+}
+

+ 8 - 0
Assets/DashGame/Kits/Language.cs.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: ab01c95d78fe04746896a8edf5111d7b
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 

+ 79 - 0
Assets/DashGame/Kits/MD5Util.cs

@@ -0,0 +1,79 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     此代码由工具生成。
+//     运行时版本:4.0.30319.1
+//
+//     对此文件的更改可能会导致不正确的行为,并且如果
+//     重新生成代码,这些更改将会丢失。
+// </auto-generated>
+//------------------------------------------------------------------------------
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Security.Cryptography;
+using System.IO;
+
+public class MD5Util
+{
+	public static string Encrypt(string input)
+	{
+		MD5 md5 = MD5.Create(); 
+		byte[] inputBytes = System.Text.Encoding.ASCII.GetBytes(input); 
+		byte[] hash = md5.ComputeHash(inputBytes); 
+		StringBuilder sb = new StringBuilder(); 
+		for (int i = 0; i < hash.Length; i++) 
+		{
+			sb.Append(hash[i].ToString("x2"));//x2 lowercase, X2 uppercase
+		}
+		return sb.ToString();
+	}
+
+
+	public static string GetFileHash(string filePath)
+	{           
+		try
+		{
+			FileStream fs = File.Open(filePath, FileMode.Open);
+			int len = (int)fs.Length;
+			byte[] data = new byte[len];
+			fs.Read(data, 0, len);
+			fs.Close();
+			fs.Dispose();
+			MD5 md5 = new MD5CryptoServiceProvider();
+			byte[] result = md5.ComputeHash(data);
+			string fileMD5 = "";
+			foreach (byte b in result)
+			{
+				fileMD5 += Convert.ToString(b, 16);
+			}
+			return fileMD5;
+		}
+		catch (Exception e)
+		{
+			Debuger.LogException(e);
+			return "";
+		}
+	}
+
+	public static string GetFileHash(byte[] data)
+	{           
+		try
+		{
+			MD5 md5 = new MD5CryptoServiceProvider();
+			byte[] result = md5.ComputeHash(data);
+			string fileMD5 = "";
+			foreach (byte b in result)
+			{
+				fileMD5 += Convert.ToString(b, 16);
+			}
+			return fileMD5;
+		}
+		catch (Exception e)
+		{
+			Debuger.LogException(e);
+			return "";
+		}
+	}
+
+}
+

+ 8 - 0
Assets/DashGame/Kits/MD5Util.cs.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: d1019376682490b459defaa72a84bf1b
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 

+ 160 - 0
Assets/DashGame/Kits/NumberUtil.cs

@@ -0,0 +1,160 @@
+using System;
+using UnityEngine;
+using System.Collections;
+using System.Collections.Generic;
+
+public class NumberUtil
+{
+
+	public static float angleToRadian(float angle)
+	{
+		return angle/180*Mathf.PI;
+	}
+	
+	public static float radianToAngle(float radian)
+	{
+		return radian/Mathf.PI*180;
+	}
+
+	public static float getRadianByATan(float targetX, float targetY, float originX, float originY)
+	{
+		float dx = targetX-originX;
+		float dy = targetY-originY;
+		return Mathf.Atan2(dy, dx);
+	}
+
+	public static float forceBetween(float origin, float min, float max)
+	{
+		if(origin < min) return min;
+		if(origin > max) return max;
+		return origin;
+	}
+
+	public static int forceBetween(int origin, int min, int max)
+	{
+		if(origin < min) return min;
+		if(origin > max) return max;
+		return origin;
+	}
+	
+	public static float getCloseToTargetAngle(float origin, float target, float step)
+	{
+		origin = corverAngleBetween(origin, -180f, 180f);
+		target = corverAngleBetween(target, -180f, 180f);
+		float deltaAngle = Mathf.Abs(target - origin);
+		if(deltaAngle<=step || deltaAngle >= (360f-step))
+		{
+			origin = target;
+		}
+		else if(target > origin)
+		{
+			if(target-origin > 180f)
+			{
+				origin -= step;
+			}
+			else
+			{
+				origin += step;
+			}
+		}
+		else
+		{
+			if(origin-target > 180f)
+			{
+				origin += step;
+			}
+			else
+			{
+				origin -= step;
+			}
+		}
+		return origin;
+	}
+
+	public static float corverAngleBetween(float angle, float min, float max)
+	{
+		if(angle < min)
+		{
+			while(angle < min)
+			{
+				angle += 360f;
+			}
+		}
+		else if(angle > max)
+		{
+			while(angle > max)
+			{
+				angle -= 360f;
+			}
+		}
+		return angle;
+	}
+
+	public static float distanceVector2(Vector2 origin, Vector2 target)
+	{
+		return Vector2.Distance(origin, target);
+	}
+
+	public static float distanceVector3(Vector3 origin, Vector3 target, bool ignoreY=false)
+	{
+		if(ignoreY)
+			origin.y = target.y = 0;
+		return Vector3.Distance(origin, target);
+	}
+
+	public static string getTimeString(float seconds, bool enableHour=true)
+	{
+		bool isNegative = false;
+		if(seconds < 0)
+		{
+			isNegative = true;
+			seconds = -seconds;
+		}
+
+		int sec = (int)seconds;
+
+		int h = enableHour?sec/(60*60):0;
+		int tempSec = enableHour?sec%(60*60):sec;
+		int m = tempSec/60;
+		tempSec = tempSec%60;
+		int s = tempSec;
+
+		string hStr = enableHour?("00"+h):"";
+		string mStr = "00"+m;
+		string sStr = "00"+s;
+
+		string str = "";
+		if(enableHour)
+			str = hStr.Substring(hStr.Length-2, 2)+":"+mStr.Substring(mStr.Length-2, 2)+":"+sStr.Substring(sStr.Length-2, 2);
+		else
+			str = mStr.Substring(mStr.Length-2, 2)+":"+sStr.Substring(sStr.Length-2, 2);
+
+		if(isNegative)
+			str = "-"+str;
+		return str;
+	}
+
+
+	public static string GetPercentText(double value, int digits)
+	{
+		string str = Math.Round((double)(value * 100), digits).ToString();
+		return str + "%";
+	}
+
+	public static string AddThousandSplit(int value)
+	{
+		List<string> list = new List<string>();
+		do{
+			int num = value%1000;
+			value = value/1000;
+			if(value > 0)
+				list.Insert(0, StringUtil.FillZero(num, 3));
+			else
+				list.Insert(0, num.ToString());
+		}
+		while(value != 0);
+
+		return StringUtil.Join(list, " ");
+	}
+}
+

+ 8 - 0
Assets/DashGame/Kits/NumberUtil.cs.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: ba9d149ca59ef0b4d855837f59b90e0d
+MonoImporter:
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 

+ 139 - 0
Assets/DashGame/Kits/StringUtil.cs

@@ -0,0 +1,139 @@
+using UnityEngine;
+using System.Collections;
+using System.Collections.Generic;
+
+public class StringUtil
+{
+	public static string[] Split(string str, char c)
+	{
+		if(Empty(str))
+			return new string[0];
+
+		return str.Split(new char[]{c});
+	}
+
+	public static int[] SplitToInt(string str, char c)
+	{
+		if(Empty(str))
+			return new int[0];
+
+		string[] strArr = Split(str, c);
+		int[] intArr = new int[strArr.Length];
+		for(int i=0; i<strArr.Length; i++)
+		{
+			intArr[i] = ToInt(strArr[i]);
+		}
+		return intArr;
+	}
+
+	public static float[] SplitToFloat(string str, char c)
+	{
+		if(Empty(str))
+			return new float[0];
+
+		string[] strArr = Split(str, c);
+		float[] floatArr = new float[strArr.Length];
+		for(int i=0; i<strArr.Length; i++)
+		{
+			floatArr[i] = ToFloat(strArr[i]);
+		}
+		return floatArr;
+	}
+
+	public static bool Empty(string str)
+	{
+		return str == null || str == "";
+	}
+
+	public static string FillZero(string str, int count)
+	{
+		str = "0000000000000000"+str;
+		str = str.Substring(str.Length-count, count);
+		return str;
+	}
+
+	public static string FillZero(int value, int count)
+	{
+		return FillZero(value.ToString(), count);
+	}
+
+	public static int ToInt(string str)
+	{
+		if(StringUtil.Empty(str))
+		{
+			return 0;
+		}
+		return int.Parse(str);
+	}
+
+	public static float ToFloat(string str)
+	{
+		if(StringUtil.Empty(str))
+		{
+			return 0;
+		}
+		return float.Parse(str);
+	}
+
+	public static bool ToBool(string str)
+	{
+		str = str.ToLower();
+		if(str == "true")
+		{
+			return true;
+		}
+		else if(str == "false")
+		{
+			return false;
+		}
+
+		int value = ToInt(str);
+		if(value > 0)
+			return true;
+		return false;
+	}
+
+
+	public static string Join(List<string> list, string separator)
+	{
+		string str = "";
+		for (int i = 0; i < list.Count; i++)
+		{
+			str += list[i];
+			if (i < list.Count - 1)
+				str += separator;
+		}
+		return str;
+	}
+
+
+
+	public static string LimitInput(string text, int limit)
+	{
+		string oldText = text;
+		string newText = WWW.EscapeURL (text);
+		int delta = (newText.Length - oldText.Length)/8;
+		int newLength = oldText.Length + delta;
+		if (newLength > limit) {
+			int reduce = newLength - limit;
+			oldText = oldText.Substring (0, oldText.Length - reduce);
+		}
+		return oldText;
+	}
+
+	public static List<char> InputValidateCharList = new List<char>{'`', '&', '\\'};
+
+
+	public static char InputValidateHandler(string input, int charIndex, char addedChar)
+	{
+		//Checks if a dollar sign is entered....
+		if (InputValidateCharList.Contains(addedChar))
+		{
+			// ... if it is change it to an empty character.
+			addedChar = '\0';
+		}
+		return addedChar;
+	}
+}
+
+

+ 12 - 0
Assets/DashGame/Kits/StringUtil.cs.meta

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

+ 9 - 0
Assets/DashGame/SocialPlatforms.meta

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

+ 124 - 0
Assets/DashGame/SocialPlatforms/FaceBookPlatform.cs

@@ -0,0 +1,124 @@
+using UnityEngine;
+using System.Collections;
+using System.Collections.Generic;
+using Facebook.Unity;
+using DashGame;
+
+public class FaceBookPlatform : ISocialPlatform 
+{
+
+	public SocialUser me;
+	public SocialUser[] friends;
+
+	private CallBackUtil.BoolCallBack initCallBack;
+	public void Init(CallBackUtil.BoolCallBack callBack)
+	{
+		initCallBack = callBack;
+		if (!FB.IsInitialized) {
+			// Initialize the Facebook SDK
+			FB.Init(InitCallback);
+		} else {
+			// Already initialized, signal an app activation App Event
+			InitCallback();
+		}
+	}
+
+	private void InitCallback ()
+	{
+		if (FB.IsInitialized) {
+			// Signal an app activation App Event
+			FB.ActivateApp();
+		} else {
+			Debug.Log("Failed to Initialize the Facebook SDK");
+		}
+
+		if(initCallBack != null)
+		{
+			initCallBack (FB.IsInitialized);
+			initCallBack = null;
+		}
+	}
+
+	public bool IsInitialized()
+	{
+		return FB.IsInitialized;
+	}
+
+	private CallBackUtil.BoolCallBack loginCallBack;
+	public void Login(CallBackUtil.BoolCallBack callBack)
+	{
+		loginCallBack = callBack;
+		var perms = new List<string>(){"public_profile", "email", "user_friends"};
+		FB.LogInWithReadPermissions(perms, AuthCallback);
+	}
+
+	private void AuthCallback (ILoginResult result) {
+		if (FB.IsLoggedIn) {
+			// AccessToken class will have session details
+			AccessToken aToken = Facebook.Unity.AccessToken.CurrentAccessToken;
+			// Print current access token's User ID
+			Debug.Log(aToken.UserId);
+			// Print current access token's granted permissions
+			foreach (string perm in aToken.Permissions) {
+				Debug.Log(perm);
+			}
+		} else {
+			Debug.Log("User cancelled login");
+		}
+
+		if (loginCallBack != null) {
+			loginCallBack (FB.IsLoggedIn);
+			loginCallBack = null;
+		}
+	}
+
+	public bool IsLoggedIn()
+	{
+		return FB.IsLoggedIn;
+	}
+
+
+	private CallBackUtil.BoolCallBack friendsCallBack;
+	public void RequestFriends(CallBackUtil.BoolCallBack callBack)
+	{
+		this.friendsCallBack = callBack;
+		if (friends == null) {
+			FB.API ("/me/friends", HttpMethod.POST, RequestFriendsCallBack);
+		} else {
+			dealFriendResult (true);
+		}
+	}
+
+	private void RequestFriendsCallBack(IGraphResult result)
+	{
+	}
+
+	private void dealFriendResult(bool successed)
+	{
+		if (friendsCallBack != null) {
+			friendsCallBack (successed);
+			friendsCallBack = null;
+		}
+	}
+
+	public SocialUser[] GetFriends()
+	{
+		return friends;
+	}
+
+	public SocialUser GetMe()
+	{
+		return me;
+	}
+
+	public void Share (string contentURL, string contentTitle, string contentDescription, string photoURL, CallBackUtil.BoolCallBack callBack)
+	{
+		
+	}
+
+	public string IconPath()
+	{
+		return "Textures/SocialIcon/facebook";
+	}
+
+}

+ 12 - 0
Assets/DashGame/SocialPlatforms/FaceBookPlatform.cs.meta

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

+ 19 - 0
Assets/DashGame/SocialPlatforms/ISocialPlatform.cs

@@ -0,0 +1,19 @@
+using UnityEngine;
+using System.Collections;
+
+namespace DashGame
+{
+	public interface ISocialPlatform
+	{
+		void Init(CallBackUtil.BoolCallBack callBack);
+		bool IsInitialized();
+		void Login(CallBackUtil.BoolCallBack callBack);
+		bool IsLoggedIn();
+		void RequestFriends(CallBackUtil.BoolCallBack callBack);
+		SocialUser[] GetFriends();
+		SocialUser GetMe();
+		void Share (string contentURL, string contentTitle, string contentDescription, string photoURL, CallBackUtil.BoolCallBack callBack);
+		string IconPath();
+	}
+}
+

+ 12 - 0
Assets/DashGame/SocialPlatforms/ISocialPlatform.cs.meta

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

+ 16 - 0
Assets/DashGame/SocialPlatforms/SocialUser.cs

@@ -0,0 +1,16 @@
+using System;
+
+namespace DashGame
+{
+	public class SocialUser
+	{
+		public string id;
+		public string nick;
+		public DGSocial.Platform platform;
+		
+		public SocialUser ()
+		{
+		}
+	}
+}
+

+ 12 - 0
Assets/DashGame/SocialPlatforms/SocialUser.cs.meta

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

+ 9 - 0
Assets/Editor.meta

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

部分文件因为文件数量过多而无法显示