├── .gitignore ├── Assets ├── Plugins.meta ├── Plugins │ ├── SimpleJSON-master.meta │ └── SimpleJSON-master │ │ ├── Changelog.txt │ │ ├── Changelog.txt.meta │ │ ├── LICENSE │ │ ├── LICENSE.meta │ │ ├── README │ │ ├── README.meta │ │ ├── SimpleJSON.cs │ │ ├── SimpleJSON.cs.meta │ │ ├── SimpleJSONBinary.cs │ │ ├── SimpleJSONBinary.cs.meta │ │ ├── SimpleJSONDotNetTypes.cs │ │ ├── SimpleJSONDotNetTypes.cs.meta │ │ ├── SimpleJSONUnity.cs │ │ └── SimpleJSONUnity.cs.meta ├── Scenes.meta ├── Scenes │ ├── ReadJsonTest.unity │ └── ReadJsonTest.unity.meta ├── Scripts.meta ├── Scripts │ ├── Engine.meta │ ├── Engine │ │ ├── Base.meta │ │ ├── Base │ │ │ ├── TargetPlat.cs │ │ │ └── TargetPlat.cs.meta │ │ ├── NetBase.meta │ │ ├── NetBase │ │ │ ├── Http.cs │ │ │ ├── Http.cs.meta │ │ │ ├── HttpDown.cs │ │ │ ├── HttpDown.cs.meta │ │ │ ├── HttpDownMng.cs │ │ │ ├── HttpDownMng.cs.meta │ │ │ ├── Tcp.cs │ │ │ └── Tcp.cs.meta │ │ ├── Scene.meta │ │ └── Scene │ │ │ ├── Main.unity │ │ │ ├── Main.unity.meta │ │ │ ├── TestDown.cs │ │ │ └── TestDown.cs.meta │ ├── ReadJson.cs │ ├── ReadJson.cs.meta │ ├── Test.cs │ └── Test.cs.meta ├── StreamingAssets.meta └── StreamingAssets │ ├── UserLevel.json │ └── UserLevel.json.meta ├── LICENSE ├── Packages ├── manifest.json └── packages-lock.json ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── PackageManagerSettings.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset ├── UnityConnectSettings.asset ├── VFXManager.asset ├── VersionControlSettings.asset └── XRSettings.asset ├── README.md ├── UserSettings ├── EditorUserSettings.asset └── QuickSearch.settings └── tmp_persistent └── Windows ├── %E5%AF%8C%E4%BA%BA%E5%AE%B6%E7%85%A7%E5%A3%81%20(1).jpg ├── %E5%AF%8C%E4%BA%BA%E5%AE%B6%E7%85%A7%E5%A3%81%20(2).jpg ├── %E5%AF%8C%E4%BA%BA%E5%AE%B6%E7%85%A7%E5%A3%81%20(3).jpg ├── 42140.shtml └── UserLevel.json /.gitignore: -------------------------------------------------------------------------------- 1 | # This .gitignore file should be placed at the root of your Unity project directory 2 | # 3 | # Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore 4 | # 5 | /[Ll]ibrary/ 6 | /[Tt]emp/ 7 | /[Oo]bj/ 8 | /[Bb]uild/ 9 | /[Bb]uilds/ 10 | /[Ll]ogs/ 11 | /[Mm]emoryCaptures/ 12 | 13 | # Asset meta data should only be ignored when the corresponding asset is also ignored 14 | !/[Aa]ssets/**/*.meta 15 | 16 | # Uncomment this line if you wish to ignore the asset store tools plugin 17 | # /[Aa]ssets/AssetStoreTools* 18 | 19 | # Autogenerated Jetbrains Rider plugin 20 | [Aa]ssets/Plugins/Editor/JetBrains* 21 | 22 | # Visual Studio cache directory 23 | .vs/ 24 | 25 | # Gradle cache directory 26 | .gradle/ 27 | *.idea 28 | # Autogenerated VS/MD/Consulo solution and project files 29 | ExportedObj/ 30 | .consulo/ 31 | *.csproj 32 | *.unityproj 33 | *.sln 34 | *.suo 35 | *.tmp 36 | *.user 37 | *.userprefs 38 | *.pidb 39 | *.booproj 40 | *.svd 41 | *.pdb 42 | *.mdb 43 | *.opendb 44 | *.VC.db 45 | 46 | # Unity3D generated meta files 47 | *.pidb.meta 48 | *.pdb.meta 49 | *.mdb.meta 50 | 51 | # Unity3D generated file on crash reports 52 | sysinfo.txt 53 | 54 | # Builds 55 | *.apk 56 | *.unitypackage 57 | 58 | # Crashlytics generated file 59 | crashlytics-build.properties 60 | 61 | -------------------------------------------------------------------------------- /Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2367cef8cfa25984d903101693d0714b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/SimpleJSON-master.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 20bfdf7429f46004d87fd44c370357f9 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/SimpleJSON-master/Changelog.txt: -------------------------------------------------------------------------------- 1 | /* 2 | * [2012-06-09 First Version] 3 | * - provides strongly typed node classes and lists / dictionaries 4 | * - provides easy access to class members / array items / data values 5 | * - the parser now properly identifies types. So generating JSON with this framework should work. 6 | * - only double quotes (") are used for quoting strings. 7 | * - provides "casting" properties to easily convert to / from those types: 8 | * int / float / double / bool 9 | * - provides a common interface for each node so no explicit casting is required. 10 | * - the parser tries to avoid errors, but if malformed JSON is parsed the result is more or less undefined 11 | * - It can serialize/deserialize a node tree into/from an experimental compact binary format. It might 12 | * be handy if you want to store things in a file and don't want it to be easily modifiable 13 | * 14 | * [2012-12-17 Update] 15 | * - Added internal JSONLazyCreator class which simplifies the construction of a JSON tree 16 | * Now you can simple reference any item that doesn't exist yet and it will return a JSONLazyCreator 17 | * The class determines the required type by it's further use, creates the type and removes itself. 18 | * - Added binary serialization / deserialization. 19 | * - Added support for BZip2 zipped binary format. Requires the SharpZipLib ( http://www.icsharpcode.net/opensource/sharpziplib/ ) 20 | * The usage of the SharpZipLib library can be disabled by removing or commenting out the USE_SharpZipLib define at the top 21 | * - The serializer uses different types when it comes to store the values. Since my data values 22 | * are all of type string, the serializer will "try" which format fits best. The order is: int, float, double, bool, string. 23 | * It's not the most efficient way but for a moderate amount of data it should work on all platforms. 24 | * 25 | * [2017-03-08 Update] 26 | * - Optimised parsing by using a StringBuilder for token. This prevents performance issues when large 27 | * string data fields are contained in the json data. 28 | * - Finally refactored the badly named JSONClass into JSONObject. 29 | * - Replaced the old JSONData class by distict typed classes ( JSONString, JSONNumber, JSONBool, JSONNull ) this 30 | * allows to propertly convert the node tree back to json without type information loss. The actual value 31 | * parsing now happens at parsing time and not when you actually access one of the casting properties. 32 | * 33 | * [2017-04-11 Update] 34 | * - Fixed parsing bug where empty string values have been ignored. 35 | * - Optimised "ToString" by using a StringBuilder internally. This should heavily improve performance for large files 36 | * - Changed the overload of "ToString(string aIndent)" to "ToString(int aIndent)" 37 | * 38 | * [2017-11-29 Update] 39 | * - Removed the IEnumerator implementations on JSONArray & JSONObject and replaced it with a common 40 | * struct Enumerator in JSONNode that should avoid garbage generation. The enumerator always works 41 | * on KeyValuePair, even for JSONArray. 42 | * - Added two wrapper Enumerators that allows for easy key or value enumeration. A JSONNode now has 43 | * a "Keys" and a "Values" enumerable property. Those are also struct enumerators / enumerables 44 | * - A KeyValuePair can now be implicitly converted into a JSONNode. This allows 45 | * a foreach loop over a JSONNode to directly access the values only. Since KeyValuePair as well as 46 | * all the Enumerators are structs, no garbage is allocated. 47 | * - To add Linq support another "LinqEnumerator" is available through the "Linq" property. This 48 | * enumerator does implement the generic IEnumerable interface so most Linq extensions can be used 49 | * on this enumerable object. This one does allocate memory as it's a wrapper class. 50 | * - The Escape method now escapes all control characters (# < 32) in strings as uncode characters 51 | * (\uXXXX) and if the static bool JSONNode.forceASCII is set to true it will also escape all 52 | * characters # > 127. This might be useful if you require an ASCII output. Though keep in mind 53 | * when your strings contain many non-ascii characters the strings become much longer (x6) and are 54 | * no longer human readable. 55 | * - The node types JSONObject and JSONArray now have an "Inline" boolean switch which will default to 56 | * false. It can be used to serialize this element inline even you serialize with an indented format 57 | * This is useful for arrays containing numbers so it doesn't place every number on a new line 58 | * - Extracted the binary serialization code into a seperate extension file. All classes are now declared 59 | * as "partial" so an extension file can even add a new virtual or abstract method / interface to 60 | * JSONNode and override it in the concrete type classes. It's of course a hacky approach which is 61 | * generally not recommended, but i wanted to keep everything tightly packed. 62 | * - Added a static CreateOrGet method to the JSONNull class. Since this class is immutable it could 63 | * be reused without major problems. If you have a lot null fields in your data it will help reduce 64 | * the memory / garbage overhead. I also added a static setting (reuseSameInstance) to JSONNull 65 | * (default is true) which will change the behaviour of "CreateOrGet". If you set this to false 66 | * CreateOrGet will not reuse the cached instance but instead create a new JSONNull instance each time. 67 | * I made the JSONNull constructor private so if you need to create an instance manually use 68 | * JSONNull.CreateOrGet() 69 | * 70 | * [2018-01-09 Update] 71 | * - Changed all double.TryParse and double.ToString uses to use the invariant culture to avoid problems 72 | * on systems with a culture that uses a comma as decimal point. 73 | * 74 | * [2018-01-26 Update] 75 | * - Added AsLong. Note that a JSONNumber is stored as double and can't represent all long values. However 76 | * storing it as string would work. 77 | * - Added static setting "JSONNode.longAsString" which controls the default type that is used by the 78 | * LazyCreator when using AsLong 79 | * 80 | * [2018-04-25 Update] 81 | * - Added support for parsing single values (JSONBool, JSONString, JSONNumber, JSONNull) as top level value. 82 | * 83 | * [2019-02-18 Update] 84 | * - Added HasKey(key) and GetValueOrDefault(key, default) to the JSONNode class to provide way to read 85 | * values conditionally without creating a LazyCreator 86 | * 87 | * [2019-03-25 Update] 88 | * - Added static setting "allowLineComments" to the JSONNode class which is true by default. This allows 89 | * "//" line comments when parsing json text as long as it's not within quoted text. All text after // up 90 | * to the end of the line is completely ignored / skipped. This makes it easier to create human readable 91 | * and editable files. Note that stripped comments are not read, processed or preserved in any way. So 92 | * this feature is only relevant for human created files. 93 | * - Explicitly strip BOM (Byte Order Mark) when parsing to avoid getting it leaked into a single primitive 94 | * value. That's a rare case but better safe than sorry. 95 | * - Allowing adding the empty string as key 96 | * 97 | * [2019-12-10 Update] 98 | * - Added Clone() method to JSONNode to allow cloning of a whole node tree. 99 | * 100 | * [2020-09-19 Update] 101 | * - Added Clear() method to JSONNode. 102 | * - The parser will now automatically mark arrays or objects as inline when it doesn't contain any 103 | * new line characters. This should more or less preserve the layout. 104 | * - Added new extension file "SimpleJSONDotNetTypes.cs" to provide support for some basic .NET types 105 | * like decimal, char, byte, sbyte, short, ushort, uint, DateTime, TimeSpan and Guid as well as some 106 | * nullable types. 107 | * - Fixed an error in the Unity extension file. The Color component order was wrong (it was argb, now it's rgba) 108 | * - There are now two static float variables (ColorDefaultAlpha and Color32DefaultAlpha) to specify the default 109 | * alpha values when reading UnityEngine.Color / Color32 values where the alpha value is absent. The default 110 | * values are 1.0f and 255 respectively. 111 | */ 112 | -------------------------------------------------------------------------------- /Assets/Plugins/SimpleJSON-master/Changelog.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c38a381517af9bb4eaacdc3565c51cfe 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Plugins/SimpleJSON-master/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2012-2017 Markus Göbel (Bunny83) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Assets/Plugins/SimpleJSON-master/LICENSE.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8d703328df2cc0845ac24fd9b3fec4ba 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Plugins/SimpleJSON-master/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kojima648/UnityHTTP-multi-thread-Download/fbbc00ed4055a33262ad22e57340daaa2d32456b/Assets/Plugins/SimpleJSON-master/README -------------------------------------------------------------------------------- /Assets/Plugins/SimpleJSON-master/README.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c68fb78cb42529f46a0ab148bf0add27 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Plugins/SimpleJSON-master/SimpleJSON.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0df07c26a3a7dce4b987a39e875d8c92 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Plugins/SimpleJSON-master/SimpleJSONBinary.cs: -------------------------------------------------------------------------------- 1 | //#define USE_SharpZipLib 2 | /* * * * * 3 | * This is an extension of the SimpleJSON framework to provide methods to 4 | * serialize a JSON object tree into a compact binary format. Optionally the 5 | * binary stream can be compressed with the SharpZipLib when using the define 6 | * "USE_SharpZipLib" 7 | * 8 | * Those methods where originally part of the framework but since it's rarely 9 | * used I've extracted this part into this seperate module file. 10 | * 11 | * You can use the define "SimpleJSON_ExcludeBinary" to selectively disable 12 | * this extension without the need to remove the file from the project. 13 | * 14 | * If you want to use compression when saving to file / stream / B64 you have to include 15 | * SharpZipLib ( http://www.icsharpcode.net/opensource/sharpziplib/ ) in your project and 16 | * define "USE_SharpZipLib" at the top of the file 17 | * 18 | * 19 | * The MIT License (MIT) 20 | * 21 | * Copyright (c) 2012-2017 Markus Göbel (Bunny83) 22 | * 23 | * Permission is hereby granted, free of charge, to any person obtaining a copy 24 | * of this software and associated documentation files (the "Software"), to deal 25 | * in the Software without restriction, including without limitation the rights 26 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 27 | * copies of the Software, and to permit persons to whom the Software is 28 | * furnished to do so, subject to the following conditions: 29 | * 30 | * The above copyright notice and this permission notice shall be included in all 31 | * copies or substantial portions of the Software. 32 | * 33 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 34 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 35 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 36 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 37 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 38 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 39 | * SOFTWARE. 40 | * 41 | * * * * */ 42 | using System; 43 | 44 | namespace SimpleJSON 45 | { 46 | #if !SimpleJSON_ExcludeBinary 47 | public abstract partial class JSONNode 48 | { 49 | public abstract void SerializeBinary(System.IO.BinaryWriter aWriter); 50 | 51 | public void SaveToBinaryStream(System.IO.Stream aData) 52 | { 53 | var W = new System.IO.BinaryWriter(aData); 54 | SerializeBinary(W); 55 | } 56 | 57 | #if USE_SharpZipLib 58 | public void SaveToCompressedStream(System.IO.Stream aData) 59 | { 60 | using (var gzipOut = new ICSharpCode.SharpZipLib.BZip2.BZip2OutputStream(aData)) 61 | { 62 | gzipOut.IsStreamOwner = false; 63 | SaveToBinaryStream(gzipOut); 64 | gzipOut.Close(); 65 | } 66 | } 67 | 68 | public void SaveToCompressedFile(string aFileName) 69 | { 70 | 71 | System.IO.Directory.CreateDirectory((new System.IO.FileInfo(aFileName)).Directory.FullName); 72 | using(var F = System.IO.File.OpenWrite(aFileName)) 73 | { 74 | SaveToCompressedStream(F); 75 | } 76 | } 77 | public string SaveToCompressedBase64() 78 | { 79 | using (var stream = new System.IO.MemoryStream()) 80 | { 81 | SaveToCompressedStream(stream); 82 | stream.Position = 0; 83 | return System.Convert.ToBase64String(stream.ToArray()); 84 | } 85 | } 86 | 87 | #else 88 | public void SaveToCompressedStream(System.IO.Stream aData) 89 | { 90 | throw new Exception("Can't use compressed functions. You need include the SharpZipLib and uncomment the define at the top of SimpleJSON"); 91 | } 92 | 93 | public void SaveToCompressedFile(string aFileName) 94 | { 95 | throw new Exception("Can't use compressed functions. You need include the SharpZipLib and uncomment the define at the top of SimpleJSON"); 96 | } 97 | 98 | public string SaveToCompressedBase64() 99 | { 100 | throw new Exception("Can't use compressed functions. You need include the SharpZipLib and uncomment the define at the top of SimpleJSON"); 101 | } 102 | #endif 103 | 104 | public void SaveToBinaryFile(string aFileName) 105 | { 106 | System.IO.Directory.CreateDirectory((new System.IO.FileInfo(aFileName)).Directory.FullName); 107 | using (var F = System.IO.File.OpenWrite(aFileName)) 108 | { 109 | SaveToBinaryStream(F); 110 | } 111 | } 112 | 113 | public string SaveToBinaryBase64() 114 | { 115 | using (var stream = new System.IO.MemoryStream()) 116 | { 117 | SaveToBinaryStream(stream); 118 | stream.Position = 0; 119 | return System.Convert.ToBase64String(stream.ToArray()); 120 | } 121 | } 122 | 123 | public static JSONNode DeserializeBinary(System.IO.BinaryReader aReader) 124 | { 125 | JSONNodeType type = (JSONNodeType)aReader.ReadByte(); 126 | switch (type) 127 | { 128 | case JSONNodeType.Array: 129 | { 130 | int count = aReader.ReadInt32(); 131 | JSONArray tmp = new JSONArray(); 132 | for (int i = 0; i < count; i++) 133 | tmp.Add(DeserializeBinary(aReader)); 134 | return tmp; 135 | } 136 | case JSONNodeType.Object: 137 | { 138 | int count = aReader.ReadInt32(); 139 | JSONObject tmp = new JSONObject(); 140 | for (int i = 0; i < count; i++) 141 | { 142 | string key = aReader.ReadString(); 143 | var val = DeserializeBinary(aReader); 144 | tmp.Add(key, val); 145 | } 146 | return tmp; 147 | } 148 | case JSONNodeType.String: 149 | { 150 | return new JSONString(aReader.ReadString()); 151 | } 152 | case JSONNodeType.Number: 153 | { 154 | return new JSONNumber(aReader.ReadDouble()); 155 | } 156 | case JSONNodeType.Boolean: 157 | { 158 | return new JSONBool(aReader.ReadBoolean()); 159 | } 160 | case JSONNodeType.NullValue: 161 | { 162 | return JSONNull.CreateOrGet(); 163 | } 164 | default: 165 | { 166 | throw new Exception("Error deserializing JSON. Unknown tag: " + type); 167 | } 168 | } 169 | } 170 | 171 | #if USE_SharpZipLib 172 | public static JSONNode LoadFromCompressedStream(System.IO.Stream aData) 173 | { 174 | var zin = new ICSharpCode.SharpZipLib.BZip2.BZip2InputStream(aData); 175 | return LoadFromBinaryStream(zin); 176 | } 177 | public static JSONNode LoadFromCompressedFile(string aFileName) 178 | { 179 | using(var F = System.IO.File.OpenRead(aFileName)) 180 | { 181 | return LoadFromCompressedStream(F); 182 | } 183 | } 184 | public static JSONNode LoadFromCompressedBase64(string aBase64) 185 | { 186 | var tmp = System.Convert.FromBase64String(aBase64); 187 | var stream = new System.IO.MemoryStream(tmp); 188 | stream.Position = 0; 189 | return LoadFromCompressedStream(stream); 190 | } 191 | #else 192 | public static JSONNode LoadFromCompressedFile(string aFileName) 193 | { 194 | throw new Exception("Can't use compressed functions. You need include the SharpZipLib and uncomment the define at the top of SimpleJSON"); 195 | } 196 | 197 | public static JSONNode LoadFromCompressedStream(System.IO.Stream aData) 198 | { 199 | throw new Exception("Can't use compressed functions. You need include the SharpZipLib and uncomment the define at the top of SimpleJSON"); 200 | } 201 | 202 | public static JSONNode LoadFromCompressedBase64(string aBase64) 203 | { 204 | throw new Exception("Can't use compressed functions. You need include the SharpZipLib and uncomment the define at the top of SimpleJSON"); 205 | } 206 | #endif 207 | 208 | public static JSONNode LoadFromBinaryStream(System.IO.Stream aData) 209 | { 210 | using (var R = new System.IO.BinaryReader(aData)) 211 | { 212 | return DeserializeBinary(R); 213 | } 214 | } 215 | 216 | public static JSONNode LoadFromBinaryFile(string aFileName) 217 | { 218 | using (var F = System.IO.File.OpenRead(aFileName)) 219 | { 220 | return LoadFromBinaryStream(F); 221 | } 222 | } 223 | 224 | public static JSONNode LoadFromBinaryBase64(string aBase64) 225 | { 226 | var tmp = System.Convert.FromBase64String(aBase64); 227 | var stream = new System.IO.MemoryStream(tmp); 228 | stream.Position = 0; 229 | return LoadFromBinaryStream(stream); 230 | } 231 | } 232 | 233 | public partial class JSONArray : JSONNode 234 | { 235 | public override void SerializeBinary(System.IO.BinaryWriter aWriter) 236 | { 237 | aWriter.Write((byte)JSONNodeType.Array); 238 | aWriter.Write(m_List.Count); 239 | for (int i = 0; i < m_List.Count; i++) 240 | { 241 | m_List[i].SerializeBinary(aWriter); 242 | } 243 | } 244 | } 245 | 246 | public partial class JSONObject : JSONNode 247 | { 248 | public override void SerializeBinary(System.IO.BinaryWriter aWriter) 249 | { 250 | aWriter.Write((byte)JSONNodeType.Object); 251 | aWriter.Write(m_Dict.Count); 252 | foreach (string K in m_Dict.Keys) 253 | { 254 | aWriter.Write(K); 255 | m_Dict[K].SerializeBinary(aWriter); 256 | } 257 | } 258 | } 259 | 260 | public partial class JSONString : JSONNode 261 | { 262 | public override void SerializeBinary(System.IO.BinaryWriter aWriter) 263 | { 264 | aWriter.Write((byte)JSONNodeType.String); 265 | aWriter.Write(m_Data); 266 | } 267 | } 268 | 269 | public partial class JSONNumber : JSONNode 270 | { 271 | public override void SerializeBinary(System.IO.BinaryWriter aWriter) 272 | { 273 | aWriter.Write((byte)JSONNodeType.Number); 274 | aWriter.Write(m_Data); 275 | } 276 | } 277 | 278 | public partial class JSONBool : JSONNode 279 | { 280 | public override void SerializeBinary(System.IO.BinaryWriter aWriter) 281 | { 282 | aWriter.Write((byte)JSONNodeType.Boolean); 283 | aWriter.Write(m_Data); 284 | } 285 | } 286 | public partial class JSONNull : JSONNode 287 | { 288 | public override void SerializeBinary(System.IO.BinaryWriter aWriter) 289 | { 290 | aWriter.Write((byte)JSONNodeType.NullValue); 291 | } 292 | } 293 | internal partial class JSONLazyCreator : JSONNode 294 | { 295 | public override void SerializeBinary(System.IO.BinaryWriter aWriter) 296 | { 297 | 298 | } 299 | } 300 | #endif 301 | } 302 | -------------------------------------------------------------------------------- /Assets/Plugins/SimpleJSON-master/SimpleJSONBinary.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0a8140e4e38973e4a875ae76fbe77c31 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Plugins/SimpleJSON-master/SimpleJSONDotNetTypes.cs: -------------------------------------------------------------------------------- 1 | #region License and information 2 | /* * * * * 3 | * 4 | * Extension file for the SimpleJSON framework for better support of some common 5 | * .NET types. It does only work together with the SimpleJSON.cs 6 | * It provides direct conversion support for types like decimal, char, byte, 7 | * sbyte, short, ushort, uint, DateTime, TimeSpan and Guid. In addition there 8 | * are conversion helpers for converting an array of number values into a byte[] 9 | * or a List as well as converting an array of string values into a string[] 10 | * or List. 11 | * Finally there are some additional type conversion operators for some nullable 12 | * types like short?, int?, float?, double?, long? and bool?. They will actually 13 | * assign a JSONNull value when it's null or a JSONNumber when it's not. 14 | * 15 | * The MIT License (MIT) 16 | * 17 | * Copyright (c) 2020 Markus Göbel (Bunny83) 18 | * 19 | * Permission is hereby granted, free of charge, to any person obtaining a copy 20 | * of this software and associated documentation files (the "Software"), to deal 21 | * in the Software without restriction, including without limitation the rights 22 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | * copies of the Software, and to permit persons to whom the Software is 24 | * furnished to do so, subject to the following conditions: 25 | * 26 | * The above copyright notice and this permission notice shall be included in all 27 | * copies or substantial portions of the Software. 28 | * 29 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 35 | * SOFTWARE. 36 | * 37 | * * * * */ 38 | 39 | #endregion License and information 40 | 41 | namespace SimpleJSON 42 | { 43 | using System.Globalization; 44 | using System.Collections.Generic; 45 | public partial class JSONNode 46 | { 47 | #region Decimal 48 | public virtual decimal AsDecimal 49 | { 50 | get 51 | { 52 | decimal result; 53 | if (!decimal.TryParse(Value, out result)) 54 | result = 0; 55 | return result; 56 | } 57 | set 58 | { 59 | Value = value.ToString(); 60 | } 61 | } 62 | 63 | public static implicit operator JSONNode(decimal aDecimal) 64 | { 65 | return new JSONString(aDecimal.ToString()); 66 | } 67 | 68 | public static implicit operator decimal(JSONNode aNode) 69 | { 70 | return aNode.AsDecimal; 71 | } 72 | #endregion Decimal 73 | 74 | #region Char 75 | public virtual char AsChar 76 | { 77 | get 78 | { 79 | if (IsString && Value.Length > 0) 80 | return Value[0]; 81 | if (IsNumber) 82 | return (char)AsInt; 83 | return '\0'; 84 | } 85 | set 86 | { 87 | if (IsString) 88 | Value = value.ToString(); 89 | else if (IsNumber) 90 | AsInt = (int)value; 91 | } 92 | } 93 | 94 | public static implicit operator JSONNode(char aChar) 95 | { 96 | return new JSONString(aChar.ToString()); 97 | } 98 | 99 | public static implicit operator char(JSONNode aNode) 100 | { 101 | return aNode.AsChar; 102 | } 103 | #endregion Decimal 104 | 105 | #region UInt 106 | public virtual uint AsUInt 107 | { 108 | get 109 | { 110 | return (uint)AsDouble; 111 | } 112 | set 113 | { 114 | AsDouble = value; 115 | } 116 | } 117 | 118 | public static implicit operator JSONNode(uint aUInt) 119 | { 120 | return new JSONNumber(aUInt); 121 | } 122 | 123 | public static implicit operator uint(JSONNode aNode) 124 | { 125 | return aNode.AsUInt; 126 | } 127 | #endregion UInt 128 | 129 | #region Byte 130 | public virtual byte AsByte 131 | { 132 | get 133 | { 134 | return (byte)AsInt; 135 | } 136 | set 137 | { 138 | AsInt = value; 139 | } 140 | } 141 | 142 | public static implicit operator JSONNode(byte aByte) 143 | { 144 | return new JSONNumber(aByte); 145 | } 146 | 147 | public static implicit operator byte(JSONNode aNode) 148 | { 149 | return aNode.AsByte; 150 | } 151 | #endregion Byte 152 | #region SByte 153 | public virtual sbyte AsSByte 154 | { 155 | get 156 | { 157 | return (sbyte)AsInt; 158 | } 159 | set 160 | { 161 | AsInt = value; 162 | } 163 | } 164 | 165 | public static implicit operator JSONNode(sbyte aSByte) 166 | { 167 | return new JSONNumber(aSByte); 168 | } 169 | 170 | public static implicit operator sbyte(JSONNode aNode) 171 | { 172 | return aNode.AsSByte; 173 | } 174 | #endregion SByte 175 | 176 | #region Short 177 | public virtual short AsShort 178 | { 179 | get 180 | { 181 | return (short)AsInt; 182 | } 183 | set 184 | { 185 | AsInt = value; 186 | } 187 | } 188 | 189 | public static implicit operator JSONNode(short aShort) 190 | { 191 | return new JSONNumber(aShort); 192 | } 193 | 194 | public static implicit operator short(JSONNode aNode) 195 | { 196 | return aNode.AsShort; 197 | } 198 | #endregion Short 199 | #region UShort 200 | public virtual ushort AsUShort 201 | { 202 | get 203 | { 204 | return (ushort)AsInt; 205 | } 206 | set 207 | { 208 | AsInt = value; 209 | } 210 | } 211 | 212 | public static implicit operator JSONNode(ushort aUShort) 213 | { 214 | return new JSONNumber(aUShort); 215 | } 216 | 217 | public static implicit operator ushort(JSONNode aNode) 218 | { 219 | return aNode.AsUShort; 220 | } 221 | #endregion UShort 222 | 223 | #region DateTime 224 | public virtual System.DateTime AsDateTime 225 | { 226 | get 227 | { 228 | System.DateTime result; 229 | if (!System.DateTime.TryParse(Value, CultureInfo.InvariantCulture, DateTimeStyles.None, out result)) 230 | result = new System.DateTime(0); 231 | return result; 232 | } 233 | set 234 | { 235 | Value = value.ToString(CultureInfo.InvariantCulture); 236 | } 237 | } 238 | 239 | public static implicit operator JSONNode(System.DateTime aDateTime) 240 | { 241 | return new JSONString(aDateTime.ToString(CultureInfo.InvariantCulture)); 242 | } 243 | 244 | public static implicit operator System.DateTime(JSONNode aNode) 245 | { 246 | return aNode.AsDateTime; 247 | } 248 | #endregion DateTime 249 | #region TimeSpan 250 | public virtual System.TimeSpan AsTimeSpan 251 | { 252 | get 253 | { 254 | System.TimeSpan result; 255 | if (!System.TimeSpan.TryParse(Value, CultureInfo.InvariantCulture, out result)) 256 | result = new System.TimeSpan(0); 257 | return result; 258 | } 259 | set 260 | { 261 | Value = value.ToString(); 262 | } 263 | } 264 | 265 | public static implicit operator JSONNode(System.TimeSpan aTimeSpan) 266 | { 267 | return new JSONString(aTimeSpan.ToString()); 268 | } 269 | 270 | public static implicit operator System.TimeSpan(JSONNode aNode) 271 | { 272 | return aNode.AsTimeSpan; 273 | } 274 | #endregion TimeSpan 275 | 276 | #region Guid 277 | public virtual System.Guid AsGuid 278 | { 279 | get 280 | { 281 | System.Guid result; 282 | System.Guid.TryParse(Value, out result); 283 | return result; 284 | } 285 | set 286 | { 287 | Value = value.ToString(); 288 | } 289 | } 290 | 291 | public static implicit operator JSONNode(System.Guid aGuid) 292 | { 293 | return new JSONString(aGuid.ToString()); 294 | } 295 | 296 | public static implicit operator System.Guid(JSONNode aNode) 297 | { 298 | return aNode.AsGuid; 299 | } 300 | #endregion Guid 301 | 302 | #region ByteArray 303 | public virtual byte[] AsByteArray 304 | { 305 | get 306 | { 307 | if (this.IsNull || !this.IsArray) 308 | return null; 309 | int count = Count; 310 | byte[] result = new byte[count]; 311 | for (int i = 0; i < count; i++) 312 | result[i] = this[i].AsByte; 313 | return result; 314 | } 315 | set 316 | { 317 | if (!IsArray || value == null) 318 | return; 319 | Clear(); 320 | for (int i = 0; i < value.Length; i++) 321 | Add(value[i]); 322 | } 323 | } 324 | 325 | public static implicit operator JSONNode(byte[] aByteArray) 326 | { 327 | return new JSONArray { AsByteArray = aByteArray }; 328 | } 329 | 330 | public static implicit operator byte[](JSONNode aNode) 331 | { 332 | return aNode.AsByteArray; 333 | } 334 | #endregion ByteArray 335 | #region ByteList 336 | public virtual List AsByteList 337 | { 338 | get 339 | { 340 | if (this.IsNull || !this.IsArray) 341 | return null; 342 | int count = Count; 343 | List result = new List(count); 344 | for (int i = 0; i < count; i++) 345 | result.Add(this[i].AsByte); 346 | return result; 347 | } 348 | set 349 | { 350 | if (!IsArray || value == null) 351 | return; 352 | Clear(); 353 | for (int i = 0; i < value.Count; i++) 354 | Add(value[i]); 355 | } 356 | } 357 | 358 | public static implicit operator JSONNode(List aByteList) 359 | { 360 | return new JSONArray { AsByteList = aByteList }; 361 | } 362 | 363 | public static implicit operator List (JSONNode aNode) 364 | { 365 | return aNode.AsByteList; 366 | } 367 | #endregion ByteList 368 | 369 | #region StringArray 370 | public virtual string[] AsStringArray 371 | { 372 | get 373 | { 374 | if (this.IsNull || !this.IsArray) 375 | return null; 376 | int count = Count; 377 | string[] result = new string[count]; 378 | for (int i = 0; i < count; i++) 379 | result[i] = this[i].Value; 380 | return result; 381 | } 382 | set 383 | { 384 | if (!IsArray || value == null) 385 | return; 386 | Clear(); 387 | for (int i = 0; i < value.Length; i++) 388 | Add(value[i]); 389 | } 390 | } 391 | 392 | public static implicit operator JSONNode(string[] aStringArray) 393 | { 394 | return new JSONArray { AsStringArray = aStringArray }; 395 | } 396 | 397 | public static implicit operator string[] (JSONNode aNode) 398 | { 399 | return aNode.AsStringArray; 400 | } 401 | #endregion StringArray 402 | #region StringList 403 | public virtual List AsStringList 404 | { 405 | get 406 | { 407 | if (this.IsNull || !this.IsArray) 408 | return null; 409 | int count = Count; 410 | List result = new List(count); 411 | for (int i = 0; i < count; i++) 412 | result.Add(this[i].Value); 413 | return result; 414 | } 415 | set 416 | { 417 | if (!IsArray || value == null) 418 | return; 419 | Clear(); 420 | for (int i = 0; i < value.Count; i++) 421 | Add(value[i]); 422 | } 423 | } 424 | 425 | public static implicit operator JSONNode(List aStringList) 426 | { 427 | return new JSONArray { AsStringList = aStringList }; 428 | } 429 | 430 | public static implicit operator List (JSONNode aNode) 431 | { 432 | return aNode.AsStringList; 433 | } 434 | #endregion StringList 435 | 436 | #region NullableTypes 437 | public static implicit operator JSONNode(int? aValue) 438 | { 439 | if (aValue == null) 440 | return JSONNull.CreateOrGet(); 441 | return new JSONNumber((int)aValue); 442 | } 443 | public static implicit operator int?(JSONNode aNode) 444 | { 445 | if (aNode == null || aNode.IsNull) 446 | return null; 447 | return aNode.AsInt; 448 | } 449 | 450 | public static implicit operator JSONNode(float? aValue) 451 | { 452 | if (aValue == null) 453 | return JSONNull.CreateOrGet(); 454 | return new JSONNumber((float)aValue); 455 | } 456 | public static implicit operator float? (JSONNode aNode) 457 | { 458 | if (aNode == null || aNode.IsNull) 459 | return null; 460 | return aNode.AsFloat; 461 | } 462 | 463 | public static implicit operator JSONNode(double? aValue) 464 | { 465 | if (aValue == null) 466 | return JSONNull.CreateOrGet(); 467 | return new JSONNumber((double)aValue); 468 | } 469 | public static implicit operator double? (JSONNode aNode) 470 | { 471 | if (aNode == null || aNode.IsNull) 472 | return null; 473 | return aNode.AsDouble; 474 | } 475 | 476 | public static implicit operator JSONNode(bool? aValue) 477 | { 478 | if (aValue == null) 479 | return JSONNull.CreateOrGet(); 480 | return new JSONBool((bool)aValue); 481 | } 482 | public static implicit operator bool? (JSONNode aNode) 483 | { 484 | if (aNode == null || aNode.IsNull) 485 | return null; 486 | return aNode.AsBool; 487 | } 488 | 489 | public static implicit operator JSONNode(long? aValue) 490 | { 491 | if (aValue == null) 492 | return JSONNull.CreateOrGet(); 493 | return new JSONNumber((long)aValue); 494 | } 495 | public static implicit operator long? (JSONNode aNode) 496 | { 497 | if (aNode == null || aNode.IsNull) 498 | return null; 499 | return aNode.AsLong; 500 | } 501 | 502 | public static implicit operator JSONNode(short? aValue) 503 | { 504 | if (aValue == null) 505 | return JSONNull.CreateOrGet(); 506 | return new JSONNumber((short)aValue); 507 | } 508 | public static implicit operator short? (JSONNode aNode) 509 | { 510 | if (aNode == null || aNode.IsNull) 511 | return null; 512 | return aNode.AsShort; 513 | } 514 | #endregion NullableTypes 515 | } 516 | } 517 | -------------------------------------------------------------------------------- /Assets/Plugins/SimpleJSON-master/SimpleJSONDotNetTypes.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a01f1d055df81c1469b69f9449c72ce5 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Plugins/SimpleJSON-master/SimpleJSONUnity.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_5_3_OR_NEWER 2 | #region License and information 3 | /* * * * * 4 | * 5 | * Unity extension for the SimpleJSON framework. It does only work together with 6 | * the SimpleJSON.cs 7 | * It provides several helpers and conversion operators to serialize/deserialize 8 | * common Unity types such as Vector2/3/4, Rect, RectOffset, Quaternion and 9 | * Matrix4x4 as JSONObject or JSONArray. 10 | * This extension will add 3 static settings to the JSONNode class: 11 | * ( VectorContainerType, QuaternionContainerType, RectContainerType ) which 12 | * control what node type should be used for serializing the given type. So a 13 | * Vector3 as array would look like [12,32,24] and {"x":12, "y":32, "z":24} as 14 | * object. 15 | * 16 | * 17 | * The MIT License (MIT) 18 | * 19 | * Copyright (c) 2012-2017 Markus Göbel (Bunny83) 20 | * 21 | * Permission is hereby granted, free of charge, to any person obtaining a copy 22 | * of this software and associated documentation files (the "Software"), to deal 23 | * in the Software without restriction, including without limitation the rights 24 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 25 | * copies of the Software, and to permit persons to whom the Software is 26 | * furnished to do so, subject to the following conditions: 27 | * 28 | * The above copyright notice and this permission notice shall be included in all 29 | * copies or substantial portions of the Software. 30 | * 31 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 32 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 33 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 34 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 35 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 36 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 37 | * SOFTWARE. 38 | * 39 | * * * * */ 40 | 41 | #endregion License and information 42 | using UnityEngine; 43 | 44 | namespace SimpleJSON 45 | { 46 | public enum JSONContainerType { Array, Object } 47 | public partial class JSONNode 48 | { 49 | public static byte Color32DefaultAlpha = 255; 50 | public static float ColorDefaultAlpha = 1f; 51 | public static JSONContainerType VectorContainerType = JSONContainerType.Array; 52 | public static JSONContainerType QuaternionContainerType = JSONContainerType.Array; 53 | public static JSONContainerType RectContainerType = JSONContainerType.Array; 54 | public static JSONContainerType ColorContainerType = JSONContainerType.Array; 55 | private static JSONNode GetContainer(JSONContainerType aType) 56 | { 57 | if (aType == JSONContainerType.Array) 58 | return new JSONArray(); 59 | return new JSONObject(); 60 | } 61 | 62 | #region implicit conversion operators 63 | public static implicit operator JSONNode(Vector2 aVec) 64 | { 65 | JSONNode n = GetContainer(VectorContainerType); 66 | n.WriteVector2(aVec); 67 | return n; 68 | } 69 | public static implicit operator JSONNode(Vector3 aVec) 70 | { 71 | JSONNode n = GetContainer(VectorContainerType); 72 | n.WriteVector3(aVec); 73 | return n; 74 | } 75 | public static implicit operator JSONNode(Vector4 aVec) 76 | { 77 | JSONNode n = GetContainer(VectorContainerType); 78 | n.WriteVector4(aVec); 79 | return n; 80 | } 81 | public static implicit operator JSONNode(Color aCol) 82 | { 83 | JSONNode n = GetContainer(ColorContainerType); 84 | n.WriteColor(aCol); 85 | return n; 86 | } 87 | public static implicit operator JSONNode(Color32 aCol) 88 | { 89 | JSONNode n = GetContainer(ColorContainerType); 90 | n.WriteColor32(aCol); 91 | return n; 92 | } 93 | public static implicit operator JSONNode(Quaternion aRot) 94 | { 95 | JSONNode n = GetContainer(QuaternionContainerType); 96 | n.WriteQuaternion(aRot); 97 | return n; 98 | } 99 | public static implicit operator JSONNode(Rect aRect) 100 | { 101 | JSONNode n = GetContainer(RectContainerType); 102 | n.WriteRect(aRect); 103 | return n; 104 | } 105 | public static implicit operator JSONNode(RectOffset aRect) 106 | { 107 | JSONNode n = GetContainer(RectContainerType); 108 | n.WriteRectOffset(aRect); 109 | return n; 110 | } 111 | 112 | public static implicit operator Vector2(JSONNode aNode) 113 | { 114 | return aNode.ReadVector2(); 115 | } 116 | public static implicit operator Vector3(JSONNode aNode) 117 | { 118 | return aNode.ReadVector3(); 119 | } 120 | public static implicit operator Vector4(JSONNode aNode) 121 | { 122 | return aNode.ReadVector4(); 123 | } 124 | public static implicit operator Color(JSONNode aNode) 125 | { 126 | return aNode.ReadColor(); 127 | } 128 | public static implicit operator Color32(JSONNode aNode) 129 | { 130 | return aNode.ReadColor32(); 131 | } 132 | public static implicit operator Quaternion(JSONNode aNode) 133 | { 134 | return aNode.ReadQuaternion(); 135 | } 136 | public static implicit operator Rect(JSONNode aNode) 137 | { 138 | return aNode.ReadRect(); 139 | } 140 | public static implicit operator RectOffset(JSONNode aNode) 141 | { 142 | return aNode.ReadRectOffset(); 143 | } 144 | #endregion implicit conversion operators 145 | 146 | #region Vector2 147 | public Vector2 ReadVector2(Vector2 aDefault) 148 | { 149 | if (IsObject) 150 | return new Vector2(this["x"].AsFloat, this["y"].AsFloat); 151 | if (IsArray) 152 | return new Vector2(this[0].AsFloat, this[1].AsFloat); 153 | return aDefault; 154 | } 155 | public Vector2 ReadVector2(string aXName, string aYName) 156 | { 157 | if (IsObject) 158 | { 159 | return new Vector2(this[aXName].AsFloat, this[aYName].AsFloat); 160 | } 161 | return Vector2.zero; 162 | } 163 | 164 | public Vector2 ReadVector2() 165 | { 166 | return ReadVector2(Vector2.zero); 167 | } 168 | public JSONNode WriteVector2(Vector2 aVec, string aXName = "x", string aYName = "y") 169 | { 170 | if (IsObject) 171 | { 172 | Inline = true; 173 | this[aXName].AsFloat = aVec.x; 174 | this[aYName].AsFloat = aVec.y; 175 | } 176 | else if (IsArray) 177 | { 178 | Inline = true; 179 | this[0].AsFloat = aVec.x; 180 | this[1].AsFloat = aVec.y; 181 | } 182 | return this; 183 | } 184 | #endregion Vector2 185 | 186 | #region Vector3 187 | public Vector3 ReadVector3(Vector3 aDefault) 188 | { 189 | if (IsObject) 190 | return new Vector3(this["x"].AsFloat, this["y"].AsFloat, this["z"].AsFloat); 191 | if (IsArray) 192 | return new Vector3(this[0].AsFloat, this[1].AsFloat, this[2].AsFloat); 193 | return aDefault; 194 | } 195 | public Vector3 ReadVector3(string aXName, string aYName, string aZName) 196 | { 197 | if (IsObject) 198 | return new Vector3(this[aXName].AsFloat, this[aYName].AsFloat, this[aZName].AsFloat); 199 | return Vector3.zero; 200 | } 201 | public Vector3 ReadVector3() 202 | { 203 | return ReadVector3(Vector3.zero); 204 | } 205 | public JSONNode WriteVector3(Vector3 aVec, string aXName = "x", string aYName = "y", string aZName = "z") 206 | { 207 | if (IsObject) 208 | { 209 | Inline = true; 210 | this[aXName].AsFloat = aVec.x; 211 | this[aYName].AsFloat = aVec.y; 212 | this[aZName].AsFloat = aVec.z; 213 | } 214 | else if (IsArray) 215 | { 216 | Inline = true; 217 | this[0].AsFloat = aVec.x; 218 | this[1].AsFloat = aVec.y; 219 | this[2].AsFloat = aVec.z; 220 | } 221 | return this; 222 | } 223 | #endregion Vector3 224 | 225 | #region Vector4 226 | public Vector4 ReadVector4(Vector4 aDefault) 227 | { 228 | if (IsObject) 229 | return new Vector4(this["x"].AsFloat, this["y"].AsFloat, this["z"].AsFloat, this["w"].AsFloat); 230 | if (IsArray) 231 | return new Vector4(this[0].AsFloat, this[1].AsFloat, this[2].AsFloat, this[3].AsFloat); 232 | return aDefault; 233 | } 234 | public Vector4 ReadVector4() 235 | { 236 | return ReadVector4(Vector4.zero); 237 | } 238 | public JSONNode WriteVector4(Vector4 aVec) 239 | { 240 | if (IsObject) 241 | { 242 | Inline = true; 243 | this["x"].AsFloat = aVec.x; 244 | this["y"].AsFloat = aVec.y; 245 | this["z"].AsFloat = aVec.z; 246 | this["w"].AsFloat = aVec.w; 247 | } 248 | else if (IsArray) 249 | { 250 | Inline = true; 251 | this[0].AsFloat = aVec.x; 252 | this[1].AsFloat = aVec.y; 253 | this[2].AsFloat = aVec.z; 254 | this[3].AsFloat = aVec.w; 255 | } 256 | return this; 257 | } 258 | #endregion Vector4 259 | 260 | #region Color / Color32 261 | public Color ReadColor(Color aDefault) 262 | { 263 | if (IsObject) 264 | return new Color(this["r"].AsFloat, this["g"].AsFloat, this["b"].AsFloat, HasKey("a")?this["a"].AsFloat:ColorDefaultAlpha); 265 | if (IsArray) 266 | return new Color(this[0].AsFloat, this[1].AsFloat, this[2].AsFloat, (Count>3)?this[3].AsFloat:ColorDefaultAlpha); 267 | return aDefault; 268 | } 269 | public Color ReadColor() 270 | { 271 | return ReadColor(Color.clear); 272 | } 273 | public JSONNode WriteColor(Color aCol) 274 | { 275 | if (IsObject) 276 | { 277 | Inline = true; 278 | this["r"].AsFloat = aCol.r; 279 | this["g"].AsFloat = aCol.g; 280 | this["b"].AsFloat = aCol.b; 281 | this["a"].AsFloat = aCol.a; 282 | } 283 | else if (IsArray) 284 | { 285 | Inline = true; 286 | this[0].AsFloat = aCol.r; 287 | this[1].AsFloat = aCol.g; 288 | this[2].AsFloat = aCol.b; 289 | this[3].AsFloat = aCol.a; 290 | } 291 | return this; 292 | } 293 | 294 | public Color32 ReadColor32(Color32 aDefault) 295 | { 296 | if (IsObject) 297 | return new Color32((byte)this["r"].AsInt, (byte)this["g"].AsInt, (byte)this["b"].AsInt, (byte)(HasKey("a")?this["a"].AsInt:Color32DefaultAlpha)); 298 | if (IsArray) 299 | return new Color32((byte)this[0].AsInt, (byte)this[1].AsInt, (byte)this[2].AsInt, (byte)((Count>3)?this[3].AsInt:Color32DefaultAlpha)); 300 | return aDefault; 301 | } 302 | public Color32 ReadColor32() 303 | { 304 | return ReadColor32(new Color32()); 305 | } 306 | public JSONNode WriteColor32(Color32 aCol) 307 | { 308 | if (IsObject) 309 | { 310 | Inline = true; 311 | this["r"].AsInt = aCol.r; 312 | this["g"].AsInt = aCol.g; 313 | this["b"].AsInt = aCol.b; 314 | this["a"].AsInt = aCol.a; 315 | } 316 | else if (IsArray) 317 | { 318 | Inline = true; 319 | this[0].AsInt = aCol.r; 320 | this[1].AsInt = aCol.g; 321 | this[2].AsInt = aCol.b; 322 | this[3].AsInt = aCol.a; 323 | } 324 | return this; 325 | } 326 | 327 | #endregion Color / Color32 328 | 329 | #region Quaternion 330 | public Quaternion ReadQuaternion(Quaternion aDefault) 331 | { 332 | if (IsObject) 333 | return new Quaternion(this["x"].AsFloat, this["y"].AsFloat, this["z"].AsFloat, this["w"].AsFloat); 334 | if (IsArray) 335 | return new Quaternion(this[0].AsFloat, this[1].AsFloat, this[2].AsFloat, this[3].AsFloat); 336 | return aDefault; 337 | } 338 | public Quaternion ReadQuaternion() 339 | { 340 | return ReadQuaternion(Quaternion.identity); 341 | } 342 | public JSONNode WriteQuaternion(Quaternion aRot) 343 | { 344 | if (IsObject) 345 | { 346 | Inline = true; 347 | this["x"].AsFloat = aRot.x; 348 | this["y"].AsFloat = aRot.y; 349 | this["z"].AsFloat = aRot.z; 350 | this["w"].AsFloat = aRot.w; 351 | } 352 | else if (IsArray) 353 | { 354 | Inline = true; 355 | this[0].AsFloat = aRot.x; 356 | this[1].AsFloat = aRot.y; 357 | this[2].AsFloat = aRot.z; 358 | this[3].AsFloat = aRot.w; 359 | } 360 | return this; 361 | } 362 | #endregion Quaternion 363 | 364 | #region Rect 365 | public Rect ReadRect(Rect aDefault) 366 | { 367 | if (IsObject) 368 | return new Rect(this["x"].AsFloat, this["y"].AsFloat, this["width"].AsFloat, this["height"].AsFloat); 369 | if (IsArray) 370 | return new Rect(this[0].AsFloat, this[1].AsFloat, this[2].AsFloat, this[3].AsFloat); 371 | return aDefault; 372 | } 373 | public Rect ReadRect() 374 | { 375 | return ReadRect(new Rect()); 376 | } 377 | public JSONNode WriteRect(Rect aRect) 378 | { 379 | if (IsObject) 380 | { 381 | Inline = true; 382 | this["x"].AsFloat = aRect.x; 383 | this["y"].AsFloat = aRect.y; 384 | this["width"].AsFloat = aRect.width; 385 | this["height"].AsFloat = aRect.height; 386 | } 387 | else if (IsArray) 388 | { 389 | Inline = true; 390 | this[0].AsFloat = aRect.x; 391 | this[1].AsFloat = aRect.y; 392 | this[2].AsFloat = aRect.width; 393 | this[3].AsFloat = aRect.height; 394 | } 395 | return this; 396 | } 397 | #endregion Rect 398 | 399 | #region RectOffset 400 | public RectOffset ReadRectOffset(RectOffset aDefault) 401 | { 402 | if (this is JSONObject) 403 | return new RectOffset(this["left"].AsInt, this["right"].AsInt, this["top"].AsInt, this["bottom"].AsInt); 404 | if (this is JSONArray) 405 | return new RectOffset(this[0].AsInt, this[1].AsInt, this[2].AsInt, this[3].AsInt); 406 | return aDefault; 407 | } 408 | public RectOffset ReadRectOffset() 409 | { 410 | return ReadRectOffset(new RectOffset()); 411 | } 412 | public JSONNode WriteRectOffset(RectOffset aRect) 413 | { 414 | if (IsObject) 415 | { 416 | Inline = true; 417 | this["left"].AsInt = aRect.left; 418 | this["right"].AsInt = aRect.right; 419 | this["top"].AsInt = aRect.top; 420 | this["bottom"].AsInt = aRect.bottom; 421 | } 422 | else if (IsArray) 423 | { 424 | Inline = true; 425 | this[0].AsInt = aRect.left; 426 | this[1].AsInt = aRect.right; 427 | this[2].AsInt = aRect.top; 428 | this[3].AsInt = aRect.bottom; 429 | } 430 | return this; 431 | } 432 | #endregion RectOffset 433 | 434 | #region Matrix4x4 435 | public Matrix4x4 ReadMatrix() 436 | { 437 | Matrix4x4 result = Matrix4x4.identity; 438 | if (IsArray) 439 | { 440 | for (int i = 0; i < 16; i++) 441 | { 442 | result[i] = this[i].AsFloat; 443 | } 444 | } 445 | return result; 446 | } 447 | public JSONNode WriteMatrix(Matrix4x4 aMatrix) 448 | { 449 | if (IsArray) 450 | { 451 | Inline = true; 452 | for (int i = 0; i < 16; i++) 453 | { 454 | this[i].AsFloat = aMatrix[i]; 455 | } 456 | } 457 | return this; 458 | } 459 | #endregion Matrix4x4 460 | } 461 | } 462 | #endif 463 | -------------------------------------------------------------------------------- /Assets/Plugins/SimpleJSON-master/SimpleJSONUnity.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2d02f63ece3bfdb40a1ce541fd4f23ab 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d86d7492ede2b704c96fa89433ba311f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/ReadJsonTest.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 12 47 | m_GIWorkflowMode: 1 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 0 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 512 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 256 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 1 83 | m_PVRDenoiserTypeDirect: 1 84 | m_PVRDenoiserTypeIndirect: 1 85 | m_PVRDenoiserTypeAO: 1 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 1 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ExportTrainingData: 0 98 | m_TrainingDataDestination: TrainingData 99 | m_LightProbeSampleCountMultiplier: 4 100 | m_LightingDataAsset: {fileID: 0} 101 | m_LightingSettings: {fileID: 0} 102 | --- !u!196 &4 103 | NavMeshSettings: 104 | serializedVersion: 2 105 | m_ObjectHideFlags: 0 106 | m_BuildSettings: 107 | serializedVersion: 2 108 | agentTypeID: 0 109 | agentRadius: 0.5 110 | agentHeight: 2 111 | agentSlope: 45 112 | agentClimb: 0.4 113 | ledgeDropHeight: 0 114 | maxJumpAcrossDistance: 0 115 | minRegionArea: 2 116 | manualCellSize: 0 117 | cellSize: 0.16666667 118 | manualTileSize: 0 119 | tileSize: 256 120 | accuratePlacement: 0 121 | maxJobWorkers: 0 122 | preserveTilesOutsideBounds: 0 123 | debug: 124 | m_Flags: 0 125 | m_NavMeshData: {fileID: 0} 126 | --- !u!1 &1407201332 127 | GameObject: 128 | m_ObjectHideFlags: 0 129 | m_CorrespondingSourceObject: {fileID: 0} 130 | m_PrefabInstance: {fileID: 0} 131 | m_PrefabAsset: {fileID: 0} 132 | serializedVersion: 6 133 | m_Component: 134 | - component: {fileID: 1407201335} 135 | - component: {fileID: 1407201334} 136 | - component: {fileID: 1407201333} 137 | m_Layer: 0 138 | m_Name: Main Camera 139 | m_TagString: MainCamera 140 | m_Icon: {fileID: 0} 141 | m_NavMeshLayer: 0 142 | m_StaticEditorFlags: 0 143 | m_IsActive: 1 144 | --- !u!81 &1407201333 145 | AudioListener: 146 | m_ObjectHideFlags: 0 147 | m_CorrespondingSourceObject: {fileID: 0} 148 | m_PrefabInstance: {fileID: 0} 149 | m_PrefabAsset: {fileID: 0} 150 | m_GameObject: {fileID: 1407201332} 151 | m_Enabled: 1 152 | --- !u!20 &1407201334 153 | Camera: 154 | m_ObjectHideFlags: 0 155 | m_CorrespondingSourceObject: {fileID: 0} 156 | m_PrefabInstance: {fileID: 0} 157 | m_PrefabAsset: {fileID: 0} 158 | m_GameObject: {fileID: 1407201332} 159 | m_Enabled: 1 160 | serializedVersion: 2 161 | m_ClearFlags: 1 162 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 163 | m_projectionMatrixMode: 1 164 | m_GateFitMode: 2 165 | m_FOVAxisMode: 0 166 | m_SensorSize: {x: 36, y: 24} 167 | m_LensShift: {x: 0, y: 0} 168 | m_FocalLength: 50 169 | m_NormalizedViewPortRect: 170 | serializedVersion: 2 171 | x: 0 172 | y: 0 173 | width: 1 174 | height: 1 175 | near clip plane: 0.3 176 | far clip plane: 1000 177 | field of view: 60 178 | orthographic: 0 179 | orthographic size: 5 180 | m_Depth: -1 181 | m_CullingMask: 182 | serializedVersion: 2 183 | m_Bits: 4294967295 184 | m_RenderingPath: -1 185 | m_TargetTexture: {fileID: 0} 186 | m_TargetDisplay: 0 187 | m_TargetEye: 3 188 | m_HDR: 1 189 | m_AllowMSAA: 1 190 | m_AllowDynamicResolution: 0 191 | m_ForceIntoRT: 0 192 | m_OcclusionCulling: 1 193 | m_StereoConvergence: 10 194 | m_StereoSeparation: 0.022 195 | --- !u!4 &1407201335 196 | Transform: 197 | m_ObjectHideFlags: 0 198 | m_CorrespondingSourceObject: {fileID: 0} 199 | m_PrefabInstance: {fileID: 0} 200 | m_PrefabAsset: {fileID: 0} 201 | m_GameObject: {fileID: 1407201332} 202 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 203 | m_LocalPosition: {x: 0, y: 1, z: -10} 204 | m_LocalScale: {x: 1, y: 1, z: 1} 205 | m_Children: [] 206 | m_Father: {fileID: 0} 207 | m_RootOrder: 0 208 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 209 | --- !u!1 &1520961862 210 | GameObject: 211 | m_ObjectHideFlags: 0 212 | m_CorrespondingSourceObject: {fileID: 0} 213 | m_PrefabInstance: {fileID: 0} 214 | m_PrefabAsset: {fileID: 0} 215 | serializedVersion: 6 216 | m_Component: 217 | - component: {fileID: 1520961864} 218 | - component: {fileID: 1520961863} 219 | m_Layer: 0 220 | m_Name: Directional Light 221 | m_TagString: Untagged 222 | m_Icon: {fileID: 0} 223 | m_NavMeshLayer: 0 224 | m_StaticEditorFlags: 0 225 | m_IsActive: 1 226 | --- !u!108 &1520961863 227 | Light: 228 | m_ObjectHideFlags: 0 229 | m_CorrespondingSourceObject: {fileID: 0} 230 | m_PrefabInstance: {fileID: 0} 231 | m_PrefabAsset: {fileID: 0} 232 | m_GameObject: {fileID: 1520961862} 233 | m_Enabled: 1 234 | serializedVersion: 10 235 | m_Type: 1 236 | m_Shape: 0 237 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 238 | m_Intensity: 1 239 | m_Range: 10 240 | m_SpotAngle: 30 241 | m_InnerSpotAngle: 21.80208 242 | m_CookieSize: 10 243 | m_Shadows: 244 | m_Type: 2 245 | m_Resolution: -1 246 | m_CustomResolution: -1 247 | m_Strength: 1 248 | m_Bias: 0.05 249 | m_NormalBias: 0.4 250 | m_NearPlane: 0.2 251 | m_CullingMatrixOverride: 252 | e00: 1 253 | e01: 0 254 | e02: 0 255 | e03: 0 256 | e10: 0 257 | e11: 1 258 | e12: 0 259 | e13: 0 260 | e20: 0 261 | e21: 0 262 | e22: 1 263 | e23: 0 264 | e30: 0 265 | e31: 0 266 | e32: 0 267 | e33: 1 268 | m_UseCullingMatrixOverride: 0 269 | m_Cookie: {fileID: 0} 270 | m_DrawHalo: 0 271 | m_Flare: {fileID: 0} 272 | m_RenderMode: 0 273 | m_CullingMask: 274 | serializedVersion: 2 275 | m_Bits: 4294967295 276 | m_RenderingLayerMask: 1 277 | m_Lightmapping: 4 278 | m_LightShadowCasterMode: 0 279 | m_AreaSize: {x: 1, y: 1} 280 | m_BounceIntensity: 1 281 | m_ColorTemperature: 6570 282 | m_UseColorTemperature: 0 283 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 284 | m_UseBoundingSphereOverride: 0 285 | m_UseViewFrustumForShadowCasterCull: 1 286 | m_ShadowRadius: 0 287 | m_ShadowAngle: 0 288 | --- !u!4 &1520961864 289 | Transform: 290 | m_ObjectHideFlags: 0 291 | m_CorrespondingSourceObject: {fileID: 0} 292 | m_PrefabInstance: {fileID: 0} 293 | m_PrefabAsset: {fileID: 0} 294 | m_GameObject: {fileID: 1520961862} 295 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 296 | m_LocalPosition: {x: 0, y: 3, z: 0} 297 | m_LocalScale: {x: 1, y: 1, z: 1} 298 | m_Children: [] 299 | m_Father: {fileID: 0} 300 | m_RootOrder: 1 301 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 302 | --- !u!1 &1661377616 303 | GameObject: 304 | m_ObjectHideFlags: 0 305 | m_CorrespondingSourceObject: {fileID: 0} 306 | m_PrefabInstance: {fileID: 0} 307 | m_PrefabAsset: {fileID: 0} 308 | serializedVersion: 6 309 | m_Component: 310 | - component: {fileID: 1661377618} 311 | - component: {fileID: 1661377617} 312 | - component: {fileID: 1661377619} 313 | m_Layer: 0 314 | m_Name: GameObject 315 | m_TagString: Untagged 316 | m_Icon: {fileID: 0} 317 | m_NavMeshLayer: 0 318 | m_StaticEditorFlags: 0 319 | m_IsActive: 1 320 | --- !u!114 &1661377617 321 | MonoBehaviour: 322 | m_ObjectHideFlags: 0 323 | m_CorrespondingSourceObject: {fileID: 0} 324 | m_PrefabInstance: {fileID: 0} 325 | m_PrefabAsset: {fileID: 0} 326 | m_GameObject: {fileID: 1661377616} 327 | m_Enabled: 0 328 | m_EditorHideFlags: 0 329 | m_Script: {fileID: 11500000, guid: 086da1b819386874e8d5c0e61cc3779c, type: 3} 330 | m_Name: 331 | m_EditorClassIdentifier: 332 | m_strJsonPath: UserLevel.json 333 | --- !u!4 &1661377618 334 | Transform: 335 | m_ObjectHideFlags: 0 336 | m_CorrespondingSourceObject: {fileID: 0} 337 | m_PrefabInstance: {fileID: 0} 338 | m_PrefabAsset: {fileID: 0} 339 | m_GameObject: {fileID: 1661377616} 340 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 341 | m_LocalPosition: {x: 2193.7383, y: 1106.876, z: -64.872215} 342 | m_LocalScale: {x: 1, y: 1, z: 1} 343 | m_Children: [] 344 | m_Father: {fileID: 0} 345 | m_RootOrder: 2 346 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 347 | --- !u!114 &1661377619 348 | MonoBehaviour: 349 | m_ObjectHideFlags: 0 350 | m_CorrespondingSourceObject: {fileID: 0} 351 | m_PrefabInstance: {fileID: 0} 352 | m_PrefabAsset: {fileID: 0} 353 | m_GameObject: {fileID: 1661377616} 354 | m_Enabled: 1 355 | m_EditorHideFlags: 0 356 | m_Script: {fileID: 11500000, guid: c1b4e1f85e96a644c827238ed7082e10, type: 3} 357 | m_Name: 358 | m_EditorClassIdentifier: 359 | -------------------------------------------------------------------------------- /Assets/Scenes/ReadJsonTest.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ac08967f629fae74f8babf3e9a8e72d5 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3e94115e101ffa048b2037ed532565ab 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Engine.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 536a8359d4978a943976208642fec9d5 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Engine/Base.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d589b6c2e9f1815469a765c383b07bc7 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/Scripts/Engine/Base/TargetPlat.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using UnityEngine; 5 | 6 | // 目前只定义几个主要的平台,更多的平台请查看帮助,关键字:Platform Dependent Compilation 7 | public enum PALT_TYPE 8 | { 9 | PLAT_UNKNOW, 10 | PLAT_WINDOWS, 11 | PLAT_IOS, // UNITY_STANDALONE_OSX 12 | PLAT_IPHONE, 13 | PLAT_ANDORID, 14 | PLAT_WP8, 15 | }; 16 | 17 | public class CTargetPlat 18 | { 19 | public static PALT_TYPE GetPlatType() 20 | { 21 | #if UNITY_IPHONE 22 | return PALT_TYPE.PLAT_IPHONE; 23 | #elif UNITY_ANDROID 24 | return PALT_TYPE.PLAT_ANDORID; 25 | #elif UNITY_WP8 26 | return PALT_TYPE.PLAT_WP8; 27 | #elif UNITY_STANDALONE_WIN 28 | return PALT_TYPE.PLAT_WINDOWS; 29 | #else 30 | return PALT_TYPE.PLAT_UNKNOW; 31 | #endif 32 | } 33 | static public string GetTargetPlatName() 34 | { 35 | PALT_TYPE ePlatType = GetPlatType(); 36 | switch (ePlatType) 37 | { 38 | case PALT_TYPE.PLAT_IOS: 39 | case PALT_TYPE.PLAT_IPHONE: 40 | return "Ios"; 41 | case PALT_TYPE.PLAT_ANDORID: 42 | return "Android"; 43 | case PALT_TYPE.PLAT_WP8: 44 | return "wp8"; 45 | default: 46 | break; 47 | } 48 | return "Windows"; 49 | } 50 | public static string GetStreamAssetsURL(string szFileName) 51 | { 52 | #if UNITY_STANDALONE || UNITY_EDITOR 53 | string url = "file:///" + Application.streamingAssetsPath + "/" + GetTargetPlatName() + '/' + szFileName; 54 | return url; 55 | #elif UNITY_ANDROID 56 | string url = Application.streamingAssetsPath + "/" + GetTargetPlatName() + '/' + szFileName; 57 | return url; 58 | #elif UNITY_IPHONE 59 | string url = "file://" + Application.streamingAssetsPath + "/" + GetTargetPlatName() + '/' + szFileName; 60 | return url; 61 | #else 62 | string url = "file:///" + Application.streamingAssetsPath + "/" + GetTargetPlatName() + '/' + szFileName; 63 | return url; 64 | #endif 65 | } 66 | public static string GetAssetPathName(string szFileName) 67 | { 68 | #if UNITY_STANDALONE || UNITY_EDITOR 69 | string url = Application.streamingAssetsPath + "/" + GetTargetPlatName() + '/' + szFileName; 70 | return url; 71 | #elif UNITY_ANDROID 72 | string url = Application.streamingAssetsPath + "/" + GetTargetPlatName() + '/' + szFileName; 73 | return url; 74 | #elif UNITY_IPHONE 75 | string url = Application.streamingAssetsPath + "/" + GetTargetPlatName() + '/' + szFileName; 76 | return url; 77 | #else 78 | string url = Application.streamingAssetsPath + "/" + GetTargetPlatName() + '/' + szFileName; 79 | return url; 80 | #endif 81 | } 82 | 83 | private static string m_persistent_root_path = string.Empty; 84 | /// 85 | /// persistent地址 86 | /// 87 | public static string PersistentRootPath 88 | { 89 | get 90 | { 91 | if (m_persistent_root_path == String.Empty) 92 | { 93 | string szDataPath = Application.persistentDataPath; 94 | #if UNITY_STANDALONE || UNITY_EDITOR 95 | szDataPath = Application.dataPath; 96 | szDataPath = szDataPath.Substring(0, szDataPath.Length - 6) + "tmp_persistent"; 97 | #endif 98 | 99 | #if UNITY_IPHONE 100 | m_persistent_root_path = string.Format( "{0}/Ios", szDataPath ); 101 | #elif UNITY_ANDROID 102 | m_persistent_root_path = string.Format( "{0}/Android", szDataPath ); 103 | #else 104 | m_persistent_root_path = szDataPath + "/Windows"; 105 | #endif 106 | if (!System.IO.Directory.Exists(m_persistent_root_path)) 107 | System.IO.Directory.CreateDirectory(m_persistent_root_path); 108 | } 109 | return m_persistent_root_path; 110 | } 111 | } 112 | } 113 | -------------------------------------------------------------------------------- /Assets/Scripts/Engine/Base/TargetPlat.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 50b26ef10173010428e0efbba0df107c 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Engine/NetBase.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 660f922b07972644eb467ef3f4463ce5 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/Scripts/Engine/NetBase/Http.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 12bc9f58e25fd5548bab1dc0c1acdc43 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Engine/NetBase/HttpDown.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Text; 5 | 6 | /////////////////////////////////////////////////////////// 7 | // 8 | // ------------------------------------------------------ 9 | // 功能描述 :Http 下载的接口类 10 | // 11 | /////////////////////////////////////////////////////////// 12 | 13 | public class CHttpDown 14 | { 15 | public delegate void LPOnReceiveDownFile(int nRecvSize); 16 | 17 | // 功能:获取下载文件的大小 18 | // 参数:url - 网络URL地址 19 | // nFileSize - 输出文件的大小 20 | // 返回值:返回true表示得到了文件的大小,URL地址有效; 返回false表示无法得到文件的信息 21 | // 说明:这个接口是阻塞模式的,请不要在主线程调用 22 | static public bool GetDownFileSize(string url, out int nOutFileSize, long nRandSeed = 0) 23 | { 24 | nOutFileSize = 0; 25 | 26 | CHttp http = new CHttp(nRandSeed); 27 | string szServerIP = string.Empty, szObj = string.Empty; 28 | int nPort = 80; 29 | http.ParseURL(url, ref szServerIP, ref szObj, ref nPort); 30 | 31 | string szAnswer = string.Empty; 32 | if (!http.QueryFile(ref szAnswer, szServerIP, nPort, szObj, 0, 1, false)) 33 | { 34 | http.Close(); 35 | return false; 36 | } 37 | int nDownSize = 0, nFileSize = 0; 38 | if (!http.AnlyseFileLengthFromAnswer(szAnswer, ref nDownSize, ref nFileSize)) 39 | { 40 | http.Close(); 41 | return false; 42 | } 43 | http.Close(); 44 | nOutFileSize = nFileSize; 45 | return true; 46 | } 47 | 48 | // 功能:下载文件,并将下载的文件保存到本地 49 | // 参数:url - 网络URL的地址 50 | // szLocalPathName - 本地保存地址 51 | // 说明:这个接口是阻塞模式的,请不要在主线程调用 52 | static public bool DownFile(string url, string szLocalPathName, int nNeedDownOffset, int nNeedDownSize, long nRandSeed = 0, LPOnReceiveDownFile lpReceiveFunc = null) 53 | { 54 | CHttp http = new CHttp(nRandSeed); 55 | string szServerIP = string.Empty, szObj = string.Empty; 56 | int nPort = 80; 57 | http.ParseURL(url, ref szServerIP, ref szObj, ref nPort); 58 | 59 | string szAnswer = string.Empty; 60 | if (!http.QueryFile(ref szAnswer, szServerIP, nPort, szObj, nNeedDownOffset, nNeedDownSize, nNeedDownSize <= 0)) 61 | { 62 | http.Close(); 63 | return false; 64 | } 65 | int nDownSize = 0, nFileSize = 0; 66 | if (!http.AnlyseFileLengthFromAnswer(szAnswer, ref nDownSize, ref nFileSize)) 67 | { 68 | http.Close(); 69 | return false; 70 | } 71 | if( nNeedDownSize <= 0 ) 72 | nDownSize = nFileSize; // 这是全部下载 73 | 74 | // 打开本地文件 75 | if (File.Exists(szLocalPathName)) 76 | File.Delete(szLocalPathName); 77 | FileStream pFile = new FileStream(szLocalPathName, FileMode.CreateNew, FileAccess.Write); 78 | 79 | // 开始下载吧 80 | byte[] szTempBuf = null; 81 | 82 | int nRecTotal = 0; 83 | int nRecLen = 0; 84 | int nOffset = 0; 85 | while (nRecTotal < nDownSize) 86 | { 87 | nRecLen = http.FastReceiveMax(ref szTempBuf, ref nOffset); 88 | // 写入文件吧 89 | if (nRecLen > 0) 90 | { 91 | if (lpReceiveFunc != null) 92 | lpReceiveFunc(nRecLen); 93 | nRecTotal += nRecLen; 94 | pFile.Write(szTempBuf, nOffset, nRecLen); 95 | } 96 | else 97 | { 98 | break; 99 | } 100 | } 101 | http.Close(); 102 | pFile.Close(); 103 | return nRecTotal == nDownSize; 104 | } 105 | // 功能:下载整个文件 106 | // 说明:这个接口是阻塞模式的,请不要在主线程调用 107 | static public bool DownFile(string url, out byte[] szFileData, int nDownOffset = 0, int nNeedDownSize = 0, long nRandSeed = 0, LPOnReceiveDownFile lpReceiveFunc = null) 108 | { 109 | szFileData = null; 110 | CHttp http = new CHttp(nRandSeed); 111 | string szServerIP = string.Empty, szObj = string.Empty; 112 | int nPort = 80; 113 | http.ParseURL(url, ref szServerIP, ref szObj, ref nPort); 114 | 115 | string szAnswer = string.Empty; 116 | if (!http.QueryFile(ref szAnswer, szServerIP, nPort, szObj, nDownOffset, nNeedDownSize, nNeedDownSize <= 0)) 117 | { 118 | http.Close(); 119 | return false; 120 | } 121 | int nDownSize = 0, nFileSize = 0; 122 | if (!http.AnlyseFileLengthFromAnswer(szAnswer, ref nDownSize, ref nFileSize)) 123 | { 124 | http.Close(); 125 | return false; 126 | } 127 | nDownSize = nFileSize; 128 | byte[] szTempBuf = null; 129 | 130 | szFileData = new byte[nFileSize]; 131 | 132 | int nRecTotal = 0; 133 | int nRecLen = 0; 134 | int nOffset = 0; 135 | while (nRecTotal < nDownSize) 136 | { 137 | nRecLen = http.FastReceiveMax(ref szTempBuf, ref nOffset); 138 | // 写入文件吧 139 | if (nRecLen > 0) 140 | { 141 | if( lpReceiveFunc != null ) 142 | lpReceiveFunc(nRecLen); 143 | Array.Copy(szTempBuf, nOffset, szFileData, nRecTotal, nRecLen); 144 | nRecTotal += nRecLen; 145 | } 146 | else 147 | { 148 | break; 149 | } 150 | } 151 | http.Close(); 152 | return nRecTotal == nDownSize; 153 | } 154 | } 155 | -------------------------------------------------------------------------------- /Assets/Scripts/Engine/NetBase/HttpDown.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a6a7a165caf47de42a7abd6b4946af5f 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Engine/NetBase/HttpDownMng.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using System.Threading; 5 | using System.IO; 6 | using System.Net; 7 | using UnityEngine; 8 | 9 | /////////////////////////////////////////////////////////// 10 | // 11 | // ------------------------------------------------------ 12 | // 功能描述 :Http 下载管理器的接口类 13 | // 14 | /////////////////////////////////////////////////////////// 15 | 16 | public class DownResInfo 17 | { 18 | public string url; // 资源文件的URL 19 | public int nDownSize; // 已经下载的大小 20 | public int nFileSize; // 文件大小 21 | }; 22 | 23 | public class DownResFile 24 | { 25 | public string url; // 资源文件的URL 26 | public int nFileSize; 27 | public FileStream file; 28 | } 29 | 30 | public class CHttpDownMng 31 | { 32 | List m_DownList; 33 | int m_nNextDownIndex = 0; 34 | int m_nDownCount = 0; 35 | int m_nDownThreadNumb = 0; // 下载线程数量 36 | int m_nWriteThreadNumb = 0; 37 | bool m_bNeedStop = false; 38 | Thread[] m_runThreads; 39 | Thread m_runWriteThread; 40 | 41 | long m_nDownSize; // 当前下载的大小 42 | long m_nTotalDownSize; // 当前总的下载大小 43 | long m_nTotalNeedDownSize; // 当前下载总的下载量 44 | long m_nLimitDownSize; // 每秒限制下载的大小 45 | long m_nLastTime; // 上一次统计的时间点 46 | 47 | string m_szLocalSavePath; 48 | 49 | // 功能:开启多线程下载 50 | // 参数:downList - 下载列表 51 | // nDownThreadNumb - 下载线程数量 52 | public void StartDown(List downList, int nDownThreadNumb, int nLimitDownSize, string szLocalSavePath) 53 | { 54 | m_nDownSize = 0; 55 | m_nTotalDownSize = 0; 56 | m_nTotalNeedDownSize = 0; 57 | m_nLimitDownSize = nLimitDownSize; 58 | m_nLastTime = 0; 59 | m_szLocalSavePath = szLocalSavePath; 60 | 61 | // 统计总的下载量 62 | for (int i = downList.Count - 1; i>= 0; --i) 63 | { 64 | m_nTotalNeedDownSize += downList[i].nFileSize; 65 | } 66 | 67 | if (nDownThreadNumb > downList.Count) 68 | nDownThreadNumb = downList.Count; 69 | 70 | m_DownList = downList; 71 | m_nDownCount = downList.Count; 72 | m_nNextDownIndex = 0; 73 | m_nDownThreadNumb = nDownThreadNumb; 74 | m_runThreads = new Thread[nDownThreadNumb]; 75 | for (int i = 0; i< nDownThreadNumb; ++i) 76 | { 77 | Thread t = new Thread(ThreadFunc); 78 | t.Start(this); 79 | m_runThreads[i] = t; 80 | } 81 | 82 | // 启动写线程 83 | m_nWriteThreadNumb = 1; 84 | Thread tw = new Thread(WriteThreadFunc); 85 | tw.Start(this); 86 | m_runWriteThread = tw; 87 | } 88 | public void StopDown(bool bAbort, bool bWait) 89 | { 90 | if(m_nDownThreadNumb > 0) 91 | { 92 | m_bNeedStop = true; 93 | if (bAbort) 94 | { 95 | int nThreadNumb = m_nDownThreadNumb; 96 | for (int i = 0; i < nThreadNumb; ++i) 97 | { 98 | m_runThreads[i].Abort(); 99 | } 100 | m_nDownThreadNumb = 0; 101 | if (m_runWriteThread != null) 102 | m_runWriteThread.Abort(); 103 | m_nWriteThreadNumb = 0; 104 | } 105 | m_runThreads = null; 106 | } 107 | if(!bAbort && bWait) 108 | { 109 | while (m_nDownThreadNumb > 0 || m_nWriteThreadNumb > 0) 110 | { 111 | Thread.Sleep(1); // 强制等待线程退出 112 | } 113 | } 114 | } 115 | static void ThreadFunc(object obj) 116 | { 117 | CHttpDownMng pMng = obj as CHttpDownMng; 118 | pMng.DownThread(); 119 | } 120 | static void WriteThreadFunc(object obj) 121 | { 122 | CHttpDownMng pMng = obj as CHttpDownMng; 123 | pMng.WriteThread(); 124 | } 125 | bool PopDownFileInfo(out DownResInfo resInfo) 126 | { 127 | resInfo = null; 128 | if (m_bNeedStop) 129 | return false; 130 | lock(this) 131 | { 132 | if (m_nNextDownIndex < m_nDownCount) 133 | { 134 | resInfo = m_DownList[m_nNextDownIndex++]; 135 | } 136 | } 137 | return resInfo != null; 138 | } 139 | void DownThread() 140 | { 141 | DownResInfo resInfo = null; 142 | CHttp http = new CHttp(); 143 | while (!m_bNeedStop) 144 | { 145 | if (PopDownFileInfo(out resInfo)) 146 | { 147 | DownFile(http, resInfo.url, resInfo.nFileSize, resInfo.nDownSize); 148 | } 149 | else 150 | break; 151 | } 152 | http.Close(); 153 | // 线程退出,线程数减一 154 | System.Threading.Interlocked.Decrement(ref m_nDownThreadNumb); 155 | } 156 | bool IsNeedLimitDown() 157 | { 158 | lock (this) 159 | { 160 | if (m_nDownSize > m_nLimitDownSize) 161 | { 162 | long nNow = System.DateTime.Now.Ticks / 10000; 163 | if (0 == m_nLastTime) 164 | m_nLastTime = nNow; 165 | long nPassTime = nNow - m_nLastTime; 166 | if (nPassTime < 1) 167 | nPassTime = 1; 168 | return m_nDownSize * 1000 / nPassTime > m_nLimitDownSize; 169 | } 170 | } 171 | return false; 172 | } 173 | void LimitSpeed() 174 | { 175 | while (IsNeedLimitDown()) 176 | { 177 | Thread.Sleep(10); 178 | } 179 | } 180 | 181 | void DownFile(CHttp http, string url, int nFileSize, int nLastDownSize) 182 | { 183 | // 如果文件比较小的话,可以不分片下载,真正下载整个文件 184 | if (nFileSize == 0) 185 | CHttpDown.GetDownFileSize(url, out nFileSize); 186 | 187 | DownResFile resInfo = new DownResFile(); 188 | resInfo.url = url; 189 | resInfo.nFileSize = 0; 190 | 191 | if (0 == nFileSize) 192 | { 193 | // 无法获取文件大小信息,整个下载吧 194 | bool bSuc = DownPart(http, url, 0, 0, nFileSize, resInfo); 195 | NotifyDownEvent(url, bSuc, resInfo); 196 | return ; 197 | } 198 | int nPageSize = 1024 * 300; // 分片的大小,应小于你的最大限制下载速度, 这里默认选用300K,读者自己根据项目修改 199 | int nFileOffset = nLastDownSize; // 从上一次下载的位置接着下载 200 | int nDownSize = 0; 201 | for (; nFileOffset < nFileSize; nFileOffset += nPageSize) 202 | { 203 | // 先限速 204 | LimitSpeed(); 205 | // 开始分片下载 206 | nDownSize = nFileOffset + nPageSize < nFileSize ? nPageSize : (nFileSize - nFileOffset); 207 | if (!DownPart(http, url, nFileOffset, nDownSize, nFileSize, resInfo)) 208 | { 209 | NotifyDownEvent(url, false, resInfo); 210 | return ; 211 | } 212 | } 213 | NotifyDownEvent(url, true, resInfo); 214 | } 215 | // 功能:通知文件下载事件 216 | void NotifyDownEvent(string url, bool bSuc, DownResFile resInfo) 217 | { 218 | // 这里只是输出一个日志,用户自行扩展事件吧 219 | MemBlock pBlock = new MemBlock(); 220 | pBlock.resFile = resInfo; 221 | PushWrite(pBlock); // 通知写线程关闭对应的文件 222 | 223 | if (bSuc) 224 | Debug.Log("文件下载成功,url:" + url); 225 | else 226 | Debug.LogError("文件下载失败,url:" + url); 227 | } 228 | public class MemBlock 229 | { 230 | public MemBlock m_pNext; 231 | public string url; 232 | public byte[] data; 233 | public int nFileOfset; 234 | public int nDownSize; 235 | public int nFileSize; // 文件总的大小 236 | public DownResFile resFile; 237 | } 238 | MemBlock m_InvalidBlock; 239 | int m_nCurBlockMemSize; 240 | int m_nUseBlockMemSize; // 当前使用的内存 241 | MemBlock m_WriteList; // 需要写的的队列 242 | MemBlock AllockBlock(string url, int nFileOffset, int nDownSize, int nFileSize) 243 | { 244 | MemBlock pBlock = null; 245 | lock(this) 246 | { 247 | pBlock = m_InvalidBlock; 248 | if (m_InvalidBlock != null) 249 | { 250 | m_nUseBlockMemSize += 4096; 251 | m_InvalidBlock = m_InvalidBlock.m_pNext; 252 | } 253 | } 254 | if (pBlock == null) 255 | { 256 | pBlock = new MemBlock(); 257 | pBlock.data = new byte[4096]; // 固定4K 258 | lock(this) 259 | { 260 | m_nCurBlockMemSize += 4096; 261 | } 262 | } 263 | pBlock.url = url; 264 | pBlock.nFileOfset = nFileOffset; 265 | pBlock.nDownSize = nDownSize; 266 | pBlock.nFileSize = nFileSize; 267 | pBlock.resFile = null; 268 | return pBlock; 269 | } 270 | void FreeBlock(MemBlock pBlock) 271 | { 272 | if (pBlock.data == null) 273 | return; 274 | pBlock.resFile = null; 275 | lock (this) 276 | { 277 | m_nUseBlockMemSize -= 4096; 278 | pBlock.m_pNext = m_InvalidBlock; 279 | m_InvalidBlock = pBlock; 280 | } 281 | } 282 | void WaitBlock(int nMaxSize) 283 | { 284 | while(m_nUseBlockMemSize >= nMaxSize) // 这里只引用,不修改,所以不加锁,虽然并不一定准确 285 | { 286 | Thread.Sleep(10); // 等一下吧 287 | } 288 | } 289 | bool DownPart(CHttp http, string url, int nFileOffset, int nDownSize, int nFileSize, DownResFile resFile) 290 | { 291 | // 调用Http下载的代码 292 | nDownSize = http.PrepareDown(url, nFileOffset, nDownSize, nDownSize == 0); 293 | if (nDownSize <= 0) 294 | { 295 | Debug.LogError("文件下载失败,url:" + url + "(" + nFileOffset + "-" + nDownSize + ")"); 296 | return false; 297 | } 298 | 299 | // 将下载的内容提交到写线程 300 | byte[] szTempBuf = null; 301 | int nCurDownSize = 0; 302 | int nRecTotal = 0; 303 | int nRecLen = 0; 304 | int nOffset = 0; 305 | nCurDownSize = nDownSize > 4096 ? 4096 : nDownSize; 306 | MemBlock pBlock = AllockBlock(url, nFileOffset, nCurDownSize, nFileSize); // 从内存池中取一个4K的内存片 307 | while (nDownSize > 0 && !m_bNeedStop) 308 | { 309 | // 必要的话,在这里添加限速功能或限制接收速度的功能,以免网速太快,导致一秒内分配太多内存 310 | //LimitSpeed(); 311 | nRecLen = http.FastReceiveMax(ref szTempBuf, ref nOffset, 4096 - nRecTotal); 312 | if(nRecLen > 0) 313 | { 314 | OnReceive(nRecLen); // 统计下载的流量 315 | Array.Copy(szTempBuf, nOffset, pBlock.data, nRecTotal, nRecLen); 316 | nRecTotal += nRecLen; 317 | // 如果当前块接收满了 318 | if(nRecTotal >= nCurDownSize) 319 | { 320 | pBlock.resFile = resFile; 321 | PushWrite(pBlock);// 提交写文件 322 | nRecTotal = 0; 323 | nDownSize -= nCurDownSize; 324 | nFileOffset += nCurDownSize; 325 | nCurDownSize = nDownSize > 4096 ? 4096 : nDownSize; 326 | // 必要的话,加上限额等待 327 | if(nCurDownSize > 0) 328 | { 329 | WaitBlock(1024 * 1024); // 检测当前内存池分配的总量,超过就挂起 330 | pBlock = AllockBlock(url, nFileOffset, nCurDownSize, nFileSize); // 从内存池中取一个4K的内存片 331 | } 332 | } 333 | } 334 | else 335 | { 336 | return false; // 文件读取失败,可能是网络出问题了 337 | } 338 | } 339 | return true; 340 | } 341 | void OnReceive(int nDownSize) 342 | { 343 | // 统计下载量,下载进度 344 | long nNow = System.DateTime.Now.Ticks / 10000; 345 | lock (this) 346 | { 347 | if (0 == m_nLastTime) 348 | m_nLastTime = nNow; 349 | long nPassTime = nNow - m_nLastTime; 350 | if (nPassTime > 1000) 351 | { 352 | m_nLastTime = nNow - nPassTime % 1000; 353 | m_nDownSize = (m_nDownSize + nDownSize) * (nPassTime % 1000) / nPassTime; 354 | } 355 | else 356 | m_nDownSize += nDownSize; 357 | m_nTotalDownSize += nDownSize; 358 | } 359 | } 360 | void PushWrite(MemBlock pBlock) 361 | { 362 | lock(this) 363 | { 364 | pBlock.m_pNext = m_WriteList; 365 | m_WriteList = pBlock; 366 | } 367 | } 368 | // 功能:反转单链表 369 | MemBlock Reverse(MemBlock pBlock) 370 | { 371 | MemBlock pList = null; 372 | MemBlock pNext = null; 373 | while (pBlock != null) 374 | { 375 | pNext = pBlock.m_pNext; 376 | pBlock.m_pNext = pList; 377 | pList = pBlock; 378 | pBlock = pNext; 379 | } 380 | return pList; 381 | } 382 | // 功能:写线程 383 | void WriteThread() 384 | { 385 | while(!m_bNeedStop) 386 | { 387 | MemBlock pList = null; 388 | lock (this) 389 | { 390 | pList = m_WriteList; 391 | m_WriteList = null; 392 | } 393 | if(pList == null) 394 | { 395 | if (m_nDownThreadNumb <= 0) 396 | break; 397 | Thread.Sleep(1); // 没有要写的文件,小睡一会,减少CPU的开销 398 | continue; 399 | } 400 | pList = Reverse(pList); 401 | // 开始写入文件吧 402 | MemBlock pBlock = null; 403 | while (pList != null) 404 | { 405 | pBlock = pList; 406 | pList = pList.m_pNext; 407 | SafeWriteBlock(pBlock); // 写入文件 408 | FreeBlock(pBlock); // 回收内存 409 | } 410 | } 411 | m_InvalidBlock = null; // 不需要内存池了 412 | // 在这里通知主线程,下载结束 413 | 414 | // 线程退出,线程数减一 415 | System.Threading.Interlocked.Decrement(ref m_nWriteThreadNumb); 416 | } 417 | void SafeWriteBlock(MemBlock pBlock) 418 | { 419 | try 420 | { 421 | WriteBlock(pBlock); 422 | } 423 | catch(Exception e) 424 | { 425 | Debug.LogException(e); 426 | } 427 | } 428 | 429 | void WriteBlock(MemBlock pBlock) 430 | { 431 | // 这里可以使用一个特殊的标记,表示文件下载完成的 432 | if(pBlock.data == null) 433 | { 434 | // 在这里添加事件处理 435 | if(pBlock.resFile != null) 436 | { 437 | if(pBlock.resFile.file != null) 438 | { 439 | pBlock.resFile.file.Close(); 440 | pBlock.resFile.file = null; 441 | } 442 | pBlock.resFile = null; 443 | } 444 | return; 445 | } 446 | // 必要的话,在这里记录一下下载的状态, 这个用户自行扩展吧 447 | DownResFile resFile = pBlock.resFile; 448 | if(resFile.file == null) 449 | { 450 | string szLocalPathName = GetLocalPathNameByUrl(pBlock.url); 451 | if (pBlock.nFileOfset == 0) 452 | { 453 | if (File.Exists(szLocalPathName)) 454 | File.Delete(szLocalPathName); 455 | } 456 | resFile.file = new FileStream(szLocalPathName, FileMode.OpenOrCreate, FileAccess.Write); 457 | if(resFile.file == null) 458 | { 459 | Debug.LogError(szLocalPathName + "文件打开失败!"); 460 | } 461 | } 462 | FileStream file = resFile.file; 463 | if(file != null) 464 | { 465 | file.Seek(pBlock.nFileOfset, SeekOrigin.Begin); 466 | file.Write(pBlock.data, 0, pBlock.nDownSize); 467 | file.Flush(); 468 | } 469 | } 470 | public string GetLocalPathNameByUrl(string url) 471 | { 472 | int nIndex = url.LastIndexOf('/'); 473 | if (nIndex != -1) 474 | { 475 | string szFileName = url.Substring(nIndex + 1); 476 | return string.Format("{0}/{1}", m_szLocalSavePath, szFileName); 477 | } 478 | return string.Empty; 479 | } 480 | } 481 | -------------------------------------------------------------------------------- /Assets/Scripts/Engine/NetBase/HttpDownMng.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: afb56969ac1ceef4ca92a40935d8cfd2 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Engine/NetBase/Tcp.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using System.Net; 5 | using System.Net.Sockets; 6 | using System.Threading; 7 | 8 | /////////////////////////////////////////////////////////// 9 | // 10 | // ------------------------------------------------------ 11 | // 功能描述 :tcp socket类的封装,支持同步与异步模式 12 | // 13 | /////////////////////////////////////////////////////////// 14 | 15 | public class CTcp 16 | { 17 | protected Socket m_hSocket;// socket连接 18 | long m_nRandSeed = 0; 19 | 20 | public CTcp() 21 | { 22 | m_nRandSeed = 0; 23 | } 24 | ~CTcp() 25 | { 26 | Close(); 27 | } 28 | public void SetRandSeed(long nRandSeed) 29 | { 30 | m_nRandSeed = nRandSeed; 31 | } 32 | static public int RandInt(ref long nRandSeed, int nMin, int nMax) 33 | { 34 | if (nRandSeed == 0 || nMin == nMax) 35 | return nMin; 36 | nRandSeed = nRandSeed * 214013L + 2531011L; 37 | if (nMin > nMax) 38 | { 39 | int nTemp = nMin; nMin = nMax; nMax = nTemp; 40 | } 41 | long nSize = (nMax - nMin + 1); 42 | long nIndex = nRandSeed % nSize + nMin; 43 | if (nIndex < nMin) 44 | nIndex = nMin; 45 | if (nIndex > nMax) 46 | nIndex = nMax; 47 | return (int)nIndex; 48 | } 49 | // 功能:开始测试IPV6,在启动时执行的噢 50 | static int s_nIPV6State = 0; // 0 是没有测试,1是测试中,2是支持IPV6,3只支持IPV4 51 | static bool s_bStartTest = false; 52 | static public bool IsIPV6Net() 53 | { 54 | if(s_nIPV6State == 1) 55 | { 56 | long nStartTime = System.DateTime.Now.Ticks; 57 | while (s_nIPV6State == 1) 58 | { 59 | System.Threading.Thread.Sleep(100); 60 | long nWaitTime = (System.DateTime.Now.Ticks - nStartTime) / 10000; 61 | if (nWaitTime > 20) 62 | break; 63 | } 64 | } 65 | return s_nIPV6State == 2; 66 | } 67 | public static void StartTestIPV6(string szCDNUrl) 68 | { 69 | if (s_nIPV6State != 0) 70 | return; 71 | s_nIPV6State = 1; 72 | TestIPV6Logic(szCDNUrl); 73 | } 74 | public static int s_ExcNum;//解析IP抛出异常次数 75 | static void TestIPV6Logic(string szCDNUrl) 76 | { 77 | int nPort = 80; 78 | try 79 | { 80 | IPAddress ipa; 81 | if (IPAddress.TryParse(szCDNUrl, out ipa)) 82 | { 83 | s_nIPV6State = 3; 84 | return; 85 | } 86 | else 87 | { 88 | s_ExcNum = 0; 89 | IPHostEntry iph = Dns.GetHostEntry(szCDNUrl); 90 | bool bFindIPV6 = false; 91 | for (int i = 0; i < iph.AddressList.Length; ++i) 92 | { 93 | IPAddress pIPAddr = iph.AddressList[i]; 94 | if (pIPAddr.AddressFamily != AddressFamily.InterNetworkV6) 95 | continue; 96 | IPAddrTest node = new IPAddrTest(); 97 | node.m_pIPAddr = pIPAddr; 98 | node.m_nPort = nPort; 99 | node.m_bIsIPV6 = pIPAddr.AddressFamily == AddressFamily.InterNetworkV6; 100 | if(node.m_bIsIPV6) 101 | { 102 | bFindIPV6 = true; 103 | } 104 | node.TestConnect(); 105 | } 106 | if(!bFindIPV6) 107 | { 108 | s_nIPV6State = 3; 109 | } 110 | } 111 | } 112 | catch(System.Exception ex) 113 | { 114 | UnityEngine.Debug.LogError(ex.ToString()); 115 | s_ExcNum++; 116 | } 117 | 118 | 119 | } 120 | static public bool IsIPV6Addr(string szAddr) 121 | { 122 | if (string.IsNullOrEmpty(szAddr)) 123 | return false; 124 | return szAddr.IndexOf(':') != -1; 125 | } 126 | class IPAddrTest 127 | { 128 | public IPAddress m_pIPAddr; 129 | public int m_nPort; 130 | public bool m_bIsIPV6; 131 | public void TestConnect() 132 | { 133 | System.Threading.Thread t = new System.Threading.Thread(Connect); 134 | t.Start(this); 135 | } 136 | void Connect() 137 | { 138 | Socket hSocket = null; 139 | bool bSuc = false; 140 | try 141 | { 142 | hSocket = new Socket(m_pIPAddr.AddressFamily, SocketType.Stream, ProtocolType.Tcp); 143 | hSocket.Connect(m_pIPAddr, m_nPort); 144 | if(hSocket.Connected) 145 | { 146 | bSuc = true; 147 | } 148 | } 149 | catch(Exception e) 150 | { 151 | bSuc = false; 152 | hSocket = null; 153 | } 154 | if(bSuc) 155 | { 156 | // IPV4与IPV6竞赛连接,谁先连接上,就按谁的连,不过测试发现其实在IPV6的网络下,其实两个都是可以连接上的,所以这个结果可能是随机的, 但能使用IPV4连接会更好 157 | if(s_nIPV6State == 1) 158 | { 159 | if (m_bIsIPV6) 160 | s_nIPV6State = 2; // 这是支持IPV6的 161 | else 162 | s_nIPV6State = 3; // 这个只支持IPV4 163 | } 164 | else if(!m_bIsIPV6) 165 | { 166 | s_nIPV6State = 3; // 如果IPV4能时,强制IPV4 167 | } 168 | if(hSocket != null) 169 | { 170 | hSocket.Shutdown(SocketShutdown.Both); 171 | hSocket.Close(); 172 | hSocket = null; 173 | } 174 | } 175 | } 176 | } 177 | 178 | // 功能:连接服务器 179 | // 参数:szServerAddr - 服务器的地址 180 | // nPort - 端口号 181 | public void ConnectToServer(string szServerAddr, int nPort, long nRandSeed = 0) 182 | { 183 | try 184 | { 185 | if (nRandSeed != 0) 186 | m_nRandSeed = nRandSeed; 187 | Connect(szServerAddr, nPort); 188 | } 189 | catch (Exception e) 190 | { 191 | push_debug_info(e.ToString() + ":" + szServerAddr); 192 | m_hSocket = null; 193 | } 194 | } 195 | 196 | void push_debug_info(string szError) 197 | { 198 | try 199 | { 200 | if (s_push_debug_info != null) 201 | { 202 | s_push_debug_info(szError); 203 | } 204 | } 205 | catch(Exception e) 206 | { 207 | 208 | } 209 | } 210 | 211 | // 功能:将一个域名转换成IP 212 | public long GetServerIP(string szServerAddr) 213 | { 214 | try 215 | { 216 | IPAddress ipa; 217 | IPAddress.TryParse(szServerAddr, out ipa); 218 | return ipa.Address; 219 | } 220 | catch (Exception e) 221 | { 222 | push_debug_info(e.ToString()); 223 | } 224 | return -1; 225 | } 226 | // 功能:连接指定的服务器 227 | public void ConnectToServer(long nIP, int nPort) 228 | { 229 | IPAddress ipa = new IPAddress(nIP); 230 | Connect(ipa, nPort); 231 | } 232 | public delegate IPAddress[] GetHostAddressInterface(string szIP); 233 | public static GetHostAddressInterface s_pGetHostAddressInterface = null; 234 | public static int s_DnsExceptionCount = 0; 235 | 236 | public delegate void push_debug_info_backback(string szInfo); 237 | public static push_debug_info_backback s_push_debug_info = null; 238 | 239 | void TryConnect(string szIP, int nPort, bool bDns) 240 | { 241 | try 242 | { 243 | if (!bDns && s_pGetHostAddressInterface == null) 244 | bDns = true; 245 | IPAddress[] ipa = bDns ? Dns.GetHostAddresses(szIP) : s_pGetHostAddressInterface(szIP); 246 | if (ipa != null) 247 | { 248 | bool bIsIPV6Net = IsIPV6Net(); 249 | IPAddress pIPAddr = null; 250 | for (int i = 0; i 0) 599 | { 600 | // 开始读取数据 601 | OnReceiveBuf(m_RecvBuffer, nLen); 602 | 603 | m_hSocket.BeginReceive(m_RecvBuffer, 0, m_RecvBuffer.Length, 0, new AsyncCallback(ReceiveCallback), m_hSocket); 604 | } 605 | } 606 | catch (Exception) 607 | { 608 | Quit(); 609 | } 610 | } 611 | // 功能:发送消息包到服务器 612 | public void SendToServer(byte[] szBuf, int nBufSize) 613 | { 614 | try 615 | { 616 | byte[] bytes = new byte[nBufSize]; 617 | Array.Copy(szBuf, 0, bytes, 0, nBufSize); 618 | m_hSocket.BeginSend(bytes, 0, bytes.Length, 0, new AsyncCallback(SendCallback), m_hSocket); 619 | } 620 | catch (Exception) 621 | { 622 | Quit(); 623 | } 624 | } 625 | 626 | private void SendCallback(IAsyncResult ar) 627 | { 628 | try 629 | { 630 | SocketError err; 631 | int nSendSize = m_hSocket.EndSend(ar, out err); 632 | } 633 | catch (Exception) 634 | { 635 | Quit(); 636 | } 637 | } 638 | // 功能:通知收到消息包的事件 639 | // 注意:这个接口是异步调用的,需要上层自己处理加锁事件 640 | protected virtual int OnReceiveBuf(byte[] recBuf, int nSize) 641 | { 642 | // 在这里做解包的事件, 这个可能是多个包,也可能是不到一个包 643 | return nSize; 644 | } 645 | protected virtual void OnSucConnect() 646 | { 647 | 648 | } 649 | protected virtual void OnFailedConect() 650 | { 651 | 652 | } 653 | } 654 | 655 | class CTcpThread 656 | { 657 | CTcp m_tcp; 658 | long m_nRandSeed; 659 | 660 | public delegate IPAddress[] GetHostAddressInterface(string szIP); 661 | public GetHostAddressInterface m_pGetHostAddressInterface = null; 662 | int m_DnsExceptionCount = 0; 663 | 664 | protected bool m_bIsIPV6 = false; 665 | protected bool m_bInitIPV6 = false; 666 | protected string m_szConnectAddr = string.Empty; 667 | protected int m_nConnectPort = 0; 668 | 669 | //--------------- 670 | byte[] m_RecvBuffer; 671 | public CTcpThread() 672 | { 673 | m_nRandSeed = 0; 674 | 675 | m_RecvBuffer = new byte[8192]; 676 | } 677 | // 功能:连接服务器 678 | // 参数:szServerAddr - 服务器的地址 679 | // nPort - 端口号 680 | public void ConnectToServer(string szServerAddr, int nPort, long nRandSeed = 0) 681 | { 682 | if (nRandSeed != 0) 683 | m_nRandSeed = nRandSeed; 684 | m_szConnectAddr = szServerAddr; 685 | m_nConnectPort = nPort; 686 | 687 | Thread t = new Thread(ThreadRun); 688 | t.Start(); 689 | } 690 | void ThreadRun() 691 | { 692 | if (m_tcp != null) 693 | m_tcp.Close(); 694 | else 695 | m_tcp = new CTcp(); 696 | m_tcp.ConnectToServer(m_szConnectAddr, m_nConnectPort, m_nRandSeed); 697 | if(m_tcp.IsConnect()) 698 | { 699 | OnSucConnect(); 700 | } 701 | else 702 | { 703 | OnFailedConect(); 704 | } 705 | // 开始接收消息吧 706 | BeginRecive(); 707 | } 708 | void BeginRecive() 709 | { 710 | int nRecvSize = 0; 711 | while (m_tcp.IsConnect()) 712 | { 713 | nRecvSize = m_tcp.Receive(m_RecvBuffer, 4096); 714 | if(nRecvSize > 0) 715 | { 716 | OnReceiveBuf(m_RecvBuffer, nRecvSize); 717 | } 718 | else 719 | { 720 | Quit(); 721 | } 722 | } 723 | } 724 | 725 | public void Quit() 726 | { 727 | m_tcp.Close(); 728 | } 729 | 730 | // 功能:判断连接是不是正常 731 | public bool IsConnect() 732 | { 733 | if (m_tcp != null) 734 | return m_tcp.IsConnect(); 735 | return false; 736 | } 737 | 738 | // 功能:发送消息包到服务器 739 | public void SendToServer(byte[] szBuf, int nBufSize) 740 | { 741 | if (m_tcp != null) 742 | m_tcp.Send(szBuf, nBufSize, SocketFlags.None); 743 | } 744 | 745 | // 功能:通知收到消息包的事件 746 | // 注意:这个接口是异步调用的,需要上层自己处理加锁事件 747 | protected virtual int OnReceiveBuf(byte[] recBuf, int nSize) 748 | { 749 | // 在这里做解包的事件, 这个可能是多个包,也可能是不到一个包 750 | return nSize; 751 | } 752 | protected virtual void OnSucConnect() 753 | { 754 | 755 | } 756 | protected virtual void OnFailedConect() 757 | { 758 | 759 | } 760 | } 761 | -------------------------------------------------------------------------------- /Assets/Scripts/Engine/NetBase/Tcp.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bbd243a5eb2ec364293780c0d34918fe 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Engine/Scene.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f9b203f6059190b438f71037bab97d80 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Engine/Scene/Main.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 637be444bfd0fe54eba136b5e0606317 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scripts/Engine/Scene/TestDown.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using UnityEngine; 5 | using UnityEngine.UI; 6 | 7 | public class TestDown : MonoBehaviour 8 | { 9 | CHttpDownMng m_downMng; 10 | public Button downBtn; 11 | public Button openExplorerBtn; 12 | 13 | void Start() 14 | { 15 | CTcp.StartTestIPV6("ipv6-test.com"); // 启动时测试一下我本地的IPV6环境, 请将这个域名修改你项目的CDN地址 16 | downBtn.onClick.AddListener(StartDown); 17 | openExplorerBtn.onClick.AddListener(OpenExplorer); 18 | } 19 | 20 | void StartDown() 21 | { 22 | // 以下只是测试几个下载,麻烦同学修改成您项目的资源url 23 | List downList = new List(); 24 | PushDownFile(downList, 25 | "http://192.168.1.145:8089/%E5%AF%8C%E4%BA%BA%E5%AE%B6%E7%85%A7%E5%A3%81%20(1).jpg"); 26 | PushDownFile(downList, 27 | "http://192.168.1.145:8089/%E5%AF%8C%E4%BA%BA%E5%AE%B6%E7%85%A7%E5%A3%81%20(2).jpg"); 28 | PushDownFile(downList, 29 | "http://192.168.1.145:8089/%E5%AF%8C%E4%BA%BA%E5%AE%B6%E7%85%A7%E5%A3%81%20(3).jpg"); 30 | PushDownFile(downList,"http://192.168.1.145:8089/UserLevel.json"); 31 | PushDownFile(downList, "http://www.heao.gov.cn/a/201910/42140.shtml"); 32 | 33 | //PushDownFile(downList, "http://static.it1352.com/Content/upload/20170317180310_925aaf68-2087-4102-9286-03f51d5df29a.jpg"); 34 | //PushDownFile(downList, "http://static.it1352.com/Content/upload/fad370454fb441158b55171ac70f2ef3.jpg"); 35 | //PushDownFile(downList, "http://static.it1352.com/Content/upload/4ed6d2990e07438395000000087858a3.jpg"); 36 | //PushDownFile(downList, "http://static.it1352.com/Content/upload/1eda9f0e70134189839a7dd4b5e271ca.jpg"); 37 | //PushDownFile(downList, "http://static.it1352.com/Content/upload/567680127c434a9099dc7f2a705695a5.jpg"); 38 | CHttpDownMng mng = new CHttpDownMng(); 39 | mng.StartDown(downList, 2, 100 * 1024, CTargetPlat.PersistentRootPath); 40 | m_downMng = mng; 41 | } 42 | 43 | void PushDownFile(List downList, string url) 44 | { 45 | DownResInfo node = new DownResInfo(); 46 | node.url = url; 47 | CHttpDown.GetDownFileSize(url, out node.nFileSize); 48 | downList.Add(node); 49 | } 50 | 51 | public void OpenExplorer() 52 | { 53 | string szPath = CTargetPlat.PersistentRootPath; 54 | szPath = szPath.Replace('/', '\\'); 55 | System.Diagnostics.Process.Start("explorer.exe", szPath); 56 | } 57 | } -------------------------------------------------------------------------------- /Assets/Scripts/Engine/Scene/TestDown.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4661e6c0bf7327e448324ddd3296625c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/ReadJson.cs: -------------------------------------------------------------------------------- 1 | // 1. 引入SimpleJSON 2 | 3 | using SimpleJSON; 4 | using System; 5 | using System.Collections; 6 | using System.Collections.Generic; 7 | using UnityEngine; 8 | using UnityEngine.Networking; 9 | 10 | public class ReadJson : MonoBehaviour 11 | { 12 | // 2. 设置一个变量,可以在Inspector设置读取的文件名 13 | public string m_strJsonPath = ""; 14 | 15 | private void Start() 16 | { 17 | StartCoroutine(Load(Application.streamingAssetsPath + "/" + m_strJsonPath)); 18 | } 19 | 20 | public IEnumerator Load(string uri) 21 | { 22 | // 3. 使用System.Uri 格式化uri 23 | Uri ss = new Uri(uri); 24 | 25 | // 4. 把格式化的字符串放到url变量 26 | string url = ss.ToString(); 27 | 28 | // 5. 发送url请求 29 | using (UnityWebRequest webRequest = UnityWebRequest.Get(url)) 30 | { 31 | // 6. 请求并等待所需的内容 32 | yield return webRequest.SendWebRequest(); 33 | 34 | // 7. 判断请求是否成功 35 | if (webRequest.isNetworkError) 36 | { 37 | Debug.Log(": Error: " + webRequest.error); 38 | } 39 | else 40 | { 41 | // 8. 解析json数据 42 | JSONNode v_jnode = JSON.Parse(webRequest.downloadHandler.text); 43 | 44 | foreach (KeyValuePair valuePair in v_jnode) 45 | { 46 | foreach (var item in valuePair.Value) 47 | { 48 | Debug.Log(item.Key + " --- " + item.Value); 49 | } 50 | } 51 | } 52 | } 53 | } 54 | } -------------------------------------------------------------------------------- /Assets/Scripts/ReadJson.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 086da1b819386874e8d5c0e61cc3779c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Test.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using SimpleJSON; 5 | using UnityEngine; 6 | using UnityEngine.Networking; 7 | 8 | public class Test : MonoBehaviour 9 | { 10 | public JSONNode TableMapText { get; set; } 11 | 12 | private void Awake() 13 | { 14 | StartCoroutine(GetData()); 15 | } 16 | 17 | void Start() 18 | { 19 | TableMapText["additional"]["gold"] = "500"; 20 | TableMapText["additional"]["lv"] = "3"; 21 | TableMapText["additional"]["exp"] = "560"; 22 | TableMapText["additional"]["scd"] = "60"; 23 | TableMapText["additional"]["bcd"] = "240"; 24 | foreach (KeyValuePair valuePair in TableMapText) 25 | { 26 | foreach (var item in valuePair.Value) 27 | { 28 | Debug.Log(item.Key + " --- " + item.Value); 29 | // if (item.Key.Equals("Level")) 30 | // { 31 | // Debug.Log(item.Value.AsFloat); 32 | // } 33 | } 34 | } 35 | } 36 | 37 | IEnumerator GetData() 38 | { 39 | var uri = new System.Uri(Path.Combine(Application.streamingAssetsPath, "UserLevel.json")); 40 | UnityWebRequest www = UnityWebRequest.Get(uri); 41 | yield return www.SendWebRequest(); 42 | 43 | if (www.isNetworkError || www.isHttpError) 44 | { 45 | Debug.Log(www.error); 46 | } 47 | else 48 | { 49 | TableMapText = JSONNode.Parse(www.downloadHandler.text); 50 | } 51 | } 52 | } -------------------------------------------------------------------------------- /Assets/Scripts/Test.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c1b4e1f85e96a644c827238ed7082e10 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/StreamingAssets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7c13478a786477242834eb4495ac3727 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/StreamingAssets/UserLevel.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "Name": "李逍遥", 4 | "Level": 12.0, 5 | "Description": "《仙剑奇侠传1》男主角", 6 | "Skill": "万剑诀", 7 | "Time": "仙剑1、仙剑2、仙剑5、仙剑5前传" 8 | }, 9 | { 10 | "Name": "慕容紫英", 11 | "Level": 20.0, 12 | "Description": "《仙剑奇侠传4》男主角", 13 | "Skill": "千方残光剑", 14 | "Time": "仙剑4" 15 | }, 16 | { 17 | "Name": "夏侯瑾轩", 18 | "Level": 18.0, 19 | "Description": "《仙剑奇侠传5前传》男主角", 20 | "Skill": "文星耀太虚", 21 | "Time": "仙剑5前传" 22 | }, 23 | { 24 | "Name": "皇甫卓", 25 | "Level": 24.0, 26 | "Description": "《仙剑奇侠传5前传》配角", 27 | "Skill": "天中剑", 28 | "Time": "仙剑5前传" 29 | } 30 | ] -------------------------------------------------------------------------------- /Assets/StreamingAssets/UserLevel.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e26cc4fa5c53316409d517bbe9aee2b7 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Rorschach 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.collab-proxy": "1.3.9", 4 | "com.unity.ide.rider": "2.0.7", 5 | "com.unity.ide.visualstudio": "2.0.5", 6 | "com.unity.ide.vscode": "1.2.3", 7 | "com.unity.test-framework": "1.1.22", 8 | "com.unity.textmeshpro": "3.0.1", 9 | "com.unity.timeline": "1.4.6", 10 | "com.unity.ugui": "1.0.0", 11 | "com.unity.modules.ai": "1.0.0", 12 | "com.unity.modules.androidjni": "1.0.0", 13 | "com.unity.modules.animation": "1.0.0", 14 | "com.unity.modules.assetbundle": "1.0.0", 15 | "com.unity.modules.audio": "1.0.0", 16 | "com.unity.modules.cloth": "1.0.0", 17 | "com.unity.modules.director": "1.0.0", 18 | "com.unity.modules.imageconversion": "1.0.0", 19 | "com.unity.modules.imgui": "1.0.0", 20 | "com.unity.modules.jsonserialize": "1.0.0", 21 | "com.unity.modules.particlesystem": "1.0.0", 22 | "com.unity.modules.physics": "1.0.0", 23 | "com.unity.modules.physics2d": "1.0.0", 24 | "com.unity.modules.screencapture": "1.0.0", 25 | "com.unity.modules.terrain": "1.0.0", 26 | "com.unity.modules.terrainphysics": "1.0.0", 27 | "com.unity.modules.tilemap": "1.0.0", 28 | "com.unity.modules.ui": "1.0.0", 29 | "com.unity.modules.uielements": "1.0.0", 30 | "com.unity.modules.umbra": "1.0.0", 31 | "com.unity.modules.unityanalytics": "1.0.0", 32 | "com.unity.modules.unitywebrequest": "1.0.0", 33 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 34 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 35 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 36 | "com.unity.modules.unitywebrequestwww": "1.0.0", 37 | "com.unity.modules.vehicles": "1.0.0", 38 | "com.unity.modules.video": "1.0.0", 39 | "com.unity.modules.vr": "1.0.0", 40 | "com.unity.modules.wind": "1.0.0", 41 | "com.unity.modules.xr": "1.0.0" 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /Packages/packages-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.collab-proxy": { 4 | "version": "1.3.9", 5 | "depth": 0, 6 | "source": "registry", 7 | "dependencies": {}, 8 | "url": "https://packages.unity.com" 9 | }, 10 | "com.unity.ext.nunit": { 11 | "version": "1.0.6", 12 | "depth": 1, 13 | "source": "registry", 14 | "dependencies": {}, 15 | "url": "https://packages.unity.com" 16 | }, 17 | "com.unity.ide.rider": { 18 | "version": "2.0.7", 19 | "depth": 0, 20 | "source": "registry", 21 | "dependencies": { 22 | "com.unity.test-framework": "1.1.1" 23 | }, 24 | "url": "https://packages.unity.com" 25 | }, 26 | "com.unity.ide.visualstudio": { 27 | "version": "2.0.5", 28 | "depth": 0, 29 | "source": "registry", 30 | "dependencies": {}, 31 | "url": "https://packages.unity.com" 32 | }, 33 | "com.unity.ide.vscode": { 34 | "version": "1.2.3", 35 | "depth": 0, 36 | "source": "registry", 37 | "dependencies": {}, 38 | "url": "https://packages.unity.com" 39 | }, 40 | "com.unity.test-framework": { 41 | "version": "1.1.22", 42 | "depth": 0, 43 | "source": "registry", 44 | "dependencies": { 45 | "com.unity.ext.nunit": "1.0.6", 46 | "com.unity.modules.imgui": "1.0.0", 47 | "com.unity.modules.jsonserialize": "1.0.0" 48 | }, 49 | "url": "https://packages.unity.com" 50 | }, 51 | "com.unity.textmeshpro": { 52 | "version": "3.0.1", 53 | "depth": 0, 54 | "source": "registry", 55 | "dependencies": { 56 | "com.unity.ugui": "1.0.0" 57 | }, 58 | "url": "https://packages.unity.com" 59 | }, 60 | "com.unity.timeline": { 61 | "version": "1.4.6", 62 | "depth": 0, 63 | "source": "registry", 64 | "dependencies": { 65 | "com.unity.modules.director": "1.0.0", 66 | "com.unity.modules.animation": "1.0.0", 67 | "com.unity.modules.audio": "1.0.0", 68 | "com.unity.modules.particlesystem": "1.0.0" 69 | }, 70 | "url": "https://packages.unity.com" 71 | }, 72 | "com.unity.ugui": { 73 | "version": "1.0.0", 74 | "depth": 0, 75 | "source": "builtin", 76 | "dependencies": { 77 | "com.unity.modules.ui": "1.0.0", 78 | "com.unity.modules.imgui": "1.0.0" 79 | } 80 | }, 81 | "com.unity.modules.ai": { 82 | "version": "1.0.0", 83 | "depth": 0, 84 | "source": "builtin", 85 | "dependencies": {} 86 | }, 87 | "com.unity.modules.androidjni": { 88 | "version": "1.0.0", 89 | "depth": 0, 90 | "source": "builtin", 91 | "dependencies": {} 92 | }, 93 | "com.unity.modules.animation": { 94 | "version": "1.0.0", 95 | "depth": 0, 96 | "source": "builtin", 97 | "dependencies": {} 98 | }, 99 | "com.unity.modules.assetbundle": { 100 | "version": "1.0.0", 101 | "depth": 0, 102 | "source": "builtin", 103 | "dependencies": {} 104 | }, 105 | "com.unity.modules.audio": { 106 | "version": "1.0.0", 107 | "depth": 0, 108 | "source": "builtin", 109 | "dependencies": {} 110 | }, 111 | "com.unity.modules.cloth": { 112 | "version": "1.0.0", 113 | "depth": 0, 114 | "source": "builtin", 115 | "dependencies": { 116 | "com.unity.modules.physics": "1.0.0" 117 | } 118 | }, 119 | "com.unity.modules.director": { 120 | "version": "1.0.0", 121 | "depth": 0, 122 | "source": "builtin", 123 | "dependencies": { 124 | "com.unity.modules.audio": "1.0.0", 125 | "com.unity.modules.animation": "1.0.0" 126 | } 127 | }, 128 | "com.unity.modules.imageconversion": { 129 | "version": "1.0.0", 130 | "depth": 0, 131 | "source": "builtin", 132 | "dependencies": {} 133 | }, 134 | "com.unity.modules.imgui": { 135 | "version": "1.0.0", 136 | "depth": 0, 137 | "source": "builtin", 138 | "dependencies": {} 139 | }, 140 | "com.unity.modules.jsonserialize": { 141 | "version": "1.0.0", 142 | "depth": 0, 143 | "source": "builtin", 144 | "dependencies": {} 145 | }, 146 | "com.unity.modules.particlesystem": { 147 | "version": "1.0.0", 148 | "depth": 0, 149 | "source": "builtin", 150 | "dependencies": {} 151 | }, 152 | "com.unity.modules.physics": { 153 | "version": "1.0.0", 154 | "depth": 0, 155 | "source": "builtin", 156 | "dependencies": {} 157 | }, 158 | "com.unity.modules.physics2d": { 159 | "version": "1.0.0", 160 | "depth": 0, 161 | "source": "builtin", 162 | "dependencies": {} 163 | }, 164 | "com.unity.modules.screencapture": { 165 | "version": "1.0.0", 166 | "depth": 0, 167 | "source": "builtin", 168 | "dependencies": { 169 | "com.unity.modules.imageconversion": "1.0.0" 170 | } 171 | }, 172 | "com.unity.modules.subsystems": { 173 | "version": "1.0.0", 174 | "depth": 1, 175 | "source": "builtin", 176 | "dependencies": { 177 | "com.unity.modules.jsonserialize": "1.0.0" 178 | } 179 | }, 180 | "com.unity.modules.terrain": { 181 | "version": "1.0.0", 182 | "depth": 0, 183 | "source": "builtin", 184 | "dependencies": {} 185 | }, 186 | "com.unity.modules.terrainphysics": { 187 | "version": "1.0.0", 188 | "depth": 0, 189 | "source": "builtin", 190 | "dependencies": { 191 | "com.unity.modules.physics": "1.0.0", 192 | "com.unity.modules.terrain": "1.0.0" 193 | } 194 | }, 195 | "com.unity.modules.tilemap": { 196 | "version": "1.0.0", 197 | "depth": 0, 198 | "source": "builtin", 199 | "dependencies": { 200 | "com.unity.modules.physics2d": "1.0.0" 201 | } 202 | }, 203 | "com.unity.modules.ui": { 204 | "version": "1.0.0", 205 | "depth": 0, 206 | "source": "builtin", 207 | "dependencies": {} 208 | }, 209 | "com.unity.modules.uielements": { 210 | "version": "1.0.0", 211 | "depth": 0, 212 | "source": "builtin", 213 | "dependencies": { 214 | "com.unity.modules.ui": "1.0.0", 215 | "com.unity.modules.imgui": "1.0.0", 216 | "com.unity.modules.jsonserialize": "1.0.0", 217 | "com.unity.modules.uielementsnative": "1.0.0" 218 | } 219 | }, 220 | "com.unity.modules.uielementsnative": { 221 | "version": "1.0.0", 222 | "depth": 1, 223 | "source": "builtin", 224 | "dependencies": { 225 | "com.unity.modules.ui": "1.0.0", 226 | "com.unity.modules.imgui": "1.0.0", 227 | "com.unity.modules.jsonserialize": "1.0.0" 228 | } 229 | }, 230 | "com.unity.modules.umbra": { 231 | "version": "1.0.0", 232 | "depth": 0, 233 | "source": "builtin", 234 | "dependencies": {} 235 | }, 236 | "com.unity.modules.unityanalytics": { 237 | "version": "1.0.0", 238 | "depth": 0, 239 | "source": "builtin", 240 | "dependencies": { 241 | "com.unity.modules.unitywebrequest": "1.0.0", 242 | "com.unity.modules.jsonserialize": "1.0.0" 243 | } 244 | }, 245 | "com.unity.modules.unitywebrequest": { 246 | "version": "1.0.0", 247 | "depth": 0, 248 | "source": "builtin", 249 | "dependencies": {} 250 | }, 251 | "com.unity.modules.unitywebrequestassetbundle": { 252 | "version": "1.0.0", 253 | "depth": 0, 254 | "source": "builtin", 255 | "dependencies": { 256 | "com.unity.modules.assetbundle": "1.0.0", 257 | "com.unity.modules.unitywebrequest": "1.0.0" 258 | } 259 | }, 260 | "com.unity.modules.unitywebrequestaudio": { 261 | "version": "1.0.0", 262 | "depth": 0, 263 | "source": "builtin", 264 | "dependencies": { 265 | "com.unity.modules.unitywebrequest": "1.0.0", 266 | "com.unity.modules.audio": "1.0.0" 267 | } 268 | }, 269 | "com.unity.modules.unitywebrequesttexture": { 270 | "version": "1.0.0", 271 | "depth": 0, 272 | "source": "builtin", 273 | "dependencies": { 274 | "com.unity.modules.unitywebrequest": "1.0.0", 275 | "com.unity.modules.imageconversion": "1.0.0" 276 | } 277 | }, 278 | "com.unity.modules.unitywebrequestwww": { 279 | "version": "1.0.0", 280 | "depth": 0, 281 | "source": "builtin", 282 | "dependencies": { 283 | "com.unity.modules.unitywebrequest": "1.0.0", 284 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 285 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 286 | "com.unity.modules.audio": "1.0.0", 287 | "com.unity.modules.assetbundle": "1.0.0", 288 | "com.unity.modules.imageconversion": "1.0.0" 289 | } 290 | }, 291 | "com.unity.modules.vehicles": { 292 | "version": "1.0.0", 293 | "depth": 0, 294 | "source": "builtin", 295 | "dependencies": { 296 | "com.unity.modules.physics": "1.0.0" 297 | } 298 | }, 299 | "com.unity.modules.video": { 300 | "version": "1.0.0", 301 | "depth": 0, 302 | "source": "builtin", 303 | "dependencies": { 304 | "com.unity.modules.audio": "1.0.0", 305 | "com.unity.modules.ui": "1.0.0", 306 | "com.unity.modules.unitywebrequest": "1.0.0" 307 | } 308 | }, 309 | "com.unity.modules.vr": { 310 | "version": "1.0.0", 311 | "depth": 0, 312 | "source": "builtin", 313 | "dependencies": { 314 | "com.unity.modules.jsonserialize": "1.0.0", 315 | "com.unity.modules.physics": "1.0.0", 316 | "com.unity.modules.xr": "1.0.0" 317 | } 318 | }, 319 | "com.unity.modules.wind": { 320 | "version": "1.0.0", 321 | "depth": 0, 322 | "source": "builtin", 323 | "dependencies": {} 324 | }, 325 | "com.unity.modules.xr": { 326 | "version": "1.0.0", 327 | "depth": 0, 328 | "source": "builtin", 329 | "dependencies": { 330 | "com.unity.modules.physics": "1.0.0", 331 | "com.unity.modules.jsonserialize": "1.0.0", 332 | "com.unity.modules.subsystems": "1.0.0" 333 | } 334 | } 335 | } 336 | } 337 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Volume: 1 8 | Rolloff Scale: 1 9 | Doppler Factor: 1 10 | Default Speaker Mode: 2 11 | m_SampleRate: 0 12 | m_DSPBufferSize: 1024 13 | m_VirtualVoiceCount: 512 14 | m_RealVoiceCount: 32 15 | m_SpatializerPlugin: 16 | m_AmbisonicDecoderPlugin: 17 | m_DisableAudio: 0 18 | m_VirtualizeEffects: 1 19 | m_RequestedDSPBufferSize: 0 20 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 13 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_ClothInterCollisionDistance: 0.1 18 | m_ClothInterCollisionStiffness: 0.2 19 | m_ContactsGeneration: 1 20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 0 23 | m_ReuseCollisionCallbacks: 0 24 | m_ClothInterCollisionSettingsToggle: 0 25 | m_ClothGravity: {x: 0, y: -9.81, z: 0} 26 | m_ContactPairsMode: 0 27 | m_BroadphaseType: 0 28 | m_WorldBounds: 29 | m_Center: {x: 0, y: 0, z: 0} 30 | m_Extent: {x: 250, y: 250, z: 250} 31 | m_WorldSubdivisions: 8 32 | m_FrictionType: 0 33 | m_EnableEnhancedDeterminism: 0 34 | m_EnableUnifiedHeightmaps: 1 35 | m_SolverType: 0 36 | m_DefaultMaxAngularSpeed: 50 37 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: 8 | - enabled: 1 9 | path: Assets/Scripts/Engine/Scene/Main.unity 10 | guid: 637be444bfd0fe54eba136b5e0606317 11 | m_configObjects: {} 12 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 9 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 2 10 | m_DefaultBehaviorMode: 0 11 | m_PrefabRegularEnvironment: {fileID: 0} 12 | m_PrefabUIEnvironment: {fileID: 0} 13 | m_SpritePackerMode: 0 14 | m_SpritePackerPaddingPower: 1 15 | m_EtcTextureCompressorBehavior: 1 16 | m_EtcTextureFastCompressor: 1 17 | m_EtcTextureNormalCompressor: 2 18 | m_EtcTextureBestCompressor: 4 19 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;asmref;rsp 20 | m_ProjectGenerationRootNamespace: 21 | m_CollabEditorSettings: 22 | inProgressEnabled: 1 23 | m_EnableTextureStreamingInEditMode: 1 24 | m_EnableTextureStreamingInPlayMode: 1 25 | m_AsyncShaderCompilation: 1 26 | m_EnterPlayModeOptionsEnabled: 0 27 | m_EnterPlayModeOptions: 3 28 | m_ShowLightmapResolutionOverlay: 1 29 | m_UseLegacyProbeSampleCount: 0 30 | m_AssetPipelineMode: 1 31 | m_CacheServerMode: 0 32 | m_CacheServerEndpoint: 33 | m_CacheServerNamespacePrefix: default 34 | m_CacheServerEnableDownload: 1 35 | m_CacheServerEnableUpload: 1 36 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 13 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | - {fileID: 10783, guid: 0000000000000000f000000000000000, type: 0} 39 | - {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0} 40 | - {fileID: 16001, guid: 0000000000000000f000000000000000, type: 0} 41 | - {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0} 42 | m_PreloadedShaders: [] 43 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 44 | type: 0} 45 | m_CustomRenderPipeline: {fileID: 0} 46 | m_TransparencySortMode: 0 47 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 48 | m_DefaultRenderingPath: 1 49 | m_DefaultMobileRenderingPath: 1 50 | m_TierSettings: [] 51 | m_LightmapStripping: 0 52 | m_FogStripping: 0 53 | m_InstancingStripping: 0 54 | m_LightmapKeepPlain: 1 55 | m_LightmapKeepDirCombined: 1 56 | m_LightmapKeepDynamicPlain: 1 57 | m_LightmapKeepDynamicDirCombined: 1 58 | m_LightmapKeepShadowMask: 1 59 | m_LightmapKeepSubtractive: 1 60 | m_FogKeepLinear: 1 61 | m_FogKeepExp: 1 62 | m_FogKeepExp2: 1 63 | m_AlbedoSwatchInfos: [] 64 | m_LightsUseLinearIntensity: 0 65 | m_LightsUseColorTemperature: 0 66 | m_LogWhenShaderIsCompiled: 0 67 | m_AllowEnlightenSupportForUpgradedProject: 0 68 | -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: 0.001 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: 0.001 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: 0.001 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: 0.001 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left shift 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: 0.001 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: 0.1 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: 0.1 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: 0.1 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: 0.19 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: 0.19 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: 0.001 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: 0.001 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: 0.001 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: 0.001 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: 0.001 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: 0.001 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | debug: 89 | m_Flags: 0 90 | m_SettingNames: 91 | - Humanoid 92 | -------------------------------------------------------------------------------- /ProjectSettings/PackageManagerSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &1 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 61 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0} 13 | m_Name: 14 | m_EditorClassIdentifier: 15 | m_ScopedRegistriesSettingsExpanded: 1 16 | oneTimeWarningShown: 0 17 | m_Registries: 18 | - m_Id: main 19 | m_Name: 20 | m_Url: https://packages.unity.com 21 | m_Scopes: [] 22 | m_IsDefault: 1 23 | m_UserSelectedRegistryName: 24 | m_UserAddingNewScopedRegistry: 0 25 | m_RegistryInfoDraft: 26 | m_ErrorMessage: 27 | m_Original: 28 | m_Id: 29 | m_Name: 30 | m_Url: 31 | m_Scopes: [] 32 | m_IsDefault: 0 33 | m_Modified: 0 34 | m_Name: 35 | m_Url: 36 | m_Scopes: 37 | - 38 | m_SelectedScopeIndex: 0 39 | -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 4 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_JobOptions: 23 | serializedVersion: 2 24 | useMultithreading: 0 25 | useConsistencySorting: 0 26 | m_InterpolationPosesPerJob: 100 27 | m_NewContactsPerJob: 30 28 | m_CollideContactsPerJob: 100 29 | m_ClearFlagsPerJob: 200 30 | m_ClearBodyForcesPerJob: 200 31 | m_SyncDiscreteFixturesPerJob: 50 32 | m_SyncContinuousFixturesPerJob: 50 33 | m_FindNearestContactsPerJob: 100 34 | m_UpdateTriggerContactsPerJob: 100 35 | m_IslandSolverCostThreshold: 100 36 | m_IslandSolverBodyCostScale: 1 37 | m_IslandSolverContactCostScale: 10 38 | m_IslandSolverJointCostScale: 10 39 | m_IslandSolverBodiesPerJob: 50 40 | m_IslandSolverContactsPerJob: 50 41 | m_AutoSimulation: 1 42 | m_QueriesHitTriggers: 1 43 | m_QueriesStartInColliders: 1 44 | m_CallbacksOnDisable: 1 45 | m_ReuseCollisionCallbacks: 0 46 | m_AutoSyncTransforms: 0 47 | m_AlwaysShowColliders: 0 48 | m_ShowColliderSleep: 1 49 | m_ShowColliderContacts: 0 50 | m_ShowColliderAABB: 0 51 | m_ContactArrowScale: 0.2 52 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 53 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 54 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 55 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 56 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 57 | -------------------------------------------------------------------------------- /ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_DefaultPresets: {} 8 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!129 &1 4 | PlayerSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 22 7 | productGUID: 22c20d64605bb0b4c891d98e0605c760 8 | AndroidProfiler: 0 9 | AndroidFilterTouchesWhenObscured: 0 10 | AndroidEnableSustainedPerformanceMode: 0 11 | defaultScreenOrientation: 4 12 | targetDevice: 2 13 | useOnDemandResources: 0 14 | accelerometerFrequency: 60 15 | companyName: DefaultCompany 16 | productName: New Unity Project 17 | defaultCursor: {fileID: 0} 18 | cursorHotspot: {x: 0, y: 0} 19 | m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} 20 | m_ShowUnitySplashScreen: 1 21 | m_ShowUnitySplashLogo: 1 22 | m_SplashScreenOverlayOpacity: 1 23 | m_SplashScreenAnimation: 1 24 | m_SplashScreenLogoStyle: 1 25 | m_SplashScreenDrawMode: 0 26 | m_SplashScreenBackgroundAnimationZoom: 1 27 | m_SplashScreenLogoAnimationZoom: 1 28 | m_SplashScreenBackgroundLandscapeAspect: 1 29 | m_SplashScreenBackgroundPortraitAspect: 1 30 | m_SplashScreenBackgroundLandscapeUvs: 31 | serializedVersion: 2 32 | x: 0 33 | y: 0 34 | width: 1 35 | height: 1 36 | m_SplashScreenBackgroundPortraitUvs: 37 | serializedVersion: 2 38 | x: 0 39 | y: 0 40 | width: 1 41 | height: 1 42 | m_SplashScreenLogos: [] 43 | m_VirtualRealitySplashScreen: {fileID: 0} 44 | m_HolographicTrackingLossScreen: {fileID: 0} 45 | defaultScreenWidth: 1024 46 | defaultScreenHeight: 768 47 | defaultScreenWidthWeb: 960 48 | defaultScreenHeightWeb: 600 49 | m_StereoRenderingPath: 0 50 | m_ActiveColorSpace: 0 51 | m_MTRendering: 1 52 | mipStripping: 0 53 | numberOfMipsStripped: 0 54 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 55 | iosShowActivityIndicatorOnLoading: -1 56 | androidShowActivityIndicatorOnLoading: -1 57 | iosUseCustomAppBackgroundBehavior: 0 58 | iosAllowHTTPDownload: 1 59 | allowedAutorotateToPortrait: 1 60 | allowedAutorotateToPortraitUpsideDown: 1 61 | allowedAutorotateToLandscapeRight: 1 62 | allowedAutorotateToLandscapeLeft: 1 63 | useOSAutorotation: 1 64 | use32BitDisplayBuffer: 1 65 | preserveFramebufferAlpha: 0 66 | disableDepthAndStencilBuffers: 0 67 | androidStartInFullscreen: 1 68 | androidRenderOutsideSafeArea: 1 69 | androidUseSwappy: 0 70 | androidBlitType: 0 71 | defaultIsNativeResolution: 1 72 | macRetinaSupport: 1 73 | runInBackground: 0 74 | captureSingleScreen: 0 75 | muteOtherAudioSources: 0 76 | Prepare IOS For Recording: 0 77 | Force IOS Speakers When Recording: 0 78 | deferSystemGesturesMode: 0 79 | hideHomeButton: 0 80 | submitAnalytics: 1 81 | usePlayerLog: 1 82 | bakeCollisionMeshes: 0 83 | forceSingleInstance: 0 84 | useFlipModelSwapchain: 1 85 | resizableWindow: 0 86 | useMacAppStoreValidation: 0 87 | macAppStoreCategory: public.app-category.games 88 | gpuSkinning: 0 89 | xboxPIXTextureCapture: 0 90 | xboxEnableAvatar: 0 91 | xboxEnableKinect: 0 92 | xboxEnableKinectAutoTracking: 0 93 | xboxEnableFitness: 0 94 | visibleInBackground: 1 95 | allowFullscreenSwitch: 1 96 | fullscreenMode: 1 97 | xboxSpeechDB: 0 98 | xboxEnableHeadOrientation: 0 99 | xboxEnableGuest: 0 100 | xboxEnablePIXSampling: 0 101 | metalFramebufferOnly: 0 102 | xboxOneResolution: 0 103 | xboxOneSResolution: 0 104 | xboxOneXResolution: 3 105 | xboxOneMonoLoggingLevel: 0 106 | xboxOneLoggingLevel: 1 107 | xboxOneDisableEsram: 0 108 | xboxOneEnableTypeOptimization: 0 109 | xboxOnePresentImmediateThreshold: 0 110 | switchQueueCommandMemory: 1048576 111 | switchQueueControlMemory: 16384 112 | switchQueueComputeMemory: 262144 113 | switchNVNShaderPoolsGranularity: 33554432 114 | switchNVNDefaultPoolsGranularity: 16777216 115 | switchNVNOtherPoolsGranularity: 16777216 116 | switchNVNMaxPublicTextureIDCount: 0 117 | switchNVNMaxPublicSamplerIDCount: 0 118 | stadiaPresentMode: 0 119 | stadiaTargetFramerate: 0 120 | vulkanNumSwapchainBuffers: 3 121 | vulkanEnableSetSRGBWrite: 0 122 | vulkanEnablePreTransform: 0 123 | vulkanEnableLateAcquireNextImage: 0 124 | m_SupportedAspectRatios: 125 | 4:3: 1 126 | 5:4: 1 127 | 16:10: 1 128 | 16:9: 1 129 | Others: 1 130 | bundleVersion: 1.0 131 | preloadedAssets: [] 132 | metroInputSource: 0 133 | wsaTransparentSwapchain: 0 134 | m_HolographicPauseOnTrackingLoss: 1 135 | xboxOneDisableKinectGpuReservation: 1 136 | xboxOneEnable7thCore: 1 137 | vrSettings: 138 | enable360StereoCapture: 0 139 | isWsaHolographicRemotingEnabled: 0 140 | enableFrameTimingStats: 0 141 | useHDRDisplay: 0 142 | D3DHDRBitDepth: 0 143 | m_ColorGamuts: 00000000 144 | targetPixelDensity: 30 145 | resolutionScalingMode: 0 146 | androidSupportedAspectRatio: 1 147 | androidMaxAspectRatio: 2.1 148 | applicationIdentifier: {} 149 | buildNumber: 150 | Standalone: 0 151 | iPhone: 0 152 | tvOS: 0 153 | overrideDefaultApplicationIdentifier: 0 154 | AndroidBundleVersionCode: 1 155 | AndroidMinSdkVersion: 19 156 | AndroidTargetSdkVersion: 0 157 | AndroidPreferredInstallLocation: 1 158 | aotOptions: 159 | stripEngineCode: 1 160 | iPhoneStrippingLevel: 0 161 | iPhoneScriptCallOptimization: 0 162 | ForceInternetPermission: 0 163 | ForceSDCardPermission: 0 164 | CreateWallpaper: 0 165 | APKExpansionFiles: 0 166 | keepLoadedShadersAlive: 0 167 | StripUnusedMeshComponents: 0 168 | VertexChannelCompressionMask: 4054 169 | iPhoneSdkVersion: 988 170 | iOSTargetOSVersionString: 11.0 171 | tvOSSdkVersion: 0 172 | tvOSRequireExtendedGameController: 0 173 | tvOSTargetOSVersionString: 11.0 174 | uIPrerenderedIcon: 0 175 | uIRequiresPersistentWiFi: 0 176 | uIRequiresFullScreen: 1 177 | uIStatusBarHidden: 1 178 | uIExitOnSuspend: 0 179 | uIStatusBarStyle: 0 180 | appleTVSplashScreen: {fileID: 0} 181 | appleTVSplashScreen2x: {fileID: 0} 182 | tvOSSmallIconLayers: [] 183 | tvOSSmallIconLayers2x: [] 184 | tvOSLargeIconLayers: [] 185 | tvOSLargeIconLayers2x: [] 186 | tvOSTopShelfImageLayers: [] 187 | tvOSTopShelfImageLayers2x: [] 188 | tvOSTopShelfImageWideLayers: [] 189 | tvOSTopShelfImageWideLayers2x: [] 190 | iOSLaunchScreenType: 0 191 | iOSLaunchScreenPortrait: {fileID: 0} 192 | iOSLaunchScreenLandscape: {fileID: 0} 193 | iOSLaunchScreenBackgroundColor: 194 | serializedVersion: 2 195 | rgba: 0 196 | iOSLaunchScreenFillPct: 100 197 | iOSLaunchScreenSize: 100 198 | iOSLaunchScreenCustomXibPath: 199 | iOSLaunchScreeniPadType: 0 200 | iOSLaunchScreeniPadImage: {fileID: 0} 201 | iOSLaunchScreeniPadBackgroundColor: 202 | serializedVersion: 2 203 | rgba: 0 204 | iOSLaunchScreeniPadFillPct: 100 205 | iOSLaunchScreeniPadSize: 100 206 | iOSLaunchScreeniPadCustomXibPath: 207 | iOSLaunchScreenCustomStoryboardPath: 208 | iOSLaunchScreeniPadCustomStoryboardPath: 209 | iOSDeviceRequirements: [] 210 | iOSURLSchemes: [] 211 | iOSBackgroundModes: 0 212 | iOSMetalForceHardShadows: 0 213 | metalEditorSupport: 1 214 | metalAPIValidation: 1 215 | iOSRenderExtraFrameOnPause: 0 216 | iosCopyPluginsCodeInsteadOfSymlink: 0 217 | appleDeveloperTeamID: 218 | iOSManualSigningProvisioningProfileID: 219 | tvOSManualSigningProvisioningProfileID: 220 | iOSManualSigningProvisioningProfileType: 0 221 | tvOSManualSigningProvisioningProfileType: 0 222 | appleEnableAutomaticSigning: 0 223 | iOSRequireARKit: 0 224 | iOSAutomaticallyDetectAndAddCapabilities: 1 225 | appleEnableProMotion: 0 226 | shaderPrecisionModel: 0 227 | clonedFromGUID: 00000000000000000000000000000000 228 | templatePackageId: 229 | templateDefaultScene: 230 | useCustomMainManifest: 0 231 | useCustomLauncherManifest: 0 232 | useCustomMainGradleTemplate: 0 233 | useCustomLauncherGradleManifest: 0 234 | useCustomBaseGradleTemplate: 0 235 | useCustomGradlePropertiesTemplate: 0 236 | useCustomProguardFile: 0 237 | AndroidTargetArchitectures: 1 238 | AndroidSplashScreenScale: 0 239 | androidSplashScreen: {fileID: 0} 240 | AndroidKeystoreName: 241 | AndroidKeyaliasName: 242 | AndroidBuildApkPerCpuArchitecture: 0 243 | AndroidTVCompatibility: 0 244 | AndroidIsGame: 1 245 | AndroidEnableTango: 0 246 | androidEnableBanner: 1 247 | androidUseLowAccuracyLocation: 0 248 | androidUseCustomKeystore: 0 249 | m_AndroidBanners: 250 | - width: 320 251 | height: 180 252 | banner: {fileID: 0} 253 | androidGamepadSupportLevel: 0 254 | AndroidMinifyWithR8: 0 255 | AndroidMinifyRelease: 0 256 | AndroidMinifyDebug: 0 257 | AndroidValidateAppBundleSize: 1 258 | AndroidAppBundleSizeToValidate: 150 259 | m_BuildTargetIcons: [] 260 | m_BuildTargetPlatformIcons: [] 261 | m_BuildTargetBatching: [] 262 | m_BuildTargetGraphicsJobs: [] 263 | m_BuildTargetGraphicsJobMode: [] 264 | m_BuildTargetGraphicsAPIs: 265 | - m_BuildTarget: iOSSupport 266 | m_APIs: 10000000 267 | m_Automatic: 1 268 | m_BuildTargetVRSettings: [] 269 | openGLRequireES31: 0 270 | openGLRequireES31AEP: 0 271 | openGLRequireES32: 0 272 | m_TemplateCustomTags: {} 273 | mobileMTRendering: 274 | Android: 1 275 | iPhone: 1 276 | tvOS: 1 277 | m_BuildTargetGroupLightmapEncodingQuality: [] 278 | m_BuildTargetGroupLightmapSettings: [] 279 | m_BuildTargetNormalMapEncoding: [] 280 | playModeTestRunnerEnabled: 0 281 | runPlayModeTestAsEditModeTest: 0 282 | actionOnDotNetUnhandledException: 1 283 | enableInternalProfiler: 0 284 | logObjCUncaughtExceptions: 1 285 | enableCrashReportAPI: 0 286 | cameraUsageDescription: 287 | locationUsageDescription: 288 | microphoneUsageDescription: 289 | switchNMETAOverride: 290 | switchNetLibKey: 291 | switchSocketMemoryPoolSize: 6144 292 | switchSocketAllocatorPoolSize: 128 293 | switchSocketConcurrencyLimit: 14 294 | switchScreenResolutionBehavior: 2 295 | switchUseCPUProfiler: 0 296 | switchUseGOLDLinker: 0 297 | switchApplicationID: 0x01004b9000490000 298 | switchNSODependencies: 299 | switchTitleNames_0: 300 | switchTitleNames_1: 301 | switchTitleNames_2: 302 | switchTitleNames_3: 303 | switchTitleNames_4: 304 | switchTitleNames_5: 305 | switchTitleNames_6: 306 | switchTitleNames_7: 307 | switchTitleNames_8: 308 | switchTitleNames_9: 309 | switchTitleNames_10: 310 | switchTitleNames_11: 311 | switchTitleNames_12: 312 | switchTitleNames_13: 313 | switchTitleNames_14: 314 | switchPublisherNames_0: 315 | switchPublisherNames_1: 316 | switchPublisherNames_2: 317 | switchPublisherNames_3: 318 | switchPublisherNames_4: 319 | switchPublisherNames_5: 320 | switchPublisherNames_6: 321 | switchPublisherNames_7: 322 | switchPublisherNames_8: 323 | switchPublisherNames_9: 324 | switchPublisherNames_10: 325 | switchPublisherNames_11: 326 | switchPublisherNames_12: 327 | switchPublisherNames_13: 328 | switchPublisherNames_14: 329 | switchIcons_0: {fileID: 0} 330 | switchIcons_1: {fileID: 0} 331 | switchIcons_2: {fileID: 0} 332 | switchIcons_3: {fileID: 0} 333 | switchIcons_4: {fileID: 0} 334 | switchIcons_5: {fileID: 0} 335 | switchIcons_6: {fileID: 0} 336 | switchIcons_7: {fileID: 0} 337 | switchIcons_8: {fileID: 0} 338 | switchIcons_9: {fileID: 0} 339 | switchIcons_10: {fileID: 0} 340 | switchIcons_11: {fileID: 0} 341 | switchIcons_12: {fileID: 0} 342 | switchIcons_13: {fileID: 0} 343 | switchIcons_14: {fileID: 0} 344 | switchSmallIcons_0: {fileID: 0} 345 | switchSmallIcons_1: {fileID: 0} 346 | switchSmallIcons_2: {fileID: 0} 347 | switchSmallIcons_3: {fileID: 0} 348 | switchSmallIcons_4: {fileID: 0} 349 | switchSmallIcons_5: {fileID: 0} 350 | switchSmallIcons_6: {fileID: 0} 351 | switchSmallIcons_7: {fileID: 0} 352 | switchSmallIcons_8: {fileID: 0} 353 | switchSmallIcons_9: {fileID: 0} 354 | switchSmallIcons_10: {fileID: 0} 355 | switchSmallIcons_11: {fileID: 0} 356 | switchSmallIcons_12: {fileID: 0} 357 | switchSmallIcons_13: {fileID: 0} 358 | switchSmallIcons_14: {fileID: 0} 359 | switchManualHTML: 360 | switchAccessibleURLs: 361 | switchLegalInformation: 362 | switchMainThreadStackSize: 1048576 363 | switchPresenceGroupId: 364 | switchLogoHandling: 0 365 | switchReleaseVersion: 0 366 | switchDisplayVersion: 1.0.0 367 | switchStartupUserAccount: 0 368 | switchTouchScreenUsage: 0 369 | switchSupportedLanguagesMask: 0 370 | switchLogoType: 0 371 | switchApplicationErrorCodeCategory: 372 | switchUserAccountSaveDataSize: 0 373 | switchUserAccountSaveDataJournalSize: 0 374 | switchApplicationAttribute: 0 375 | switchCardSpecSize: -1 376 | switchCardSpecClock: -1 377 | switchRatingsMask: 0 378 | switchRatingsInt_0: 0 379 | switchRatingsInt_1: 0 380 | switchRatingsInt_2: 0 381 | switchRatingsInt_3: 0 382 | switchRatingsInt_4: 0 383 | switchRatingsInt_5: 0 384 | switchRatingsInt_6: 0 385 | switchRatingsInt_7: 0 386 | switchRatingsInt_8: 0 387 | switchRatingsInt_9: 0 388 | switchRatingsInt_10: 0 389 | switchRatingsInt_11: 0 390 | switchRatingsInt_12: 0 391 | switchLocalCommunicationIds_0: 392 | switchLocalCommunicationIds_1: 393 | switchLocalCommunicationIds_2: 394 | switchLocalCommunicationIds_3: 395 | switchLocalCommunicationIds_4: 396 | switchLocalCommunicationIds_5: 397 | switchLocalCommunicationIds_6: 398 | switchLocalCommunicationIds_7: 399 | switchParentalControl: 0 400 | switchAllowsScreenshot: 1 401 | switchAllowsVideoCapturing: 1 402 | switchAllowsRuntimeAddOnContentInstall: 0 403 | switchDataLossConfirmation: 0 404 | switchUserAccountLockEnabled: 0 405 | switchSystemResourceMemory: 16777216 406 | switchSupportedNpadStyles: 22 407 | switchNativeFsCacheSize: 32 408 | switchIsHoldTypeHorizontal: 0 409 | switchSupportedNpadCount: 8 410 | switchSocketConfigEnabled: 0 411 | switchTcpInitialSendBufferSize: 32 412 | switchTcpInitialReceiveBufferSize: 64 413 | switchTcpAutoSendBufferSizeMax: 256 414 | switchTcpAutoReceiveBufferSizeMax: 256 415 | switchUdpSendBufferSize: 9 416 | switchUdpReceiveBufferSize: 42 417 | switchSocketBufferEfficiency: 4 418 | switchSocketInitializeEnabled: 1 419 | switchNetworkInterfaceManagerInitializeEnabled: 1 420 | switchPlayerConnectionEnabled: 1 421 | switchUseNewStyleFilepaths: 0 422 | ps4NPAgeRating: 12 423 | ps4NPTitleSecret: 424 | ps4NPTrophyPackPath: 425 | ps4ParentalLevel: 11 426 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 427 | ps4Category: 0 428 | ps4MasterVersion: 01.00 429 | ps4AppVersion: 01.00 430 | ps4AppType: 0 431 | ps4ParamSfxPath: 432 | ps4VideoOutPixelFormat: 0 433 | ps4VideoOutInitialWidth: 1920 434 | ps4VideoOutBaseModeInitialWidth: 1920 435 | ps4VideoOutReprojectionRate: 60 436 | ps4PronunciationXMLPath: 437 | ps4PronunciationSIGPath: 438 | ps4BackgroundImagePath: 439 | ps4StartupImagePath: 440 | ps4StartupImagesFolder: 441 | ps4IconImagesFolder: 442 | ps4SaveDataImagePath: 443 | ps4SdkOverride: 444 | ps4BGMPath: 445 | ps4ShareFilePath: 446 | ps4ShareOverlayImagePath: 447 | ps4PrivacyGuardImagePath: 448 | ps4ExtraSceSysFile: 449 | ps4NPtitleDatPath: 450 | ps4RemotePlayKeyAssignment: -1 451 | ps4RemotePlayKeyMappingDir: 452 | ps4PlayTogetherPlayerCount: 0 453 | ps4EnterButtonAssignment: 2 454 | ps4ApplicationParam1: 0 455 | ps4ApplicationParam2: 0 456 | ps4ApplicationParam3: 0 457 | ps4ApplicationParam4: 0 458 | ps4DownloadDataSize: 0 459 | ps4GarlicHeapSize: 2048 460 | ps4ProGarlicHeapSize: 2560 461 | playerPrefsMaxSize: 32768 462 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 463 | ps4pnSessions: 1 464 | ps4pnPresence: 1 465 | ps4pnFriends: 1 466 | ps4pnGameCustomData: 1 467 | playerPrefsSupport: 0 468 | enableApplicationExit: 0 469 | resetTempFolder: 1 470 | restrictedAudioUsageRights: 0 471 | ps4UseResolutionFallback: 0 472 | ps4ReprojectionSupport: 0 473 | ps4UseAudio3dBackend: 0 474 | ps4UseLowGarlicFragmentationMode: 1 475 | ps4SocialScreenEnabled: 0 476 | ps4ScriptOptimizationLevel: 2 477 | ps4Audio3dVirtualSpeakerCount: 14 478 | ps4attribCpuUsage: 0 479 | ps4PatchPkgPath: 480 | ps4PatchLatestPkgPath: 481 | ps4PatchChangeinfoPath: 482 | ps4PatchDayOne: 0 483 | ps4attribUserManagement: 0 484 | ps4attribMoveSupport: 0 485 | ps4attrib3DSupport: 0 486 | ps4attribShareSupport: 0 487 | ps4attribExclusiveVR: 0 488 | ps4disableAutoHideSplash: 0 489 | ps4videoRecordingFeaturesUsed: 0 490 | ps4contentSearchFeaturesUsed: 0 491 | ps4CompatibilityPS5: 0 492 | ps4GPU800MHz: 1 493 | ps4attribEyeToEyeDistanceSettingVR: 0 494 | ps4IncludedModules: [] 495 | ps4attribVROutputEnabled: 0 496 | monoEnv: 497 | splashScreenBackgroundSourceLandscape: {fileID: 0} 498 | splashScreenBackgroundSourcePortrait: {fileID: 0} 499 | blurSplashScreenBackground: 1 500 | spritePackerPolicy: 501 | webGLMemorySize: 32 502 | webGLExceptionSupport: 1 503 | webGLNameFilesAsHashes: 0 504 | webGLDataCaching: 1 505 | webGLDebugSymbols: 0 506 | webGLEmscriptenArgs: 507 | webGLModulesDirectory: 508 | webGLTemplate: APPLICATION:Default 509 | webGLAnalyzeBuildSize: 0 510 | webGLUseEmbeddedResources: 0 511 | webGLCompressionFormat: 2 512 | webGLWasmArithmeticExceptions: 0 513 | webGLLinkerTarget: 1 514 | webGLThreadsSupport: 0 515 | webGLDecompressionFallback: 0 516 | scriptingDefineSymbols: {} 517 | additionalCompilerArguments: {} 518 | platformArchitecture: {} 519 | scriptingBackend: {} 520 | il2cppCompilerConfiguration: {} 521 | managedStrippingLevel: {} 522 | incrementalIl2cppBuild: {} 523 | suppressCommonWarnings: 1 524 | allowUnsafeCode: 0 525 | useDeterministicCompilation: 1 526 | useReferenceAssemblies: 1 527 | enableRoslynAnalyzers: 1 528 | additionalIl2CppArgs: 529 | scriptingRuntimeVersion: 1 530 | gcIncremental: 0 531 | assemblyVersionValidation: 1 532 | gcWBarrierValidation: 0 533 | apiCompatibilityLevelPerPlatform: 534 | WebGL: 3 535 | m_RenderingPath: 1 536 | m_MobileRenderingPath: 1 537 | metroPackageName: New Unity Project 538 | metroPackageVersion: 539 | metroCertificatePath: 540 | metroCertificatePassword: 541 | metroCertificateSubject: 542 | metroCertificateIssuer: 543 | metroCertificateNotAfter: 0000000000000000 544 | metroApplicationDescription: New Unity Project 545 | wsaImages: {} 546 | metroTileShortName: 547 | metroTileShowName: 0 548 | metroMediumTileShowName: 0 549 | metroLargeTileShowName: 0 550 | metroWideTileShowName: 0 551 | metroSupportStreamingInstall: 0 552 | metroLastRequiredScene: 0 553 | metroDefaultTileSize: 1 554 | metroTileForegroundText: 2 555 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 556 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 557 | a: 1} 558 | metroSplashScreenUseBackgroundColor: 0 559 | platformCapabilities: {} 560 | metroTargetDeviceFamilies: {} 561 | metroFTAName: 562 | metroFTAFileTypes: [] 563 | metroProtocolName: 564 | XboxOneProductId: 565 | XboxOneUpdateKey: 566 | XboxOneSandboxId: 567 | XboxOneContentId: 568 | XboxOneTitleId: 569 | XboxOneSCId: 570 | XboxOneGameOsOverridePath: 571 | XboxOnePackagingOverridePath: 572 | XboxOneAppManifestOverridePath: 573 | XboxOneVersion: 1.0.0.0 574 | XboxOnePackageEncryption: 0 575 | XboxOnePackageUpdateGranularity: 2 576 | XboxOneDescription: 577 | XboxOneLanguage: 578 | - enus 579 | XboxOneCapability: [] 580 | XboxOneGameRating: {} 581 | XboxOneIsContentPackage: 0 582 | XboxOneEnhancedXboxCompatibilityMode: 0 583 | XboxOneEnableGPUVariability: 1 584 | XboxOneSockets: {} 585 | XboxOneSplashScreen: {fileID: 0} 586 | XboxOneAllowedProductIds: [] 587 | XboxOnePersistentLocalStorageSize: 0 588 | XboxOneXTitleMemory: 8 589 | XboxOneOverrideIdentityName: 590 | XboxOneOverrideIdentityPublisher: 591 | vrEditorSettings: {} 592 | cloudServicesEnabled: {} 593 | luminIcon: 594 | m_Name: 595 | m_ModelFolderPath: 596 | m_PortalFolderPath: 597 | luminCert: 598 | m_CertPath: 599 | m_SignPackage: 1 600 | luminIsChannelApp: 0 601 | luminVersion: 602 | m_VersionCode: 1 603 | m_VersionName: 604 | apiCompatibilityLevel: 6 605 | activeInputHandler: 0 606 | cloudProjectId: 607 | framebufferDepthMemorylessMode: 0 608 | qualitySettingsNames: [] 609 | projectName: 610 | organizationId: 611 | cloudEnabled: 0 612 | legacyClampBlendShapeWeights: 0 613 | virtualTexturingSupportEnabled: 0 614 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2020.2.6f1 2 | m_EditorVersionWithRevision: 2020.2.6f1 (8a2143876886) 3 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 5 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Very Low 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | shadowNearPlaneOffset: 3 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | shadowmaskMode: 0 21 | skinWeights: 1 22 | textureQuality: 1 23 | anisotropicTextures: 0 24 | antiAliasing: 0 25 | softParticles: 0 26 | softVegetation: 0 27 | realtimeReflectionProbes: 0 28 | billboardsFaceCameraPosition: 0 29 | vSyncCount: 0 30 | lodBias: 0.3 31 | maximumLODLevel: 0 32 | streamingMipmapsActive: 0 33 | streamingMipmapsAddAllCameras: 1 34 | streamingMipmapsMemoryBudget: 512 35 | streamingMipmapsRenderersPerFrame: 512 36 | streamingMipmapsMaxLevelReduction: 2 37 | streamingMipmapsMaxFileIORequests: 1024 38 | particleRaycastBudget: 4 39 | asyncUploadTimeSlice: 2 40 | asyncUploadBufferSize: 16 41 | asyncUploadPersistentBuffer: 1 42 | resolutionScalingFixedDPIFactor: 1 43 | customRenderPipeline: {fileID: 0} 44 | excludedTargetPlatforms: [] 45 | - serializedVersion: 2 46 | name: Low 47 | pixelLightCount: 0 48 | shadows: 0 49 | shadowResolution: 0 50 | shadowProjection: 1 51 | shadowCascades: 1 52 | shadowDistance: 20 53 | shadowNearPlaneOffset: 3 54 | shadowCascade2Split: 0.33333334 55 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 56 | shadowmaskMode: 0 57 | skinWeights: 2 58 | textureQuality: 0 59 | anisotropicTextures: 0 60 | antiAliasing: 0 61 | softParticles: 0 62 | softVegetation: 0 63 | realtimeReflectionProbes: 0 64 | billboardsFaceCameraPosition: 0 65 | vSyncCount: 0 66 | lodBias: 0.4 67 | maximumLODLevel: 0 68 | streamingMipmapsActive: 0 69 | streamingMipmapsAddAllCameras: 1 70 | streamingMipmapsMemoryBudget: 512 71 | streamingMipmapsRenderersPerFrame: 512 72 | streamingMipmapsMaxLevelReduction: 2 73 | streamingMipmapsMaxFileIORequests: 1024 74 | particleRaycastBudget: 16 75 | asyncUploadTimeSlice: 2 76 | asyncUploadBufferSize: 16 77 | asyncUploadPersistentBuffer: 1 78 | resolutionScalingFixedDPIFactor: 1 79 | customRenderPipeline: {fileID: 0} 80 | excludedTargetPlatforms: [] 81 | - serializedVersion: 2 82 | name: Medium 83 | pixelLightCount: 1 84 | shadows: 1 85 | shadowResolution: 0 86 | shadowProjection: 1 87 | shadowCascades: 1 88 | shadowDistance: 20 89 | shadowNearPlaneOffset: 3 90 | shadowCascade2Split: 0.33333334 91 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 92 | shadowmaskMode: 0 93 | skinWeights: 2 94 | textureQuality: 0 95 | anisotropicTextures: 1 96 | antiAliasing: 0 97 | softParticles: 0 98 | softVegetation: 0 99 | realtimeReflectionProbes: 0 100 | billboardsFaceCameraPosition: 0 101 | vSyncCount: 1 102 | lodBias: 0.7 103 | maximumLODLevel: 0 104 | streamingMipmapsActive: 0 105 | streamingMipmapsAddAllCameras: 1 106 | streamingMipmapsMemoryBudget: 512 107 | streamingMipmapsRenderersPerFrame: 512 108 | streamingMipmapsMaxLevelReduction: 2 109 | streamingMipmapsMaxFileIORequests: 1024 110 | particleRaycastBudget: 64 111 | asyncUploadTimeSlice: 2 112 | asyncUploadBufferSize: 16 113 | asyncUploadPersistentBuffer: 1 114 | resolutionScalingFixedDPIFactor: 1 115 | customRenderPipeline: {fileID: 0} 116 | excludedTargetPlatforms: [] 117 | - serializedVersion: 2 118 | name: High 119 | pixelLightCount: 2 120 | shadows: 2 121 | shadowResolution: 1 122 | shadowProjection: 1 123 | shadowCascades: 2 124 | shadowDistance: 40 125 | shadowNearPlaneOffset: 3 126 | shadowCascade2Split: 0.33333334 127 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 128 | shadowmaskMode: 1 129 | skinWeights: 2 130 | textureQuality: 0 131 | anisotropicTextures: 1 132 | antiAliasing: 0 133 | softParticles: 0 134 | softVegetation: 1 135 | realtimeReflectionProbes: 1 136 | billboardsFaceCameraPosition: 1 137 | vSyncCount: 1 138 | lodBias: 1 139 | maximumLODLevel: 0 140 | streamingMipmapsActive: 0 141 | streamingMipmapsAddAllCameras: 1 142 | streamingMipmapsMemoryBudget: 512 143 | streamingMipmapsRenderersPerFrame: 512 144 | streamingMipmapsMaxLevelReduction: 2 145 | streamingMipmapsMaxFileIORequests: 1024 146 | particleRaycastBudget: 256 147 | asyncUploadTimeSlice: 2 148 | asyncUploadBufferSize: 16 149 | asyncUploadPersistentBuffer: 1 150 | resolutionScalingFixedDPIFactor: 1 151 | customRenderPipeline: {fileID: 0} 152 | excludedTargetPlatforms: [] 153 | - serializedVersion: 2 154 | name: Very High 155 | pixelLightCount: 3 156 | shadows: 2 157 | shadowResolution: 2 158 | shadowProjection: 1 159 | shadowCascades: 2 160 | shadowDistance: 70 161 | shadowNearPlaneOffset: 3 162 | shadowCascade2Split: 0.33333334 163 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 164 | shadowmaskMode: 1 165 | skinWeights: 4 166 | textureQuality: 0 167 | anisotropicTextures: 2 168 | antiAliasing: 2 169 | softParticles: 1 170 | softVegetation: 1 171 | realtimeReflectionProbes: 1 172 | billboardsFaceCameraPosition: 1 173 | vSyncCount: 1 174 | lodBias: 1.5 175 | maximumLODLevel: 0 176 | streamingMipmapsActive: 0 177 | streamingMipmapsAddAllCameras: 1 178 | streamingMipmapsMemoryBudget: 512 179 | streamingMipmapsRenderersPerFrame: 512 180 | streamingMipmapsMaxLevelReduction: 2 181 | streamingMipmapsMaxFileIORequests: 1024 182 | particleRaycastBudget: 1024 183 | asyncUploadTimeSlice: 2 184 | asyncUploadBufferSize: 16 185 | asyncUploadPersistentBuffer: 1 186 | resolutionScalingFixedDPIFactor: 1 187 | customRenderPipeline: {fileID: 0} 188 | excludedTargetPlatforms: [] 189 | - serializedVersion: 2 190 | name: Ultra 191 | pixelLightCount: 4 192 | shadows: 2 193 | shadowResolution: 2 194 | shadowProjection: 1 195 | shadowCascades: 4 196 | shadowDistance: 150 197 | shadowNearPlaneOffset: 3 198 | shadowCascade2Split: 0.33333334 199 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 200 | shadowmaskMode: 1 201 | skinWeights: 255 202 | textureQuality: 0 203 | anisotropicTextures: 2 204 | antiAliasing: 2 205 | softParticles: 1 206 | softVegetation: 1 207 | realtimeReflectionProbes: 1 208 | billboardsFaceCameraPosition: 1 209 | vSyncCount: 1 210 | lodBias: 2 211 | maximumLODLevel: 0 212 | streamingMipmapsActive: 0 213 | streamingMipmapsAddAllCameras: 1 214 | streamingMipmapsMemoryBudget: 512 215 | streamingMipmapsRenderersPerFrame: 512 216 | streamingMipmapsMaxLevelReduction: 2 217 | streamingMipmapsMaxFileIORequests: 1024 218 | particleRaycastBudget: 4096 219 | asyncUploadTimeSlice: 2 220 | asyncUploadBufferSize: 16 221 | asyncUploadPersistentBuffer: 1 222 | resolutionScalingFixedDPIFactor: 1 223 | customRenderPipeline: {fileID: 0} 224 | excludedTargetPlatforms: [] 225 | m_PerPlatformDefaultQuality: 226 | Android: 2 227 | CloudRendering: 5 228 | Lumin: 5 229 | Nintendo Switch: 5 230 | PS4: 5 231 | Stadia: 5 232 | Standalone: 5 233 | WebGL: 3 234 | Windows Store Apps: 5 235 | XboxOne: 5 236 | iPhone: 2 237 | tvOS: 2 238 | -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 1 7 | m_Enabled: 0 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_TestInitMode: 0 13 | CrashReportingSettings: 14 | m_EventUrl: https://perf-events.cloud.unity3d.com 15 | m_Enabled: 0 16 | m_LogBufferSize: 10 17 | m_CaptureEditorExceptions: 1 18 | UnityPurchasingSettings: 19 | m_Enabled: 0 20 | m_TestMode: 0 21 | UnityAnalyticsSettings: 22 | m_Enabled: 0 23 | m_TestMode: 0 24 | m_InitializeOnStartup: 1 25 | UnityAdsSettings: 26 | m_Enabled: 0 27 | m_InitializeOnStartup: 1 28 | m_TestMode: 0 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_CopyBufferShader: {fileID: 0} 8 | m_SortShader: {fileID: 0} 9 | m_StripUpdateShader: {fileID: 0} 10 | m_RenderPipeSettingsPath: 11 | m_FixedTimeStep: 0.016666668 12 | m_MaxDeltaTime: 0.05 13 | -------------------------------------------------------------------------------- /ProjectSettings/VersionControlSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!890905787 &1 4 | VersionControlSettings: 5 | m_ObjectHideFlags: 0 6 | m_Mode: Visible Meta Files 7 | m_CollabEditorSettings: 8 | inProgressEnabled: 1 9 | -------------------------------------------------------------------------------- /ProjectSettings/XRSettings.asset: -------------------------------------------------------------------------------- 1 | { 2 | "m_SettingKeys": [ 3 | "VR Device Disabled", 4 | "VR Device User Alert" 5 | ], 6 | "m_SettingValues": [ 7 | "False", 8 | "False" 9 | ] 10 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # UnityHTTP-multi-thread-Download 2 | 3 | ![图片.png](https://i.loli.net/2021/03/23/DkogWlcrwd43qQV.png) 4 | 5 | #### 场景说明 6 | 7 | 1、Assets/Scenes/ReadJsonTest.unity 此场景演示了通过SimpleJson 读取 Streamingassets下的Json文件 8 | 9 | 2、Scripts/Engine/Scene/Main.unity 演示了通过HTTP下载远程服务器的图片或json或其他文件 -------------------------------------------------------------------------------- /UserSettings/EditorUserSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!162 &1 4 | EditorUserSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 4 7 | m_ConfigSettings: 8 | RecentlyUsedScenePath-0: 9 | value: 224247031146466f081d186c052d56040f 10 | flags: 0 11 | RecentlyUsedScenePath-1: 12 | value: 224247031146467f0803036d23205a1e1304577a7f6515243f2c1c3eebee3319f1f433fdf4742a323016f6 13 | flags: 0 14 | RecentlyUsedScenePath-2: 15 | value: 224247031146467f0803036d23205a1e1304577a7865023139282d32f6e87a2decee22f0 16 | flags: 0 17 | RecentlyUsedScenePath-3: 18 | value: 224247031146467f0803036d23205a1e1304577a796511352f051232e6ae2136ebf32f 19 | flags: 0 20 | RecentlyUsedScenePath-4: 21 | value: 224247031146467508194c1113265115580216233831 22 | flags: 0 23 | RecentlyUsedScenePath-5: 24 | value: 22424703114646680e1c05320430103518101124296715332827187ccfe13d36acf238e0f323 25 | flags: 0 26 | RecentlyUsedScenePath-6: 27 | value: 22424703114646680e0b0227036c711501572b292926237e38271427fb 28 | flags: 0 29 | RecentlyUsedScenePath-7: 30 | value: 22424703114646680e0b0227036c6d1517133239232612353e3d5326ece92021 31 | flags: 0 32 | vcSharedLogLevel: 33 | value: 0d5e400f0650 34 | flags: 0 35 | m_VCAutomaticAdd: 1 36 | m_VCDebugCom: 0 37 | m_VCDebugCmd: 0 38 | m_VCDebugOut: 0 39 | m_SemanticMergeMode: 2 40 | m_VCShowFailedCheckout: 1 41 | m_VCOverwriteFailedCheckoutAssets: 1 42 | m_VCProjectOverlayIcons: 1 43 | m_VCHierarchyOverlayIcons: 1 44 | m_VCOtherOverlayIcons: 1 45 | m_VCAllowAsyncUpdate: 0 46 | -------------------------------------------------------------------------------- /UserSettings/QuickSearch.settings: -------------------------------------------------------------------------------- 1 | trackSelection = false 2 | fetchPreview = false 3 | wantsMore = false 4 | dockable = false 5 | debug = false 6 | itemIconSize = 1 7 | queryFolder = "Assets/Editor/Queries" 8 | onBoardingDoNotAskAgain = true 9 | showPackageIndexes = false 10 | debounceMs = 250 11 | filters = { 12 | asset = true 13 | menu = true 14 | object = true 15 | scene = true 16 | settings = true 17 | } 18 | scopes = { 19 | "last_search.AB59B443" = "readjson" 20 | } 21 | providers = { 22 | asset = { 23 | active = true 24 | priority = 25 25 | defaultAction = null 26 | } 27 | store = { 28 | active = true 29 | priority = 100 30 | defaultAction = null 31 | } 32 | log = { 33 | active = false 34 | priority = 210 35 | defaultAction = null 36 | } 37 | object = { 38 | active = true 39 | priority = 55 40 | defaultAction = null 41 | } 42 | packages = { 43 | active = true 44 | priority = 90 45 | defaultAction = null 46 | } 47 | res = { 48 | active = true 49 | priority = 100 50 | defaultAction = null 51 | } 52 | scene = { 53 | active = true 54 | priority = 50 55 | defaultAction = null 56 | } 57 | query = { 58 | active = true 59 | priority = 100 60 | defaultAction = null 61 | } 62 | } 63 | assetIndexing = 1 -------------------------------------------------------------------------------- /tmp_persistent/Windows/%E5%AF%8C%E4%BA%BA%E5%AE%B6%E7%85%A7%E5%A3%81%20(1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kojima648/UnityHTTP-multi-thread-Download/fbbc00ed4055a33262ad22e57340daaa2d32456b/tmp_persistent/Windows/%E5%AF%8C%E4%BA%BA%E5%AE%B6%E7%85%A7%E5%A3%81%20(1).jpg -------------------------------------------------------------------------------- /tmp_persistent/Windows/%E5%AF%8C%E4%BA%BA%E5%AE%B6%E7%85%A7%E5%A3%81%20(2).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kojima648/UnityHTTP-multi-thread-Download/fbbc00ed4055a33262ad22e57340daaa2d32456b/tmp_persistent/Windows/%E5%AF%8C%E4%BA%BA%E5%AE%B6%E7%85%A7%E5%A3%81%20(2).jpg -------------------------------------------------------------------------------- /tmp_persistent/Windows/%E5%AF%8C%E4%BA%BA%E5%AE%B6%E7%85%A7%E5%A3%81%20(3).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kojima648/UnityHTTP-multi-thread-Download/fbbc00ed4055a33262ad22e57340daaa2d32456b/tmp_persistent/Windows/%E5%AF%8C%E4%BA%BA%E5%AE%B6%E7%85%A7%E5%A3%81%20(3).jpg -------------------------------------------------------------------------------- /tmp_persistent/Windows/42140.shtml: -------------------------------------------------------------------------------- 1 | 我省召开2019年中专录取工作会议
位置:首页 > 中等教育招生 > 正文

我省召开2019年中专录取工作会议

发布日期: 2019-10-12

 
我省召开2019年全省普通中专招生录取工作会议


普通中专学校办理相关招生录取手续现场

  10月10日,我省召开2019年全省普通中专招生录取工作会议。省教育厅党组成员、省招办主任朱玉山出席会议并讲话,省招办副主任谢钊主持会议,副主任杜习民、纪委书记应文斌出席会议。省教育厅及省招办相关人员,各省辖市和省直管县(市)招办负责同志、各普通中等专业学校招生工作人员参加会议。

  朱玉山同志首先对近年来我省普通中专招生工作情况进行回顾总结。他指出,我省普通中专招生形势逐年好转,正在向着扩大规模、提高教育质量的形势发展。之所以能够取得这样的成绩,主要得益于三个方面:一是党中央、国务院对职业教育的重视和部署,使职业教育获得了良好的发展机遇。二是我省普通中专招生不断加大规范管理力度,提高信息化管理水平,积极开展调查研究,破解招生工作难题。三是招生学校深挖生源、优化结构、特色办学,各级招办广泛宣传、积极引导、贴心服务,共同努力完成招生任务。

  朱玉山要求,做好今年的普通中专录取工作,一要提高政治站位,增强工作责任感。要从讲政治的高度,从推动职业教育改革发展的高度,从维护教育公平的高度,从服务人民群众、服务社会经济发展的高度,来认识和做好普通中专招生工作,切实增强责任意识和担当意识。二要持续抓好规范管理,实施“阳光招生”。要切实加强新生信息管理、计划管理及录取管理,依规进行外省户籍学生资格审查及录取手续办理。三要扩大招生宣传,营造良好社会氛围。要加大宣传力度,充分利用网络新媒体、展览等宣传媒介,采取多种形式,准确解读国家和我省职业教育改革发展政策。四是落实信息公开,严肃责任追究。招生阶段相关信息要及时进行公示,接受社会监督,要坚决执行中等职业教育招生各项工作要求,实施严格的责任追究制度。

  今年我省普通中专集中办理录取手续时间为10月9日至17日。

关于HEAO | 版权申明 | 联系我们 | 网站地图

政府网站标识码:4100000061 网站备案: 豫ICP备05013758号-1

版权所有(C) 河南省招生办公室 ※ 地址:郑州市郑东新区熊儿河路1号
Copyright © 2016 www.heao.gov.cn All Rights Reserved

-------------------------------------------------------------------------------- /tmp_persistent/Windows/UserLevel.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "Name": "李逍遥", 4 | "Level": 12.0, 5 | "Description": "《仙剑奇侠传1》男主角", 6 | "Skill": "万剑诀", 7 | "Time": "仙剑1、仙剑2、仙剑5、仙剑5前传" 8 | }, 9 | { 10 | "Name": "慕容紫英", 11 | "Level": 20.0, 12 | "Description": "《仙剑奇侠传4》男主角", 13 | "Skill": "千方残光剑", 14 | "Time": "仙剑4" 15 | }, 16 | { 17 | "Name": "夏侯瑾轩", 18 | "Level": 18.0, 19 | "Description": "《仙剑奇侠传5前传》男主角", 20 | "Skill": "文星耀太虚", 21 | "Time": "仙剑5前传" 22 | }, 23 | { 24 | "Name": "皇甫卓", 25 | "Level": 24.0, 26 | "Description": "《仙剑奇侠传5前传》配角", 27 | "Skill": "天中剑", 28 | "Time": "仙剑5前传" 29 | } 30 | ] --------------------------------------------------------------------------------