├── ProjectSettings ├── ProjectVersion.txt ├── VFXManager.asset ├── ClusterInputManager.asset ├── PresetManager.asset ├── EditorBuildSettings.asset ├── TimeManager.asset ├── AudioManager.asset ├── TagManager.asset ├── EditorSettings.asset ├── UnityConnectSettings.asset ├── DynamicsManager.asset ├── NavMeshAreas.asset ├── Physics2DSettings.asset ├── GraphicsSettings.asset ├── QualitySettings.asset ├── InputManager.asset └── ProjectSettings.asset ├── Assets ├── 2.jpg ├── EFramework │ ├── Network │ │ ├── MessageType.cs │ │ ├── Network.cs.meta │ │ ├── Package.cs.meta │ │ ├── MessageType.cs.meta │ │ ├── NetworkManager.cs.meta │ │ ├── NetworkUtils.cs.meta │ │ ├── NetworkUtils.cs │ │ ├── NetworkManager.cs │ │ ├── Package.cs │ │ └── Network.cs │ ├── Core.meta │ ├── Core │ │ ├── Event.meta │ │ ├── Event │ │ │ ├── Event.meta │ │ │ └── Event │ │ │ │ ├── EventData.cs.meta │ │ │ │ ├── EventManager.cs.meta │ │ │ │ ├── EventData.cs │ │ │ │ └── EventManager.cs │ │ ├── Singleton.cs.meta │ │ └── Singleton.cs │ └── Network.meta ├── 1.unity.meta ├── Example.meta ├── EFramework.meta ├── Example │ ├── Event │ │ ├── EventTest.unity.meta │ │ ├── EventTest.cs.meta │ │ ├── EventTest.cs │ │ └── EventTest.unity │ ├── Network │ │ ├── NetworkTest.unity.meta │ │ ├── NetworkTest.cs.meta │ │ ├── NetworkTest.cs │ │ └── NetworkTest.unity │ ├── Event.meta │ └── Network.meta ├── Test.cs.meta ├── tttt.cs.meta ├── tttt.cs ├── Test.cs ├── 2.jpg.meta └── 1.unity ├── NetWorkEvent └── NetReceive.cs ├── Logs └── Packages-Update.log ├── .gitignore ├── README.md └── Packages └── manifest.json /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2018.4.0f1 2 | -------------------------------------------------------------------------------- /Assets/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wenanlee/NetSystem/HEAD/Assets/2.jpg -------------------------------------------------------------------------------- /Assets/EFramework/Network/MessageType.cs: -------------------------------------------------------------------------------- 1 | public enum MessageType 2 | { 3 | Test1,Test2,Test3 4 | } -------------------------------------------------------------------------------- /ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wenanlee/NetSystem/HEAD/ProjectSettings/VFXManager.asset -------------------------------------------------------------------------------- /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/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | m_DefaultList: [] 7 | -------------------------------------------------------------------------------- /Assets/1.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8d9bb38380038704ab6ce7b246de92eb 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Example.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3ed0bf30902f5f74fa0f67933019f0bc 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/EFramework.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c0f4f1c258d274249a27a453f3de2f20 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Example/Event/EventTest.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1a132350f42f9824f8df522dd86d48f2 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Example/Network/NetworkTest.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2908661fc020f1744b90d272264def86 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/EFramework/Core.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe2b275a598a1a245b271dd7a4ea450b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Example/Event.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 369a239790aa4c5469e05e239bde0501 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Example/Network.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2535485daabc2bd439030b6e2d7341ee 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /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 | m_configObjects: {} 9 | -------------------------------------------------------------------------------- /Assets/EFramework/Core/Event.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ee73c630e35035049b8fe63d95edd74f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/EFramework/Network.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 38047f27e2ad17d40ac818e942b80d50 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/EFramework/Core/Event/Event.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fc4ba68d0437ab0439e4f933ca18bfee 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /NetWorkEvent/NetReceive.cs: -------------------------------------------------------------------------------- 1 | namespace NetWorkEvent 2 | { 3 | internal class NetReceive 4 | { 5 | private object p; 6 | 7 | public NetReceive(object p) 8 | { 9 | this.p = p; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Assets/Test.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 814759d1b8b1a004885dca53e5395914 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/tttt.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 656b40bb24e0c6842b77ff4a1c06a560 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Example/Event/EventTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a823179956e5fad4cb7290afacbfbf12 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/EFramework/Core/Singleton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8c9a465bdb8fb4b44a6adc5a72eaef96 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/EFramework/Network/Network.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5efb3f2858176fb46bd5fceaf977b67d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/EFramework/Network/Package.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8594fa5d70c54be49b4857033f60a081 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Example/Network/NetworkTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d1100283ec4f4824385d0208d91c171b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/EFramework/Network/MessageType.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1e28a79e79c3a0d4cb8f1ba8e50206cd 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/EFramework/Network/NetworkManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ee3e9ba7564ae649ae996f48fd6d7c8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/EFramework/Network/NetworkUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 39b31c7f79dafb54f88f8b7afd0c429e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/EFramework/Core/Event/Event/EventData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b2b2224127abcb44fbf46a0abd5e1329 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/EFramework/Core/Event/Event/EventManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6483381f1b1600c42b48f994f282e74e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Logs/Packages-Update.log: -------------------------------------------------------------------------------- 1 | 2 | === Mon Jul 1 11:36:05 2019 3 | 4 | Packages were changed. 5 | Update Mode: updateDependencies 6 | 7 | The following packages were added: 8 | com.unity.collab-proxy@1.2.15 9 | The following packages were updated: 10 | com.unity.analytics from version 2.0.16 to 3.2.2 11 | com.unity.package-manager-ui from version 1.9.11 to 2.0.7 12 | com.unity.textmeshpro from version 1.2.4 to 1.3.0 13 | -------------------------------------------------------------------------------- /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 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 1024 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_AmbisonicDecoderPlugin: 16 | m_DisableAudio: 0 17 | m_VirtualizeEffects: 1 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | [Ll]ibrary/ 2 | [Tt]emp/ 3 | [Oo]bj/ 4 | [Bb]uild/ 5 | [Bb]uilds/ 6 | Assets/AssetStoreTools* 7 | 8 | # Visual Studio 2015 cache directory 9 | /.vs/ 10 | 11 | # Autogenerated VS/MD/Consulo solution and project files 12 | ExportedObj/ 13 | .consulo/ 14 | *.csproj 15 | *.unityproj 16 | *.sln 17 | *.suo 18 | *.tmp 19 | *.user 20 | *.userprefs 21 | *.pidb 22 | *.booproj 23 | *.svd 24 | *.pdb 25 | 26 | # Unity3D generated meta files 27 | *.pidb.meta 28 | *.pdb.meta 29 | 30 | # Unity3D Generated File On Crash Reports 31 | sysinfo.txt 32 | 33 | # Builds 34 | *.apk 35 | *.unitypackage 36 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Assets/EFramework/Core/Singleton.cs: -------------------------------------------------------------------------------- 1 | 2 | using UnityEngine; 3 | 4 | public abstract class Singleton where T : Singleton, new() 5 | { 6 | private static T ms_instance = default(T); 7 | 8 | public static T Instance 9 | { 10 | get 11 | { 12 | if (ms_instance == null) 13 | { 14 | ms_instance = new T(); 15 | ms_instance.InitSingleton(); 16 | } 17 | return ms_instance; 18 | } 19 | } 20 | 21 | protected virtual void InitSingleton() 22 | { 23 | 24 | } 25 | } 26 | 27 | //********************************************************************** 28 | 29 | 30 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # NetworkSystem 2 | 3 | 发送接收网络信息 4 | 5 | ````c# 6 | public class NetworkTest : MonoBehaviour, IEventHandler 7 | { 8 | public void HandlerEvent(EventBase eventid) 9 | { 10 | EventData msg = (EventData)eventid; 11 | Debug.Log(BitConverter.ToInt32(msg.args[0].msg, 0)); 12 | } 13 | 14 | void Start() 15 | { 16 | print(NetworkManager.Instance.ToString()); 17 | EventManager.Instance.Registration(HandlerEvent, MessageType.login); 18 | Send(); 19 | } 20 | void Send() 21 | { 22 | Package package = new Package("127.0.0.1", 60000, (int)MessageType.login, BitConverter.GetBytes(12)); 23 | EventData.CreateEvent(PackageDir.send, package).Send(); 24 | } 25 | } 26 | ```` -------------------------------------------------------------------------------- /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: 7 7 | m_ExternalVersionControlSupport: Hidden Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 2 10 | m_DefaultBehaviorMode: 0 11 | m_SpritePackerMode: 0 12 | m_SpritePackerPaddingPower: 1 13 | m_EtcTextureCompressorBehavior: 1 14 | m_EtcTextureFastCompressor: 1 15 | m_EtcTextureNormalCompressor: 2 16 | m_EtcTextureBestCompressor: 4 17 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp 18 | m_ProjectGenerationRootNamespace: 19 | m_UserGeneratedProjectSuffix: 20 | m_CollabEditorSettings: 21 | inProgressEnabled: 1 22 | m_EnableTextureStreamingInPlayMode: 1 23 | -------------------------------------------------------------------------------- /Assets/Example/Event/EventTest.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class EventTest : MonoBehaviour, IEventHandler 6 | { 7 | /// 8 | /// 事件处理器 9 | /// 10 | /// 11 | public void HandlerEvent(EventBase eventid) 12 | { 13 | EventData eventData = (EventData)eventid; 14 | print("user:"+eventData.args[0] +" password:"+ eventData.args[1]); 15 | } 16 | /// 17 | /// 订阅事件 18 | /// 19 | private void Start() 20 | { 21 | EventManager.Instance.Registration(HandlerEvent, MessageType.Test1); 22 | Send(); 23 | } 24 | /// 25 | /// 发送事件 26 | /// 27 | private void Send() 28 | { 29 | EventData.CreateEvent(MessageType.Test1, "122216637", "password").Send(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /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 | m_Enabled: 0 7 | m_TestMode: 0 8 | m_TestEventUrl: 9 | m_TestConfigUrl: 10 | m_TestInitMode: 0 11 | CrashReportingSettings: 12 | m_EventUrl: https://perf-events.cloud.unity3d.com/api/events/crashes 13 | m_NativeEventUrl: https://perf-events.cloud.unity3d.com/symbolicate 14 | m_Enabled: 0 15 | m_CaptureEditorExceptions: 1 16 | UnityPurchasingSettings: 17 | m_Enabled: 0 18 | m_TestMode: 0 19 | UnityAnalyticsSettings: 20 | m_Enabled: 0 21 | m_InitializeOnStartup: 1 22 | m_TestMode: 0 23 | m_TestEventUrl: 24 | m_TestConfigUrl: 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 | -------------------------------------------------------------------------------- /Assets/tttt.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using UnityEngine; 5 | using System.Linq; 6 | 7 | public class tttt : MonoBehaviour 8 | { 9 | //123456 10 | private int[] bytes=new int[1024]; 11 | private int[] tmp=new int[1012]; 12 | // Start is called before the first frame update 13 | void Start() 14 | { 15 | DateTime startTime = DateTime.Now; 16 | for (int i = 0; i < 10000000; i++) 17 | { 18 | 19 | Array.Copy(bytes, 12, tmp, 0, 1012); 20 | } 21 | print((DateTime.Now - startTime).ToString()); 22 | } 23 | 24 | // Update is called once per frame 25 | void Update() 26 | { 27 | 28 | } 29 | 30 | public static byte[] Int2ByteArray(int value) 31 | { 32 | byte[] buffer = new byte[4]; 33 | buffer[0] = (byte)((value >> 24)); 34 | buffer[1] = (byte)((value >> 16)); 35 | buffer[2] = (byte)((value >> 8)); 36 | buffer[3] = (byte)(value); 37 | return buffer; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Assets/EFramework/Core/Event/Event/EventData.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System; 4 | 5 | public class EventData : EventBase 6 | { 7 | public T[] args = null; 8 | public EventData(Enum eid, params T[] args) 9 | { 10 | this.eid = eid; 11 | this.args = args; 12 | } 13 | public static EventData CreateEvent(Enum e, params T[] args) 14 | { 15 | EventData eventBase = new EventData(e, args); 16 | return eventBase; 17 | } 18 | } 19 | public class EventData:EventBase 20 | { 21 | public object args = null; 22 | public EventData(Enum eid, params object[] args) 23 | { 24 | this.eid = eid; 25 | this.args = args; 26 | } 27 | public static EventData CreateEvent(Enum e, params object[] args) 28 | { 29 | EventData eventBase = new EventData(e, args); 30 | return eventBase; 31 | } 32 | } 33 | public class EventBase 34 | { 35 | public Enum eid; 36 | public void Send() 37 | { 38 | if (EventManager.Instance != null) EventManager.Instance.SendEvent(this); 39 | } 40 | } -------------------------------------------------------------------------------- /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: 7 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 18 | m_ClothInterCollisionStiffness: 0 19 | m_ContactsGeneration: 1 20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 1 23 | m_ClothInterCollisionSettingsToggle: 0 24 | m_ContactPairsMode: 0 25 | m_BroadphaseType: 0 26 | m_WorldBounds: 27 | m_Center: {x: 0, y: 0, z: 0} 28 | m_Extent: {x: 250, y: 250, z: 250} 29 | m_WorldSubdivisions: 8 30 | -------------------------------------------------------------------------------- /Assets/EFramework/Network/NetworkUtils.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using System.Net; 4 | using UnityEngine; 5 | 6 | public class NetworkUtils 7 | { 8 | public static IPAddress GetLocalIP() 9 | { 10 | IPAddress AddressIP=IPAddress.Any; 11 | foreach (IPAddress iPAddress in Dns.GetHostEntry(Dns.GetHostName()).AddressList) 12 | { 13 | if (iPAddress.AddressFamily.ToString() == "InterNetwork") 14 | { 15 | return iPAddress; 16 | } 17 | } 18 | return AddressIP; 19 | } 20 | public static string GetLocalIPString() 21 | { 22 | return GetLocalIP().ToString(); 23 | } 24 | public static byte[] Int2ByteArray(int value) 25 | { 26 | byte[] buffer = new byte[4]; 27 | buffer[0] = (byte)((value >> 24)); 28 | buffer[1] = (byte)((value >> 16)); 29 | buffer[2] = (byte)((value >> 8)); 30 | buffer[3] = (byte)(value); 31 | return buffer; 32 | } 33 | public static int ByteArray2Int(byte[] bytes,int startIndex) 34 | { 35 | return (bytes[startIndex] << 24) + (bytes[startIndex + 1] << 16) + (bytes[startIndex + 2] << 8) + bytes[startIndex + 3]; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Assets/Test.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using UnityEngine; 6 | 7 | public class Test : MonoBehaviour, IEventHandler 8 | { 9 | public Texture2D texture; 10 | 11 | public void HandlerEvent(EventBase eventid) 12 | { 13 | switch ((MessageType)eventid.eid) 14 | { 15 | case MessageType.Test1: 16 | print("wo " + (eventid as EventData).args[0].GetString()); 17 | break; 18 | case MessageType.Test2: 19 | print("wo " + (eventid as EventData).args[0].GetString()); 20 | break; 21 | default: 22 | break; 23 | } 24 | 25 | } 26 | 27 | private void Start() 28 | { 29 | NetworkManager.Instance.Registration(HandlerEvent, MessageType.Test1, MessageType.Test2); 30 | } 31 | private void Update() 32 | { 33 | if (Input.GetKeyUp(KeyCode.Space)) 34 | { 35 | Package package = new Package( 0, "test"); 36 | EventData.CreateEvent(PackageDir.send, package).Send(); 37 | Package package1 = new Package((int)MessageType.Test2, "哈哈哈啊哈哈哈哈哈哈啊哈哈哈哈哈哈啊哈哈哈哈哈"); 38 | EventData.CreateEvent(PackageDir.send, package1).Send(); 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.ads": "2.0.8", 4 | "com.unity.analytics": "3.2.2", 5 | "com.unity.collab-proxy": "1.2.15", 6 | "com.unity.package-manager-ui": "2.0.7", 7 | "com.unity.purchasing": "2.0.3", 8 | "com.unity.textmeshpro": "1.3.0", 9 | "com.unity.modules.ai": "1.0.0", 10 | "com.unity.modules.animation": "1.0.0", 11 | "com.unity.modules.assetbundle": "1.0.0", 12 | "com.unity.modules.audio": "1.0.0", 13 | "com.unity.modules.cloth": "1.0.0", 14 | "com.unity.modules.director": "1.0.0", 15 | "com.unity.modules.imageconversion": "1.0.0", 16 | "com.unity.modules.imgui": "1.0.0", 17 | "com.unity.modules.jsonserialize": "1.0.0", 18 | "com.unity.modules.particlesystem": "1.0.0", 19 | "com.unity.modules.physics": "1.0.0", 20 | "com.unity.modules.physics2d": "1.0.0", 21 | "com.unity.modules.screencapture": "1.0.0", 22 | "com.unity.modules.terrain": "1.0.0", 23 | "com.unity.modules.terrainphysics": "1.0.0", 24 | "com.unity.modules.tilemap": "1.0.0", 25 | "com.unity.modules.ui": "1.0.0", 26 | "com.unity.modules.uielements": "1.0.0", 27 | "com.unity.modules.umbra": "1.0.0", 28 | "com.unity.modules.unityanalytics": "1.0.0", 29 | "com.unity.modules.unitywebrequest": "1.0.0", 30 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 31 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 32 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 33 | "com.unity.modules.unitywebrequestwww": "1.0.0", 34 | "com.unity.modules.vehicles": "1.0.0", 35 | "com.unity.modules.video": "1.0.0", 36 | "com.unity.modules.vr": "1.0.0", 37 | "com.unity.modules.wind": "1.0.0", 38 | "com.unity.modules.xr": "1.0.0" 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Assets/EFramework/Core/Event/Event/EventManager.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | 6 | public class EventManager:Singleton 7 | { 8 | private Dictionary> HandlerList = new Dictionary>(); 9 | 10 | public void SendEvent(EventBase eventBase) 11 | { 12 | HandlerList[eventBase.eid].Invoke(eventBase); 13 | } 14 | /// 15 | /// 注册监听者 16 | /// 17 | /// 18 | /// 19 | public void Registration(Enum e, Action action) 20 | { 21 | if (!HandlerList.ContainsKey(e)) 22 | { 23 | HandlerList.Add(e, action); 24 | } 25 | else 26 | { 27 | HandlerList[e] += action; 28 | } 29 | } 30 | /// 31 | /// 注册监听者(监听多个Enum) 32 | /// 33 | /// 34 | /// 35 | public void Registration(Action action,params Enum[] enums) 36 | { 37 | 38 | for (int i = 0; i < enums.Length; i++) 39 | { 40 | Registration(enums[i], action); 41 | } 42 | } 43 | /// 44 | /// 注销监听者 45 | /// 46 | public void Cancellation(Enum e, Action action) 47 | { 48 | if (HandlerList.ContainsKey(e)) 49 | { 50 | HandlerList[e] -= action; 51 | } 52 | } 53 | public void Cancellation(Action action,params Enum[] enums) 54 | { 55 | for (int i = 0; i < enums.Length; i++) 56 | { 57 | Cancellation(enums[i], action); 58 | } 59 | } 60 | } 61 | 62 | public interface IEventHandler 63 | { 64 | void HandlerEvent(EventBase eventid); 65 | } -------------------------------------------------------------------------------- /Assets/Example/Network/NetworkTest.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using System; 5 | 6 | public class NetworkTest : MonoBehaviour, IEventHandler 7 | { 8 | public void HandlerEvent(EventBase eventid) 9 | { 10 | EventData msg = (EventData)eventid; 11 | 12 | switch ((MessageType)msg.eid) 13 | { 14 | case MessageType.Test1: 15 | Debug.Log("Int: "+msg.args[0].GetInt()); 16 | break; 17 | case MessageType.Test2: 18 | Debug.Log("Bytes: " + msg.args[0].msg.Length); 19 | break; 20 | case MessageType.Test3: 21 | Debug.Log("String: " + msg.args[0].GetString()); 22 | break; 23 | default: 24 | break; 25 | } 26 | } 27 | 28 | void Start() 29 | { 30 | print(NetworkManager.Instance.ToString()); 31 | EventManager.Instance.Registration(HandlerEvent, MessageType.Test1,MessageType.Test2,MessageType.Test3); 32 | Send(); 33 | } 34 | void Send() 35 | { 36 | //int 37 | Package intPack = new Package((int)MessageType.Test1, 12); 38 | EventData.CreateEvent(PackageDir.send, intPack).Send(); 39 | //小字节数组 40 | Package smallByteArrayPack = new Package((int)MessageType.Test2, new byte[10]); 41 | EventData.CreateEvent(PackageDir.send, smallByteArrayPack).Send(); 42 | //大字节数组 43 | Package bigByteArrsyPack = new Package((int)MessageType.Test2, new byte[1024000]); 44 | EventData.CreateEvent(PackageDir.send, bigByteArrsyPack).Send(); 45 | //字符串 46 | Package stringPack = new Package((int)MessageType.Test3, "test"); 47 | EventData.CreateEvent(PackageDir.send, stringPack).Send(); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /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: 3 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_AutoSyncTransforms: 1 46 | m_AlwaysShowColliders: 0 47 | m_ShowColliderSleep: 1 48 | m_ShowColliderContacts: 0 49 | m_ShowColliderAABB: 0 50 | m_ContactArrowScale: 0.2 51 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 52 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 53 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 54 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 55 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 56 | -------------------------------------------------------------------------------- /Assets/2.jpg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 51ba88239a7b5f04c8c0ca6aeeee2b3f 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | externalObjects: {} 6 | serializedVersion: 9 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: -1 36 | mipBias: -100 37 | wrapU: -1 38 | wrapV: -1 39 | wrapW: -1 40 | nPOTScale: 1 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 0 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 0 53 | spriteTessellationDetail: -1 54 | textureType: 0 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 2 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: -1 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | spriteSheet: 73 | serializedVersion: 2 74 | sprites: [] 75 | outline: [] 76 | physicsShape: [] 77 | bones: [] 78 | spriteID: 79 | vertices: [] 80 | indices: 81 | edges: [] 82 | weights: [] 83 | spritePackingTag: 84 | pSDRemoveMatte: 0 85 | pSDShowRemoveMatteOption: 0 86 | userData: 87 | assetBundleName: 88 | assetBundleVariant: 89 | -------------------------------------------------------------------------------- /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: 12 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 | m_PreloadedShaders: [] 39 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 40 | type: 0} 41 | m_CustomRenderPipeline: {fileID: 0} 42 | m_TransparencySortMode: 0 43 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 44 | m_DefaultRenderingPath: 1 45 | m_DefaultMobileRenderingPath: 1 46 | m_TierSettings: [] 47 | m_LightmapStripping: 0 48 | m_FogStripping: 0 49 | m_InstancingStripping: 0 50 | m_LightmapKeepPlain: 1 51 | m_LightmapKeepDirCombined: 1 52 | m_LightmapKeepDynamicPlain: 1 53 | m_LightmapKeepDynamicDirCombined: 1 54 | m_LightmapKeepShadowMask: 1 55 | m_LightmapKeepSubtractive: 1 56 | m_FogKeepLinear: 1 57 | m_FogKeepExp: 1 58 | m_FogKeepExp2: 1 59 | m_AlbedoSwatchInfos: [] 60 | m_LightsUseLinearIntensity: 0 61 | m_LightsUseColorTemperature: 0 62 | -------------------------------------------------------------------------------- /Assets/EFramework/Network/NetworkManager.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using UnityEngine; 5 | 6 | public class NetworkManager : Singleton, IEventHandler 7 | { 8 | //private Queue packages = new Queue(); 9 | private Network.UDPClient udpClient; 10 | private Network.UDPServer udpServer; 11 | private Network.TCPClient tcpClient; 12 | private Network.TCPServer tcpServer; 13 | protected override void InitSingleton() 14 | { 15 | EventManager.Instance.Registration(HandlerEvent, PackageDir.send, PackageDir.receive); 16 | udpClient = new Network.UDPClient(); 17 | udpServer = new Network.UDPServer(); 18 | tcpClient = new Network.TCPClient(); 19 | tcpServer = new Network.TCPServer(); 20 | udpServer.Init(); 21 | tcpServer.Init(); 22 | 23 | udpClient.Init("127.0.0.1"); 24 | tcpClient.Init("127.0.0.1"); 25 | } 26 | 27 | /// 28 | /// 注册监听者 29 | /// 30 | /// 31 | /// 32 | public void Registration(Enum e, Action action) 33 | { 34 | EventManager.Instance.Registration(e, action); 35 | } 36 | /// 37 | /// 注册监听者(监听多个Enum) 38 | /// 39 | /// 40 | /// 41 | public void Registration(Action action, params Enum[] enums) 42 | { 43 | for (int i = 0; i < enums.Length; i++) 44 | { 45 | Registration(enums[i], action); 46 | } 47 | } 48 | /// 49 | /// 注销监听者 50 | /// 51 | public void Cancellation(Enum e, Action action) 52 | { 53 | EventManager.Instance.Registration(e, action); 54 | } 55 | /// 56 | /// 注销多个监听者 57 | /// 58 | /// 59 | /// 60 | public void Cancellation(Action action, params Enum[] enums) 61 | { 62 | for (int i = 0; i < enums.Length; i++) 63 | { 64 | Cancellation(enums[i], action); 65 | } 66 | } 67 | 68 | public void HandlerEvent(EventBase eventid) 69 | { 70 | switch ((PackageDir)eventid.eid) 71 | { 72 | case PackageDir.send: 73 | Send((EventData)eventid); 74 | break; 75 | case PackageDir.receive: 76 | Receive((EventData)eventid); 77 | break; 78 | default: 79 | break; 80 | } 81 | } 82 | 83 | private void Receive(EventData msg) 84 | { 85 | //Debug.Log(msg.args[0].type); 86 | foreach (var item in msg.args) 87 | { 88 | //Debug.Log((MessageType)item.type); 89 | EventData.CreateEvent((MessageType)item.type, item).Send(); 90 | } 91 | } 92 | 93 | private void Send(EventData msg) 94 | { 95 | foreach (Package item in msg.args) 96 | { 97 | if (item.size >= 1024) 98 | { 99 | tcpClient.Send(item); 100 | Debug.Log("从TCP发送"); 101 | } 102 | else 103 | { 104 | udpClient.Send(item); 105 | Debug.Log("从UDP发送"); 106 | } 107 | } 108 | } 109 | } 110 | -------------------------------------------------------------------------------- /Assets/EFramework/Network/Package.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Linq; 3 | using System.Net; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | public class Package 8 | { 9 | public static int messageIndex = 0; //总的消息编号 10 | //------------------------------包内容------------------------------------------------- 11 | public int size; //包大小 12 | public int type; //消息类型 13 | public int index; //当前消息编号 14 | public byte[] msg; //真正的消息 15 | private byte[] fullData; //编码过后的信息 16 | //小松只有9分了 17 | 18 | /// 19 | /// 初始化包 20 | /// 21 | public Package() 22 | { 23 | type = 0; 24 | index = 0; 25 | msg = null; 26 | } 27 | /// 28 | /// 初始化包 29 | /// 30 | /// IP地址 31 | /// 端口号 32 | /// 消息类型 33 | /// 消息体 34 | public Package(int type, byte[] msg) 35 | { 36 | Format(type, msg); 37 | } 38 | /// 39 | /// 初始化包 40 | /// 41 | /// IP地址 42 | /// 端口号 43 | /// 消息类型 44 | /// 消息体 45 | public Package(int type, string msg) 46 | { 47 | Format(type, Encoding.UTF8.GetBytes(msg)); 48 | } 49 | /// 50 | /// 初始化包 51 | /// 52 | /// IP地址 53 | /// 端口号 54 | /// 消息类型 55 | /// 消息体 56 | public Package(int type, int msg) 57 | { 58 | Format(type, BitConverter.GetBytes(msg)); 59 | } 60 | /// 61 | /// 格式化消息 62 | /// 63 | /// IP地址 64 | /// 端口号 65 | /// 消息类型 66 | /// 消息体 67 | private void Format(int type, byte[] msg) 68 | { 69 | this.type = type; 70 | this.index = messageIndex; 71 | this.msg = msg; 72 | Pack(); 73 | } 74 | public string GetString() 75 | { 76 | if (msg == null) 77 | return ""; 78 | return Encoding.UTF8.GetString(msg); 79 | } 80 | public int GetInt() 81 | { 82 | if (msg == null) 83 | return 0; 84 | return BitConverter.ToInt32(msg, 0); 85 | } 86 | /// 87 | /// 编码 88 | /// 89 | /// 90 | public byte[] Pack() 91 | { 92 | byte[] packHead = new byte[4 * 3]; 93 | size = msg.Length + packHead.Length; //3个int(4)型数据 size type index 94 | //包大小 95 | packHead[0] = (byte)((size >> 24)); 96 | packHead[1] = (byte)((size >> 16)); 97 | packHead[2] = (byte)((size >> 8)); 98 | packHead[3] = (byte)(size); 99 | //包类型 100 | packHead[4] = (byte)((type >> 24)); 101 | packHead[5] = (byte)((type >> 16)); 102 | packHead[6] = (byte)((type >> 8)); 103 | packHead[7] = (byte)(type); 104 | //包编号 105 | packHead[8] = (byte)((index >> 24)); 106 | packHead[9] = (byte)((index >> 16)); 107 | packHead[10] = (byte)((index >> 8)); 108 | packHead[11] = (byte)(index); 109 | 110 | fullData = packHead.Concat(msg).ToArray(); 111 | return fullData; 112 | } 113 | public int GetLength() 114 | { 115 | if (size == 0) 116 | { 117 | Debug.Log("消息没有打包 Pack()"); 118 | return 0; 119 | } 120 | else 121 | { 122 | return size; 123 | } 124 | } 125 | public Package UnPack() 126 | { 127 | UnPack(fullData); 128 | return this; 129 | } 130 | public Package UnPack(byte[] bytes) 131 | { 132 | size = (bytes[0] << 24) + (bytes[1] << 16) + (bytes[2] << 8) + bytes[3]; 133 | type = (bytes[4] << 24) + (bytes[5] << 16) + (bytes[6] << 8) + bytes[7]; 134 | index = (bytes[8] << 24) + (bytes[9] << 16) + (bytes[10] << 8) + bytes[11]; 135 | msg = new byte[bytes.Length - 12]; 136 | Array.Copy(bytes, 12, msg, 0, msg.Length); 137 | return this; 138 | } 139 | } -------------------------------------------------------------------------------- /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 | blendWeights: 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: 4 41 | resolutionScalingFixedDPIFactor: 1 42 | excludedTargetPlatforms: [] 43 | - serializedVersion: 2 44 | name: Low 45 | pixelLightCount: 0 46 | shadows: 0 47 | shadowResolution: 0 48 | shadowProjection: 1 49 | shadowCascades: 1 50 | shadowDistance: 20 51 | shadowNearPlaneOffset: 3 52 | shadowCascade2Split: 0.33333334 53 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 54 | shadowmaskMode: 0 55 | blendWeights: 2 56 | textureQuality: 0 57 | anisotropicTextures: 0 58 | antiAliasing: 0 59 | softParticles: 0 60 | softVegetation: 0 61 | realtimeReflectionProbes: 0 62 | billboardsFaceCameraPosition: 0 63 | vSyncCount: 0 64 | lodBias: 0.4 65 | maximumLODLevel: 0 66 | streamingMipmapsActive: 0 67 | streamingMipmapsAddAllCameras: 1 68 | streamingMipmapsMemoryBudget: 512 69 | streamingMipmapsRenderersPerFrame: 512 70 | streamingMipmapsMaxLevelReduction: 2 71 | streamingMipmapsMaxFileIORequests: 1024 72 | particleRaycastBudget: 16 73 | asyncUploadTimeSlice: 2 74 | asyncUploadBufferSize: 4 75 | resolutionScalingFixedDPIFactor: 1 76 | excludedTargetPlatforms: [] 77 | - serializedVersion: 2 78 | name: Medium 79 | pixelLightCount: 1 80 | shadows: 1 81 | shadowResolution: 0 82 | shadowProjection: 1 83 | shadowCascades: 1 84 | shadowDistance: 20 85 | shadowNearPlaneOffset: 3 86 | shadowCascade2Split: 0.33333334 87 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 88 | shadowmaskMode: 0 89 | blendWeights: 2 90 | textureQuality: 0 91 | anisotropicTextures: 1 92 | antiAliasing: 0 93 | softParticles: 0 94 | softVegetation: 0 95 | realtimeReflectionProbes: 0 96 | billboardsFaceCameraPosition: 0 97 | vSyncCount: 1 98 | lodBias: 0.7 99 | maximumLODLevel: 0 100 | streamingMipmapsActive: 0 101 | streamingMipmapsAddAllCameras: 1 102 | streamingMipmapsMemoryBudget: 512 103 | streamingMipmapsRenderersPerFrame: 512 104 | streamingMipmapsMaxLevelReduction: 2 105 | streamingMipmapsMaxFileIORequests: 1024 106 | particleRaycastBudget: 64 107 | asyncUploadTimeSlice: 2 108 | asyncUploadBufferSize: 4 109 | resolutionScalingFixedDPIFactor: 1 110 | excludedTargetPlatforms: [] 111 | - serializedVersion: 2 112 | name: High 113 | pixelLightCount: 2 114 | shadows: 2 115 | shadowResolution: 1 116 | shadowProjection: 1 117 | shadowCascades: 2 118 | shadowDistance: 40 119 | shadowNearPlaneOffset: 3 120 | shadowCascade2Split: 0.33333334 121 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 122 | shadowmaskMode: 1 123 | blendWeights: 2 124 | textureQuality: 0 125 | anisotropicTextures: 1 126 | antiAliasing: 0 127 | softParticles: 0 128 | softVegetation: 1 129 | realtimeReflectionProbes: 1 130 | billboardsFaceCameraPosition: 1 131 | vSyncCount: 1 132 | lodBias: 1 133 | maximumLODLevel: 0 134 | streamingMipmapsActive: 0 135 | streamingMipmapsAddAllCameras: 1 136 | streamingMipmapsMemoryBudget: 512 137 | streamingMipmapsRenderersPerFrame: 512 138 | streamingMipmapsMaxLevelReduction: 2 139 | streamingMipmapsMaxFileIORequests: 1024 140 | particleRaycastBudget: 256 141 | asyncUploadTimeSlice: 2 142 | asyncUploadBufferSize: 4 143 | resolutionScalingFixedDPIFactor: 1 144 | excludedTargetPlatforms: [] 145 | - serializedVersion: 2 146 | name: Very High 147 | pixelLightCount: 3 148 | shadows: 2 149 | shadowResolution: 2 150 | shadowProjection: 1 151 | shadowCascades: 2 152 | shadowDistance: 70 153 | shadowNearPlaneOffset: 3 154 | shadowCascade2Split: 0.33333334 155 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 156 | shadowmaskMode: 1 157 | blendWeights: 4 158 | textureQuality: 0 159 | anisotropicTextures: 2 160 | antiAliasing: 2 161 | softParticles: 1 162 | softVegetation: 1 163 | realtimeReflectionProbes: 1 164 | billboardsFaceCameraPosition: 1 165 | vSyncCount: 1 166 | lodBias: 1.5 167 | maximumLODLevel: 0 168 | streamingMipmapsActive: 0 169 | streamingMipmapsAddAllCameras: 1 170 | streamingMipmapsMemoryBudget: 512 171 | streamingMipmapsRenderersPerFrame: 512 172 | streamingMipmapsMaxLevelReduction: 2 173 | streamingMipmapsMaxFileIORequests: 1024 174 | particleRaycastBudget: 1024 175 | asyncUploadTimeSlice: 2 176 | asyncUploadBufferSize: 4 177 | resolutionScalingFixedDPIFactor: 1 178 | excludedTargetPlatforms: [] 179 | - serializedVersion: 2 180 | name: Ultra 181 | pixelLightCount: 4 182 | shadows: 2 183 | shadowResolution: 2 184 | shadowProjection: 1 185 | shadowCascades: 4 186 | shadowDistance: 150 187 | shadowNearPlaneOffset: 3 188 | shadowCascade2Split: 0.33333334 189 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 190 | shadowmaskMode: 1 191 | blendWeights: 4 192 | textureQuality: 0 193 | anisotropicTextures: 2 194 | antiAliasing: 2 195 | softParticles: 1 196 | softVegetation: 1 197 | realtimeReflectionProbes: 1 198 | billboardsFaceCameraPosition: 1 199 | vSyncCount: 1 200 | lodBias: 2 201 | maximumLODLevel: 0 202 | streamingMipmapsActive: 0 203 | streamingMipmapsAddAllCameras: 1 204 | streamingMipmapsMemoryBudget: 512 205 | streamingMipmapsRenderersPerFrame: 512 206 | streamingMipmapsMaxLevelReduction: 2 207 | streamingMipmapsMaxFileIORequests: 1024 208 | particleRaycastBudget: 4096 209 | asyncUploadTimeSlice: 2 210 | asyncUploadBufferSize: 4 211 | resolutionScalingFixedDPIFactor: 1 212 | excludedTargetPlatforms: [] 213 | m_PerPlatformDefaultQuality: 214 | Android: 2 215 | Nintendo 3DS: 5 216 | Nintendo Switch: 5 217 | PS4: 5 218 | PSP2: 2 219 | Standalone: 5 220 | WebGL: 3 221 | Windows Store Apps: 5 222 | XboxOne: 5 223 | iPhone: 2 224 | tvOS: 2 225 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Assets/Example/Event/EventTest.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: 11 47 | m_GIWorkflowMode: 0 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_TemporalCoherenceThreshold: 1 54 | m_EnvironmentLightingMode: 0 55 | m_EnableBakedLightmaps: 1 56 | m_EnableRealtimeLightmaps: 1 57 | m_LightmapEditorSettings: 58 | serializedVersion: 10 59 | m_Resolution: 2 60 | m_BakeResolution: 40 61 | m_AtlasSize: 1024 62 | m_AO: 0 63 | m_AOMaxDistance: 1 64 | m_CompAOExponent: 1 65 | m_CompAOExponentDirect: 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: 500 79 | m_PVRBounces: 2 80 | m_PVRFilterTypeDirect: 0 81 | m_PVRFilterTypeIndirect: 0 82 | m_PVRFilterTypeAO: 0 83 | m_PVRFilteringMode: 1 84 | m_PVRCulling: 1 85 | m_PVRFilteringGaussRadiusDirect: 1 86 | m_PVRFilteringGaussRadiusIndirect: 5 87 | m_PVRFilteringGaussRadiusAO: 2 88 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 89 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 90 | m_PVRFilteringAtrousPositionSigmaAO: 1 91 | m_ShowResolutionOverlay: 1 92 | m_LightingDataAsset: {fileID: 0} 93 | m_UseShadowmask: 1 94 | --- !u!196 &4 95 | NavMeshSettings: 96 | serializedVersion: 2 97 | m_ObjectHideFlags: 0 98 | m_BuildSettings: 99 | serializedVersion: 2 100 | agentTypeID: 0 101 | agentRadius: 0.5 102 | agentHeight: 2 103 | agentSlope: 45 104 | agentClimb: 0.4 105 | ledgeDropHeight: 0 106 | maxJumpAcrossDistance: 0 107 | minRegionArea: 2 108 | manualCellSize: 0 109 | cellSize: 0.16666667 110 | manualTileSize: 0 111 | tileSize: 256 112 | accuratePlacement: 0 113 | debug: 114 | m_Flags: 0 115 | m_NavMeshData: {fileID: 0} 116 | --- !u!1 &378180229 117 | GameObject: 118 | m_ObjectHideFlags: 0 119 | m_CorrespondingSourceObject: {fileID: 0} 120 | m_PrefabInternal: {fileID: 0} 121 | serializedVersion: 6 122 | m_Component: 123 | - component: {fileID: 378180231} 124 | - component: {fileID: 378180230} 125 | m_Layer: 0 126 | m_Name: Test 127 | m_TagString: Untagged 128 | m_Icon: {fileID: 0} 129 | m_NavMeshLayer: 0 130 | m_StaticEditorFlags: 0 131 | m_IsActive: 1 132 | --- !u!114 &378180230 133 | MonoBehaviour: 134 | m_ObjectHideFlags: 0 135 | m_CorrespondingSourceObject: {fileID: 0} 136 | m_PrefabInternal: {fileID: 0} 137 | m_GameObject: {fileID: 378180229} 138 | m_Enabled: 1 139 | m_EditorHideFlags: 0 140 | m_Script: {fileID: 11500000, guid: a823179956e5fad4cb7290afacbfbf12, type: 3} 141 | m_Name: 142 | m_EditorClassIdentifier: 143 | --- !u!4 &378180231 144 | Transform: 145 | m_ObjectHideFlags: 0 146 | m_CorrespondingSourceObject: {fileID: 0} 147 | m_PrefabInternal: {fileID: 0} 148 | m_GameObject: {fileID: 378180229} 149 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 150 | m_LocalPosition: {x: 258.24896, y: -34.597687, z: -131.26257} 151 | m_LocalScale: {x: 1, y: 1, z: 1} 152 | m_Children: [] 153 | m_Father: {fileID: 0} 154 | m_RootOrder: 2 155 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 156 | --- !u!1 &1042979290 157 | GameObject: 158 | m_ObjectHideFlags: 0 159 | m_CorrespondingSourceObject: {fileID: 0} 160 | m_PrefabInternal: {fileID: 0} 161 | serializedVersion: 6 162 | m_Component: 163 | - component: {fileID: 1042979293} 164 | - component: {fileID: 1042979292} 165 | - component: {fileID: 1042979291} 166 | m_Layer: 0 167 | m_Name: Main Camera 168 | m_TagString: MainCamera 169 | m_Icon: {fileID: 0} 170 | m_NavMeshLayer: 0 171 | m_StaticEditorFlags: 0 172 | m_IsActive: 1 173 | --- !u!81 &1042979291 174 | AudioListener: 175 | m_ObjectHideFlags: 0 176 | m_CorrespondingSourceObject: {fileID: 0} 177 | m_PrefabInternal: {fileID: 0} 178 | m_GameObject: {fileID: 1042979290} 179 | m_Enabled: 1 180 | --- !u!20 &1042979292 181 | Camera: 182 | m_ObjectHideFlags: 0 183 | m_CorrespondingSourceObject: {fileID: 0} 184 | m_PrefabInternal: {fileID: 0} 185 | m_GameObject: {fileID: 1042979290} 186 | m_Enabled: 1 187 | serializedVersion: 2 188 | m_ClearFlags: 1 189 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 190 | m_projectionMatrixMode: 1 191 | m_SensorSize: {x: 36, y: 24} 192 | m_LensShift: {x: 0, y: 0} 193 | m_FocalLength: 50 194 | m_NormalizedViewPortRect: 195 | serializedVersion: 2 196 | x: 0 197 | y: 0 198 | width: 1 199 | height: 1 200 | near clip plane: 0.3 201 | far clip plane: 1000 202 | field of view: 60 203 | orthographic: 0 204 | orthographic size: 5 205 | m_Depth: -1 206 | m_CullingMask: 207 | serializedVersion: 2 208 | m_Bits: 4294967295 209 | m_RenderingPath: -1 210 | m_TargetTexture: {fileID: 0} 211 | m_TargetDisplay: 0 212 | m_TargetEye: 3 213 | m_HDR: 1 214 | m_AllowMSAA: 1 215 | m_AllowDynamicResolution: 0 216 | m_ForceIntoRT: 0 217 | m_OcclusionCulling: 1 218 | m_StereoConvergence: 10 219 | m_StereoSeparation: 0.022 220 | --- !u!4 &1042979293 221 | Transform: 222 | m_ObjectHideFlags: 0 223 | m_CorrespondingSourceObject: {fileID: 0} 224 | m_PrefabInternal: {fileID: 0} 225 | m_GameObject: {fileID: 1042979290} 226 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 227 | m_LocalPosition: {x: 0, y: 1, z: -10} 228 | m_LocalScale: {x: 1, y: 1, z: 1} 229 | m_Children: [] 230 | m_Father: {fileID: 0} 231 | m_RootOrder: 0 232 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 233 | --- !u!1 &1930517775 234 | GameObject: 235 | m_ObjectHideFlags: 0 236 | m_CorrespondingSourceObject: {fileID: 0} 237 | m_PrefabInternal: {fileID: 0} 238 | serializedVersion: 6 239 | m_Component: 240 | - component: {fileID: 1930517778} 241 | - component: {fileID: 1930517777} 242 | m_Layer: 0 243 | m_Name: Directional Light 244 | m_TagString: Untagged 245 | m_Icon: {fileID: 0} 246 | m_NavMeshLayer: 0 247 | m_StaticEditorFlags: 0 248 | m_IsActive: 1 249 | --- !u!108 &1930517777 250 | Light: 251 | m_ObjectHideFlags: 0 252 | m_CorrespondingSourceObject: {fileID: 0} 253 | m_PrefabInternal: {fileID: 0} 254 | m_GameObject: {fileID: 1930517775} 255 | m_Enabled: 1 256 | serializedVersion: 8 257 | m_Type: 1 258 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 259 | m_Intensity: 1 260 | m_Range: 10 261 | m_SpotAngle: 30 262 | m_CookieSize: 10 263 | m_Shadows: 264 | m_Type: 2 265 | m_Resolution: -1 266 | m_CustomResolution: -1 267 | m_Strength: 1 268 | m_Bias: 0.05 269 | m_NormalBias: 0.4 270 | m_NearPlane: 0.2 271 | m_Cookie: {fileID: 0} 272 | m_DrawHalo: 0 273 | m_Flare: {fileID: 0} 274 | m_RenderMode: 0 275 | m_CullingMask: 276 | serializedVersion: 2 277 | m_Bits: 4294967295 278 | m_Lightmapping: 4 279 | m_LightShadowCasterMode: 0 280 | m_AreaSize: {x: 1, y: 1} 281 | m_BounceIntensity: 1 282 | m_ColorTemperature: 6570 283 | m_UseColorTemperature: 0 284 | m_ShadowRadius: 0 285 | m_ShadowAngle: 0 286 | --- !u!4 &1930517778 287 | Transform: 288 | m_ObjectHideFlags: 0 289 | m_CorrespondingSourceObject: {fileID: 0} 290 | m_PrefabInternal: {fileID: 0} 291 | m_GameObject: {fileID: 1930517775} 292 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 293 | m_LocalPosition: {x: 0, y: 3, z: 0} 294 | m_LocalScale: {x: 1, y: 1, z: 1} 295 | m_Children: [] 296 | m_Father: {fileID: 0} 297 | m_RootOrder: 1 298 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 299 | -------------------------------------------------------------------------------- /Assets/Example/Network/NetworkTest.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: 11 47 | m_GIWorkflowMode: 0 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_TemporalCoherenceThreshold: 1 54 | m_EnvironmentLightingMode: 0 55 | m_EnableBakedLightmaps: 1 56 | m_EnableRealtimeLightmaps: 1 57 | m_LightmapEditorSettings: 58 | serializedVersion: 10 59 | m_Resolution: 2 60 | m_BakeResolution: 40 61 | m_AtlasSize: 1024 62 | m_AO: 0 63 | m_AOMaxDistance: 1 64 | m_CompAOExponent: 1 65 | m_CompAOExponentDirect: 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: 500 79 | m_PVRBounces: 2 80 | m_PVRFilterTypeDirect: 0 81 | m_PVRFilterTypeIndirect: 0 82 | m_PVRFilterTypeAO: 0 83 | m_PVRFilteringMode: 1 84 | m_PVRCulling: 1 85 | m_PVRFilteringGaussRadiusDirect: 1 86 | m_PVRFilteringGaussRadiusIndirect: 5 87 | m_PVRFilteringGaussRadiusAO: 2 88 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 89 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 90 | m_PVRFilteringAtrousPositionSigmaAO: 1 91 | m_ShowResolutionOverlay: 1 92 | m_LightingDataAsset: {fileID: 0} 93 | m_UseShadowmask: 1 94 | --- !u!196 &4 95 | NavMeshSettings: 96 | serializedVersion: 2 97 | m_ObjectHideFlags: 0 98 | m_BuildSettings: 99 | serializedVersion: 2 100 | agentTypeID: 0 101 | agentRadius: 0.5 102 | agentHeight: 2 103 | agentSlope: 45 104 | agentClimb: 0.4 105 | ledgeDropHeight: 0 106 | maxJumpAcrossDistance: 0 107 | minRegionArea: 2 108 | manualCellSize: 0 109 | cellSize: 0.16666667 110 | manualTileSize: 0 111 | tileSize: 256 112 | accuratePlacement: 0 113 | debug: 114 | m_Flags: 0 115 | m_NavMeshData: {fileID: 0} 116 | --- !u!1 &378180229 117 | GameObject: 118 | m_ObjectHideFlags: 0 119 | m_CorrespondingSourceObject: {fileID: 0} 120 | m_PrefabInternal: {fileID: 0} 121 | serializedVersion: 6 122 | m_Component: 123 | - component: {fileID: 378180231} 124 | - component: {fileID: 378180230} 125 | m_Layer: 0 126 | m_Name: Test 127 | m_TagString: Untagged 128 | m_Icon: {fileID: 0} 129 | m_NavMeshLayer: 0 130 | m_StaticEditorFlags: 0 131 | m_IsActive: 1 132 | --- !u!114 &378180230 133 | MonoBehaviour: 134 | m_ObjectHideFlags: 0 135 | m_CorrespondingSourceObject: {fileID: 0} 136 | m_PrefabInternal: {fileID: 0} 137 | m_GameObject: {fileID: 378180229} 138 | m_Enabled: 1 139 | m_EditorHideFlags: 0 140 | m_Script: {fileID: 11500000, guid: d1100283ec4f4824385d0208d91c171b, type: 3} 141 | m_Name: 142 | m_EditorClassIdentifier: 143 | --- !u!4 &378180231 144 | Transform: 145 | m_ObjectHideFlags: 0 146 | m_CorrespondingSourceObject: {fileID: 0} 147 | m_PrefabInternal: {fileID: 0} 148 | m_GameObject: {fileID: 378180229} 149 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 150 | m_LocalPosition: {x: 258.24896, y: -34.597687, z: -131.26257} 151 | m_LocalScale: {x: 1, y: 1, z: 1} 152 | m_Children: [] 153 | m_Father: {fileID: 0} 154 | m_RootOrder: 2 155 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 156 | --- !u!1 &1042979290 157 | GameObject: 158 | m_ObjectHideFlags: 0 159 | m_CorrespondingSourceObject: {fileID: 0} 160 | m_PrefabInternal: {fileID: 0} 161 | serializedVersion: 6 162 | m_Component: 163 | - component: {fileID: 1042979293} 164 | - component: {fileID: 1042979292} 165 | - component: {fileID: 1042979291} 166 | m_Layer: 0 167 | m_Name: Main Camera 168 | m_TagString: MainCamera 169 | m_Icon: {fileID: 0} 170 | m_NavMeshLayer: 0 171 | m_StaticEditorFlags: 0 172 | m_IsActive: 1 173 | --- !u!81 &1042979291 174 | AudioListener: 175 | m_ObjectHideFlags: 0 176 | m_CorrespondingSourceObject: {fileID: 0} 177 | m_PrefabInternal: {fileID: 0} 178 | m_GameObject: {fileID: 1042979290} 179 | m_Enabled: 1 180 | --- !u!20 &1042979292 181 | Camera: 182 | m_ObjectHideFlags: 0 183 | m_CorrespondingSourceObject: {fileID: 0} 184 | m_PrefabInternal: {fileID: 0} 185 | m_GameObject: {fileID: 1042979290} 186 | m_Enabled: 1 187 | serializedVersion: 2 188 | m_ClearFlags: 1 189 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 190 | m_projectionMatrixMode: 1 191 | m_SensorSize: {x: 36, y: 24} 192 | m_LensShift: {x: 0, y: 0} 193 | m_FocalLength: 50 194 | m_NormalizedViewPortRect: 195 | serializedVersion: 2 196 | x: 0 197 | y: 0 198 | width: 1 199 | height: 1 200 | near clip plane: 0.3 201 | far clip plane: 1000 202 | field of view: 60 203 | orthographic: 0 204 | orthographic size: 5 205 | m_Depth: -1 206 | m_CullingMask: 207 | serializedVersion: 2 208 | m_Bits: 4294967295 209 | m_RenderingPath: -1 210 | m_TargetTexture: {fileID: 0} 211 | m_TargetDisplay: 0 212 | m_TargetEye: 3 213 | m_HDR: 1 214 | m_AllowMSAA: 1 215 | m_AllowDynamicResolution: 0 216 | m_ForceIntoRT: 0 217 | m_OcclusionCulling: 1 218 | m_StereoConvergence: 10 219 | m_StereoSeparation: 0.022 220 | --- !u!4 &1042979293 221 | Transform: 222 | m_ObjectHideFlags: 0 223 | m_CorrespondingSourceObject: {fileID: 0} 224 | m_PrefabInternal: {fileID: 0} 225 | m_GameObject: {fileID: 1042979290} 226 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 227 | m_LocalPosition: {x: 0, y: 1, z: -10} 228 | m_LocalScale: {x: 1, y: 1, z: 1} 229 | m_Children: [] 230 | m_Father: {fileID: 0} 231 | m_RootOrder: 0 232 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 233 | --- !u!1 &1930517775 234 | GameObject: 235 | m_ObjectHideFlags: 0 236 | m_CorrespondingSourceObject: {fileID: 0} 237 | m_PrefabInternal: {fileID: 0} 238 | serializedVersion: 6 239 | m_Component: 240 | - component: {fileID: 1930517778} 241 | - component: {fileID: 1930517777} 242 | m_Layer: 0 243 | m_Name: Directional Light 244 | m_TagString: Untagged 245 | m_Icon: {fileID: 0} 246 | m_NavMeshLayer: 0 247 | m_StaticEditorFlags: 0 248 | m_IsActive: 1 249 | --- !u!108 &1930517777 250 | Light: 251 | m_ObjectHideFlags: 0 252 | m_CorrespondingSourceObject: {fileID: 0} 253 | m_PrefabInternal: {fileID: 0} 254 | m_GameObject: {fileID: 1930517775} 255 | m_Enabled: 1 256 | serializedVersion: 8 257 | m_Type: 1 258 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 259 | m_Intensity: 1 260 | m_Range: 10 261 | m_SpotAngle: 30 262 | m_CookieSize: 10 263 | m_Shadows: 264 | m_Type: 2 265 | m_Resolution: -1 266 | m_CustomResolution: -1 267 | m_Strength: 1 268 | m_Bias: 0.05 269 | m_NormalBias: 0.4 270 | m_NearPlane: 0.2 271 | m_Cookie: {fileID: 0} 272 | m_DrawHalo: 0 273 | m_Flare: {fileID: 0} 274 | m_RenderMode: 0 275 | m_CullingMask: 276 | serializedVersion: 2 277 | m_Bits: 4294967295 278 | m_Lightmapping: 4 279 | m_LightShadowCasterMode: 0 280 | m_AreaSize: {x: 1, y: 1} 281 | m_BounceIntensity: 1 282 | m_ColorTemperature: 6570 283 | m_UseColorTemperature: 0 284 | m_ShadowRadius: 0 285 | m_ShadowAngle: 0 286 | --- !u!4 &1930517778 287 | Transform: 288 | m_ObjectHideFlags: 0 289 | m_CorrespondingSourceObject: {fileID: 0} 290 | m_PrefabInternal: {fileID: 0} 291 | m_GameObject: {fileID: 1930517775} 292 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 293 | m_LocalPosition: {x: 0, y: 3, z: 0} 294 | m_LocalScale: {x: 1, y: 1, z: 1} 295 | m_Children: [] 296 | m_Father: {fileID: 0} 297 | m_RootOrder: 1 298 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 299 | -------------------------------------------------------------------------------- /Assets/1.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: 11 47 | m_GIWorkflowMode: 0 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: 1 56 | m_LightmapEditorSettings: 57 | serializedVersion: 10 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_Padding: 2 66 | m_LightmapParameters: {fileID: 0} 67 | m_LightmapsBakeMode: 1 68 | m_TextureCompression: 1 69 | m_FinalGather: 0 70 | m_FinalGatherFiltering: 1 71 | m_FinalGatherRayCount: 256 72 | m_ReflectionCompression: 2 73 | m_MixedBakeMode: 2 74 | m_BakeBackend: 1 75 | m_PVRSampling: 1 76 | m_PVRDirectSampleCount: 32 77 | m_PVRSampleCount: 500 78 | m_PVRBounces: 2 79 | m_PVRFilterTypeDirect: 0 80 | m_PVRFilterTypeIndirect: 0 81 | m_PVRFilterTypeAO: 0 82 | m_PVRFilteringMode: 1 83 | m_PVRCulling: 1 84 | m_PVRFilteringGaussRadiusDirect: 1 85 | m_PVRFilteringGaussRadiusIndirect: 5 86 | m_PVRFilteringGaussRadiusAO: 2 87 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 88 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 89 | m_PVRFilteringAtrousPositionSigmaAO: 1 90 | m_ShowResolutionOverlay: 1 91 | m_LightingDataAsset: {fileID: 0} 92 | m_UseShadowmask: 1 93 | --- !u!196 &4 94 | NavMeshSettings: 95 | serializedVersion: 2 96 | m_ObjectHideFlags: 0 97 | m_BuildSettings: 98 | serializedVersion: 2 99 | agentTypeID: 0 100 | agentRadius: 0.5 101 | agentHeight: 2 102 | agentSlope: 45 103 | agentClimb: 0.4 104 | ledgeDropHeight: 0 105 | maxJumpAcrossDistance: 0 106 | minRegionArea: 2 107 | manualCellSize: 0 108 | cellSize: 0.16666667 109 | manualTileSize: 0 110 | tileSize: 256 111 | accuratePlacement: 0 112 | debug: 113 | m_Flags: 0 114 | m_NavMeshData: {fileID: 0} 115 | --- !u!1 &611490701 116 | GameObject: 117 | m_ObjectHideFlags: 0 118 | m_CorrespondingSourceObject: {fileID: 0} 119 | m_PrefabInstance: {fileID: 0} 120 | m_PrefabAsset: {fileID: 0} 121 | serializedVersion: 6 122 | m_Component: 123 | - component: {fileID: 611490704} 124 | - component: {fileID: 611490703} 125 | - component: {fileID: 611490702} 126 | m_Layer: 0 127 | m_Name: Main Camera 128 | m_TagString: MainCamera 129 | m_Icon: {fileID: 0} 130 | m_NavMeshLayer: 0 131 | m_StaticEditorFlags: 0 132 | m_IsActive: 1 133 | --- !u!81 &611490702 134 | AudioListener: 135 | m_ObjectHideFlags: 0 136 | m_CorrespondingSourceObject: {fileID: 0} 137 | m_PrefabInstance: {fileID: 0} 138 | m_PrefabAsset: {fileID: 0} 139 | m_GameObject: {fileID: 611490701} 140 | m_Enabled: 1 141 | --- !u!20 &611490703 142 | Camera: 143 | m_ObjectHideFlags: 0 144 | m_CorrespondingSourceObject: {fileID: 0} 145 | m_PrefabInstance: {fileID: 0} 146 | m_PrefabAsset: {fileID: 0} 147 | m_GameObject: {fileID: 611490701} 148 | m_Enabled: 1 149 | serializedVersion: 2 150 | m_ClearFlags: 1 151 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 152 | m_projectionMatrixMode: 1 153 | m_SensorSize: {x: 36, y: 24} 154 | m_LensShift: {x: 0, y: 0} 155 | m_GateFitMode: 2 156 | m_FocalLength: 50 157 | m_NormalizedViewPortRect: 158 | serializedVersion: 2 159 | x: 0 160 | y: 0 161 | width: 1 162 | height: 1 163 | near clip plane: 0.3 164 | far clip plane: 1000 165 | field of view: 60 166 | orthographic: 0 167 | orthographic size: 5 168 | m_Depth: -1 169 | m_CullingMask: 170 | serializedVersion: 2 171 | m_Bits: 4294967295 172 | m_RenderingPath: -1 173 | m_TargetTexture: {fileID: 0} 174 | m_TargetDisplay: 0 175 | m_TargetEye: 3 176 | m_HDR: 1 177 | m_AllowMSAA: 1 178 | m_AllowDynamicResolution: 0 179 | m_ForceIntoRT: 0 180 | m_OcclusionCulling: 1 181 | m_StereoConvergence: 10 182 | m_StereoSeparation: 0.022 183 | --- !u!4 &611490704 184 | Transform: 185 | m_ObjectHideFlags: 0 186 | m_CorrespondingSourceObject: {fileID: 0} 187 | m_PrefabInstance: {fileID: 0} 188 | m_PrefabAsset: {fileID: 0} 189 | m_GameObject: {fileID: 611490701} 190 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 191 | m_LocalPosition: {x: 0, y: 1, z: -10} 192 | m_LocalScale: {x: 1, y: 1, z: 1} 193 | m_Children: [] 194 | m_Father: {fileID: 0} 195 | m_RootOrder: 0 196 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 197 | --- !u!1 &802249080 198 | GameObject: 199 | m_ObjectHideFlags: 0 200 | m_CorrespondingSourceObject: {fileID: 0} 201 | m_PrefabInstance: {fileID: 0} 202 | m_PrefabAsset: {fileID: 0} 203 | serializedVersion: 6 204 | m_Component: 205 | - component: {fileID: 802249082} 206 | - component: {fileID: 802249081} 207 | m_Layer: 0 208 | m_Name: Test 209 | m_TagString: Untagged 210 | m_Icon: {fileID: 0} 211 | m_NavMeshLayer: 0 212 | m_StaticEditorFlags: 0 213 | m_IsActive: 1 214 | --- !u!114 &802249081 215 | MonoBehaviour: 216 | m_ObjectHideFlags: 0 217 | m_CorrespondingSourceObject: {fileID: 0} 218 | m_PrefabInstance: {fileID: 0} 219 | m_PrefabAsset: {fileID: 0} 220 | m_GameObject: {fileID: 802249080} 221 | m_Enabled: 1 222 | m_EditorHideFlags: 0 223 | m_Script: {fileID: 11500000, guid: 814759d1b8b1a004885dca53e5395914, type: 3} 224 | m_Name: 225 | m_EditorClassIdentifier: 226 | texture: {fileID: 2800000, guid: 51ba88239a7b5f04c8c0ca6aeeee2b3f, type: 3} 227 | --- !u!4 &802249082 228 | Transform: 229 | m_ObjectHideFlags: 0 230 | m_CorrespondingSourceObject: {fileID: 0} 231 | m_PrefabInstance: {fileID: 0} 232 | m_PrefabAsset: {fileID: 0} 233 | m_GameObject: {fileID: 802249080} 234 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 235 | m_LocalPosition: {x: 258.24896, y: -34.597687, z: -131.26257} 236 | m_LocalScale: {x: 1, y: 1, z: 1} 237 | m_Children: [] 238 | m_Father: {fileID: 0} 239 | m_RootOrder: 2 240 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 241 | --- !u!1 &1642970428 242 | GameObject: 243 | m_ObjectHideFlags: 0 244 | m_CorrespondingSourceObject: {fileID: 0} 245 | m_PrefabInstance: {fileID: 0} 246 | m_PrefabAsset: {fileID: 0} 247 | serializedVersion: 6 248 | m_Component: 249 | - component: {fileID: 1642970430} 250 | - component: {fileID: 1642970429} 251 | m_Layer: 0 252 | m_Name: Directional Light 253 | m_TagString: Untagged 254 | m_Icon: {fileID: 0} 255 | m_NavMeshLayer: 0 256 | m_StaticEditorFlags: 0 257 | m_IsActive: 1 258 | --- !u!108 &1642970429 259 | Light: 260 | m_ObjectHideFlags: 0 261 | m_CorrespondingSourceObject: {fileID: 0} 262 | m_PrefabInstance: {fileID: 0} 263 | m_PrefabAsset: {fileID: 0} 264 | m_GameObject: {fileID: 1642970428} 265 | m_Enabled: 1 266 | serializedVersion: 8 267 | m_Type: 1 268 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 269 | m_Intensity: 1 270 | m_Range: 10 271 | m_SpotAngle: 30 272 | m_CookieSize: 10 273 | m_Shadows: 274 | m_Type: 2 275 | m_Resolution: -1 276 | m_CustomResolution: -1 277 | m_Strength: 1 278 | m_Bias: 0.05 279 | m_NormalBias: 0.4 280 | m_NearPlane: 0.2 281 | m_Cookie: {fileID: 0} 282 | m_DrawHalo: 0 283 | m_Flare: {fileID: 0} 284 | m_RenderMode: 0 285 | m_CullingMask: 286 | serializedVersion: 2 287 | m_Bits: 4294967295 288 | m_Lightmapping: 4 289 | m_LightShadowCasterMode: 0 290 | m_AreaSize: {x: 1, y: 1} 291 | m_BounceIntensity: 1 292 | m_ColorTemperature: 6570 293 | m_UseColorTemperature: 0 294 | m_ShadowRadius: 0 295 | m_ShadowAngle: 0 296 | --- !u!4 &1642970430 297 | Transform: 298 | m_ObjectHideFlags: 0 299 | m_CorrespondingSourceObject: {fileID: 0} 300 | m_PrefabInstance: {fileID: 0} 301 | m_PrefabAsset: {fileID: 0} 302 | m_GameObject: {fileID: 1642970428} 303 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 304 | m_LocalPosition: {x: 0, y: 3, z: 0} 305 | m_LocalScale: {x: 1, y: 1, z: 1} 306 | m_Children: [] 307 | m_Father: {fileID: 0} 308 | m_RootOrder: 1 309 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 310 | -------------------------------------------------------------------------------- /Assets/EFramework/Network/Network.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using System.IO; 5 | using System.Net; 6 | using System.Net.Sockets; 7 | using System.Text; 8 | using UnityEngine; 9 | 10 | public class Network 11 | { 12 | private const int BUFF_SIZE = 128; 13 | public class UDPClient 14 | { 15 | UdpClient client; 16 | 17 | public void Init(string ip="127.0.0.1",int port=60000) 18 | { 19 | client = new UdpClient(); 20 | client.Connect(ip, port); 21 | client.BeginReceive(Receive, client); 22 | } 23 | public void Send(Package package) 24 | { 25 | byte[] msgBytes = package.Pack(); 26 | client.Send(msgBytes, msgBytes.Length); 27 | } 28 | private void Receive(IAsyncResult ar) 29 | { 30 | UdpClient u = (UdpClient)ar.AsyncState; 31 | IPEndPoint e = new IPEndPoint(IPAddress.Any, 0); 32 | byte[] receiveBytes = u.EndReceive(ar, ref e); 33 | new EventData(PackageDir.receive, new Package().UnPack(receiveBytes)).Send(); 34 | client.BeginReceive(Receive, client); 35 | } 36 | public void Close() 37 | { 38 | client.Close(); 39 | } 40 | } 41 | 42 | public class UDPServer 43 | { 44 | UdpClient server; 45 | 46 | public void Init(int port = 60000) 47 | { 48 | server = new UdpClient(port); 49 | //ThreadPool.QueueUserWorkItem(Receive); 50 | server.BeginReceive(Receive, server); 51 | } 52 | 53 | private void Receive(IAsyncResult ar) 54 | { 55 | UdpClient u = (UdpClient)ar.AsyncState; 56 | IPEndPoint e = new IPEndPoint(IPAddress.Any, 0); 57 | byte[] receiveBytes = u.EndReceive(ar, ref e); 58 | new EventData(PackageDir.receive, new Package().UnPack(receiveBytes)).Send(); 59 | server.BeginReceive(Receive, server); 60 | } 61 | } 62 | public class TCPClient 63 | { 64 | private TcpClient tcpclient = null; 65 | byte[] result; 66 | public void Init(string ip,int port=60001) 67 | { 68 | tcpclient = new TcpClient(); 69 | //连接服务器 70 | tcpclient.BeginConnect(IPAddress.Parse(ip), port, ConnectCallback, tcpclient); 71 | } 72 | /// 73 | /// 连接回调 74 | /// 75 | /// 76 | private void ConnectCallback(IAsyncResult ar) 77 | { 78 | TcpClient client = (TcpClient)ar.AsyncState; 79 | try 80 | { 81 | if (client.Connected) 82 | { 83 | //连接成功 84 | client.EndConnect(ar); 85 | //开始接受数据 86 | ReceiveData(client); 87 | 88 | } 89 | } 90 | catch (Exception e) 91 | { 92 | Debug.Log("ConnectCallback:" + e.Message); 93 | } 94 | } 95 | /// 96 | /// 接收数据 97 | /// 98 | /// 99 | private void ReceiveData(TcpClient client) 100 | { 101 | NetworkStream stream = client.GetStream(); 102 | 103 | result = new byte[client.Available]; 104 | 105 | try 106 | { 107 | stream.BeginRead(result, 0, result.Length, ReadCallBack, stream); 108 | } 109 | catch (Exception e) 110 | { 111 | Debug.Log("ReceiveData:" + e.Message); 112 | } 113 | } 114 | /// 115 | /// 接受消息回调 116 | /// 117 | /// 118 | private void ReadCallBack(IAsyncResult ar) 119 | { 120 | NetworkStream stream; 121 | try 122 | { 123 | stream = (NetworkStream)ar.AsyncState; 124 | stream.EndRead(ar); 125 | byte[] sizeData = new byte[4]; 126 | stream.Read(sizeData, 0, sizeData.Length); 127 | 128 | int size = BitConverter.ToInt32(sizeData,0); 129 | byte[] data = new byte[size]; 130 | stream.Read(data, 0, data.Length); 131 | EventData.CreateEvent(PackageDir.receive,new Package().UnPack(data)).Send(); 132 | } 133 | catch (IOException e) 134 | { 135 | Debug.Log("远程服务器关闭"+e.Message); 136 | } 137 | 138 | } 139 | /// 140 | /// 发送消息 141 | /// 142 | /// 143 | public void Send(Package package) 144 | { 145 | if (tcpclient.Connected) 146 | { 147 | NetworkStream stream = tcpclient.GetStream(); 148 | byte[] data = package.Pack(); 149 | stream.BeginWrite(data, 0, data.Length, SendCallback, stream); 150 | } 151 | } 152 | /// 153 | /// 发送消息回调 154 | /// 155 | /// 156 | private void SendCallback(IAsyncResult ar) 157 | { 158 | NetworkStream stream = (NetworkStream)ar.AsyncState; 159 | stream.EndWrite(ar); 160 | } 161 | } 162 | public class TCPServer 163 | { 164 | private TcpListener server; 165 | byte[] buffer = new byte[1024]; 166 | /// 167 | /// 接受消息 168 | /// 169 | List receiveDataList = new List(); 170 | public void Init(int port=60001) 171 | { 172 | server = new TcpListener(new IPEndPoint(IPAddress.Any, port)); 173 | //开启侦听,最多只能连接20个客户端数目 174 | server.Start(20); 175 | server.BeginAcceptSocket(ClientConnect, server); 176 | } 177 | /// 178 | /// 客户端连接 179 | /// 180 | /// 181 | private void ClientConnect(IAsyncResult ar) 182 | { 183 | try 184 | { 185 | TcpListener listener = (TcpListener)ar.AsyncState; 186 | Socket client = listener.EndAcceptSocket(ar); 187 | Debug.Log(client.RemoteEndPoint.ToString() + "连接成功"); 188 | //侦听结束后开始接收数据 189 | ReceiveData(client); 190 | //重新侦听是否有新的客户端连接 191 | //如果这里不写 那么只能侦听一次 192 | server.BeginAcceptSocket(ClientConnect, server); 193 | } 194 | catch (Exception e) 195 | { 196 | 197 | Debug.Log("ClientConnect" + e.Message); 198 | } 199 | } 200 | /// 201 | /// 接受数据的回调 202 | /// 203 | /// 204 | private void ReceiveData(Socket client) 205 | { 206 | SocketError socketError; 207 | client.BeginReceive(buffer, 0, buffer.Length, SocketFlags.None, out socketError, ReceiveCallback, client); 208 | } 209 | /// 210 | /// 一次接收的数据的长度 211 | /// 212 | int receLen = 0; 213 | private void ReceiveCallback(IAsyncResult ar) 214 | { 215 | try 216 | { 217 | SocketError socketError; 218 | Socket client = (Socket)ar.AsyncState; 219 | receLen = client.EndReceive(ar, out socketError); 220 | if (receLen > 0) 221 | { 222 | lock (receiveDataList) 223 | { 224 | //处理接收到的数据 225 | 226 | OnReceiveData(client); 227 | } 228 | 229 | } 230 | else//当receLen<=0的时候表示客户端断开和服务器的连接 231 | { 232 | Debug.Log(client.LocalEndPoint.ToString() + "关闭了"); 233 | } 234 | //重新接受数据 235 | ReceiveData(client); 236 | } 237 | catch (Exception e) 238 | { 239 | Debug.Log("ReceiveCallback:" + e.Message + " " + e.StackTrace); 240 | } 241 | } 242 | /// 243 | /// 接受数据 244 | /// 245 | /// 246 | private void OnReceiveData(Socket socket) 247 | { 248 | 249 | byte[] tempArr = new byte[receLen]; 250 | Array.Copy(buffer, tempArr, receLen); 251 | receiveDataList.AddRange(tempArr); 252 | if (receiveDataList.Count >= 4) 253 | { 254 | byte[] dataArray = receiveDataList.GetRange(0, 4).ToArray(); 255 | //int len = BitConverter.ToInt32(dataArray, 0); 256 | int len = NetworkUtils.ByteArray2Int(dataArray, 0); 257 | //Debug.Log("receiveDataList: " + receiveDataList.Count+" == ?"+len); 258 | if (receiveDataList.Count >= len) 259 | { 260 | Package package = new Package(); 261 | package.UnPack(receiveDataList.ToArray()); 262 | 263 | EventData.CreateEvent(PackageDir.receive, package).Send(); 264 | } 265 | } 266 | } 267 | /// 268 | /// 发送数据 269 | /// 270 | /// 271 | /// 272 | public void Send(Socket socket,Package package) 273 | { 274 | SocketError socketError; 275 | byte[] data = package.Pack(); 276 | socket.BeginSend(data, 0, data.Length, SocketFlags.None, out socketError, SendCallBack, socket);//异步发送数据 277 | } 278 | /// 279 | /// 发送数据的回调 280 | /// 281 | /// 282 | private void SendCallBack(IAsyncResult ar) 283 | { 284 | SocketError socketError; 285 | Socket client = (Socket)ar.AsyncState; 286 | client.EndSend(ar, out socketError); 287 | } 288 | } 289 | } 290 | public enum PackageDir 291 | { 292 | send=100,receive 293 | } -------------------------------------------------------------------------------- /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: 15 7 | productGUID: 2eaed6d3717f38c44ad3dd79d8d15525 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: EventSystem 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 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 53 | iosShowActivityIndicatorOnLoading: -1 54 | androidShowActivityIndicatorOnLoading: -1 55 | iosAppInBackgroundBehavior: 0 56 | displayResolutionDialog: 1 57 | iosAllowHTTPDownload: 1 58 | allowedAutorotateToPortrait: 1 59 | allowedAutorotateToPortraitUpsideDown: 1 60 | allowedAutorotateToLandscapeRight: 1 61 | allowedAutorotateToLandscapeLeft: 1 62 | useOSAutorotation: 1 63 | use32BitDisplayBuffer: 1 64 | preserveFramebufferAlpha: 0 65 | disableDepthAndStencilBuffers: 0 66 | androidBlitType: 0 67 | defaultIsNativeResolution: 1 68 | macRetinaSupport: 1 69 | runInBackground: 0 70 | captureSingleScreen: 0 71 | muteOtherAudioSources: 0 72 | Prepare IOS For Recording: 0 73 | Force IOS Speakers When Recording: 0 74 | deferSystemGesturesMode: 0 75 | hideHomeButton: 0 76 | submitAnalytics: 1 77 | usePlayerLog: 1 78 | bakeCollisionMeshes: 0 79 | forceSingleInstance: 0 80 | resizableWindow: 0 81 | useMacAppStoreValidation: 0 82 | macAppStoreCategory: public.app-category.games 83 | gpuSkinning: 0 84 | graphicsJobs: 0 85 | xboxPIXTextureCapture: 0 86 | xboxEnableAvatar: 0 87 | xboxEnableKinect: 0 88 | xboxEnableKinectAutoTracking: 0 89 | xboxEnableFitness: 0 90 | visibleInBackground: 1 91 | allowFullscreenSwitch: 1 92 | graphicsJobMode: 0 93 | fullscreenMode: 1 94 | xboxSpeechDB: 0 95 | xboxEnableHeadOrientation: 0 96 | xboxEnableGuest: 0 97 | xboxEnablePIXSampling: 0 98 | metalFramebufferOnly: 0 99 | n3dsDisableStereoscopicView: 0 100 | n3dsEnableSharedListOpt: 1 101 | n3dsEnableVSync: 0 102 | xboxOneResolution: 0 103 | xboxOneSResolution: 0 104 | xboxOneXResolution: 3 105 | xboxOneMonoLoggingLevel: 0 106 | xboxOneLoggingLevel: 1 107 | xboxOneDisableEsram: 0 108 | xboxOnePresentImmediateThreshold: 0 109 | switchQueueCommandMemory: 0 110 | videoMemoryForVertexBuffers: 0 111 | psp2PowerMode: 0 112 | psp2AcquireBGM: 1 113 | vulkanEnableSetSRGBWrite: 0 114 | vulkanUseSWCommandBuffers: 0 115 | m_SupportedAspectRatios: 116 | 4:3: 1 117 | 5:4: 1 118 | 16:10: 1 119 | 16:9: 1 120 | Others: 1 121 | bundleVersion: 1.0 122 | preloadedAssets: [] 123 | metroInputSource: 0 124 | wsaTransparentSwapchain: 0 125 | m_HolographicPauseOnTrackingLoss: 1 126 | xboxOneDisableKinectGpuReservation: 0 127 | xboxOneEnable7thCore: 1 128 | vrSettings: 129 | cardboard: 130 | depthFormat: 0 131 | enableTransitionView: 0 132 | daydream: 133 | depthFormat: 0 134 | useSustainedPerformanceMode: 0 135 | enableVideoLayer: 0 136 | useProtectedVideoMemory: 0 137 | minimumSupportedHeadTracking: 0 138 | maximumSupportedHeadTracking: 1 139 | hololens: 140 | depthFormat: 1 141 | depthBufferSharingEnabled: 0 142 | oculus: 143 | sharedDepthBuffer: 0 144 | dashSupport: 0 145 | enable360StereoCapture: 0 146 | protectGraphicsMemory: 0 147 | useHDRDisplay: 0 148 | m_ColorGamuts: 00000000 149 | targetPixelDensity: 30 150 | resolutionScalingMode: 0 151 | androidSupportedAspectRatio: 1 152 | androidMaxAspectRatio: 2.1 153 | applicationIdentifier: {} 154 | buildNumber: {} 155 | AndroidBundleVersionCode: 1 156 | AndroidMinSdkVersion: 16 157 | AndroidTargetSdkVersion: 0 158 | AndroidPreferredInstallLocation: 1 159 | aotOptions: 160 | stripEngineCode: 1 161 | iPhoneStrippingLevel: 0 162 | iPhoneScriptCallOptimization: 0 163 | ForceInternetPermission: 0 164 | ForceSDCardPermission: 0 165 | CreateWallpaper: 0 166 | APKExpansionFiles: 0 167 | keepLoadedShadersAlive: 0 168 | StripUnusedMeshComponents: 0 169 | VertexChannelCompressionMask: 4054 170 | iPhoneSdkVersion: 988 171 | iOSTargetOSVersionString: 8.0 172 | tvOSSdkVersion: 0 173 | tvOSRequireExtendedGameController: 0 174 | tvOSTargetOSVersionString: 9.0 175 | uIPrerenderedIcon: 0 176 | uIRequiresPersistentWiFi: 0 177 | uIRequiresFullScreen: 1 178 | uIStatusBarHidden: 1 179 | uIExitOnSuspend: 0 180 | uIStatusBarStyle: 0 181 | iPhoneSplashScreen: {fileID: 0} 182 | iPhoneHighResSplashScreen: {fileID: 0} 183 | iPhoneTallHighResSplashScreen: {fileID: 0} 184 | iPhone47inSplashScreen: {fileID: 0} 185 | iPhone55inPortraitSplashScreen: {fileID: 0} 186 | iPhone55inLandscapeSplashScreen: {fileID: 0} 187 | iPhone58inPortraitSplashScreen: {fileID: 0} 188 | iPhone58inLandscapeSplashScreen: {fileID: 0} 189 | iPadPortraitSplashScreen: {fileID: 0} 190 | iPadHighResPortraitSplashScreen: {fileID: 0} 191 | iPadLandscapeSplashScreen: {fileID: 0} 192 | iPadHighResLandscapeSplashScreen: {fileID: 0} 193 | appleTVSplashScreen: {fileID: 0} 194 | appleTVSplashScreen2x: {fileID: 0} 195 | tvOSSmallIconLayers: [] 196 | tvOSSmallIconLayers2x: [] 197 | tvOSLargeIconLayers: [] 198 | tvOSLargeIconLayers2x: [] 199 | tvOSTopShelfImageLayers: [] 200 | tvOSTopShelfImageLayers2x: [] 201 | tvOSTopShelfImageWideLayers: [] 202 | tvOSTopShelfImageWideLayers2x: [] 203 | iOSLaunchScreenType: 0 204 | iOSLaunchScreenPortrait: {fileID: 0} 205 | iOSLaunchScreenLandscape: {fileID: 0} 206 | iOSLaunchScreenBackgroundColor: 207 | serializedVersion: 2 208 | rgba: 0 209 | iOSLaunchScreenFillPct: 100 210 | iOSLaunchScreenSize: 100 211 | iOSLaunchScreenCustomXibPath: 212 | iOSLaunchScreeniPadType: 0 213 | iOSLaunchScreeniPadImage: {fileID: 0} 214 | iOSLaunchScreeniPadBackgroundColor: 215 | serializedVersion: 2 216 | rgba: 0 217 | iOSLaunchScreeniPadFillPct: 100 218 | iOSLaunchScreeniPadSize: 100 219 | iOSLaunchScreeniPadCustomXibPath: 220 | iOSUseLaunchScreenStoryboard: 0 221 | iOSLaunchScreenCustomStoryboardPath: 222 | iOSDeviceRequirements: [] 223 | iOSURLSchemes: [] 224 | iOSBackgroundModes: 0 225 | iOSMetalForceHardShadows: 0 226 | metalEditorSupport: 1 227 | metalAPIValidation: 1 228 | iOSRenderExtraFrameOnPause: 0 229 | appleDeveloperTeamID: 230 | iOSManualSigningProvisioningProfileID: 231 | tvOSManualSigningProvisioningProfileID: 232 | iOSManualSigningProvisioningProfileType: 0 233 | tvOSManualSigningProvisioningProfileType: 0 234 | appleEnableAutomaticSigning: 0 235 | iOSRequireARKit: 0 236 | appleEnableProMotion: 0 237 | vulkanEditorSupport: 0 238 | clonedFromGUID: 00000000000000000000000000000000 239 | templatePackageId: 240 | templateDefaultScene: 241 | AndroidTargetArchitectures: 1 242 | AndroidSplashScreenScale: 0 243 | androidSplashScreen: {fileID: 0} 244 | AndroidKeystoreName: 245 | AndroidKeyaliasName: 246 | AndroidBuildApkPerCpuArchitecture: 0 247 | AndroidTVCompatibility: 1 248 | AndroidIsGame: 1 249 | AndroidEnableTango: 0 250 | androidEnableBanner: 1 251 | androidUseLowAccuracyLocation: 0 252 | m_AndroidBanners: 253 | - width: 320 254 | height: 180 255 | banner: {fileID: 0} 256 | androidGamepadSupportLevel: 0 257 | resolutionDialogBanner: {fileID: 0} 258 | m_BuildTargetIcons: [] 259 | m_BuildTargetPlatformIcons: [] 260 | m_BuildTargetBatching: [] 261 | m_BuildTargetGraphicsAPIs: [] 262 | m_BuildTargetVRSettings: [] 263 | m_BuildTargetEnableVuforiaSettings: [] 264 | openGLRequireES31: 0 265 | openGLRequireES31AEP: 0 266 | m_TemplateCustomTags: {} 267 | mobileMTRendering: 268 | Android: 1 269 | iPhone: 1 270 | tvOS: 1 271 | m_BuildTargetGroupLightmapEncodingQuality: [] 272 | m_BuildTargetGroupLightmapSettings: [] 273 | playModeTestRunnerEnabled: 0 274 | runPlayModeTestAsEditModeTest: 0 275 | actionOnDotNetUnhandledException: 1 276 | enableInternalProfiler: 0 277 | logObjCUncaughtExceptions: 1 278 | enableCrashReportAPI: 0 279 | cameraUsageDescription: 280 | locationUsageDescription: 281 | microphoneUsageDescription: 282 | switchNetLibKey: 283 | switchSocketMemoryPoolSize: 6144 284 | switchSocketAllocatorPoolSize: 128 285 | switchSocketConcurrencyLimit: 14 286 | switchScreenResolutionBehavior: 2 287 | switchUseCPUProfiler: 0 288 | switchApplicationID: 0x01004b9000490000 289 | switchNSODependencies: 290 | switchTitleNames_0: 291 | switchTitleNames_1: 292 | switchTitleNames_2: 293 | switchTitleNames_3: 294 | switchTitleNames_4: 295 | switchTitleNames_5: 296 | switchTitleNames_6: 297 | switchTitleNames_7: 298 | switchTitleNames_8: 299 | switchTitleNames_9: 300 | switchTitleNames_10: 301 | switchTitleNames_11: 302 | switchTitleNames_12: 303 | switchTitleNames_13: 304 | switchTitleNames_14: 305 | switchPublisherNames_0: 306 | switchPublisherNames_1: 307 | switchPublisherNames_2: 308 | switchPublisherNames_3: 309 | switchPublisherNames_4: 310 | switchPublisherNames_5: 311 | switchPublisherNames_6: 312 | switchPublisherNames_7: 313 | switchPublisherNames_8: 314 | switchPublisherNames_9: 315 | switchPublisherNames_10: 316 | switchPublisherNames_11: 317 | switchPublisherNames_12: 318 | switchPublisherNames_13: 319 | switchPublisherNames_14: 320 | switchIcons_0: {fileID: 0} 321 | switchIcons_1: {fileID: 0} 322 | switchIcons_2: {fileID: 0} 323 | switchIcons_3: {fileID: 0} 324 | switchIcons_4: {fileID: 0} 325 | switchIcons_5: {fileID: 0} 326 | switchIcons_6: {fileID: 0} 327 | switchIcons_7: {fileID: 0} 328 | switchIcons_8: {fileID: 0} 329 | switchIcons_9: {fileID: 0} 330 | switchIcons_10: {fileID: 0} 331 | switchIcons_11: {fileID: 0} 332 | switchIcons_12: {fileID: 0} 333 | switchIcons_13: {fileID: 0} 334 | switchIcons_14: {fileID: 0} 335 | switchSmallIcons_0: {fileID: 0} 336 | switchSmallIcons_1: {fileID: 0} 337 | switchSmallIcons_2: {fileID: 0} 338 | switchSmallIcons_3: {fileID: 0} 339 | switchSmallIcons_4: {fileID: 0} 340 | switchSmallIcons_5: {fileID: 0} 341 | switchSmallIcons_6: {fileID: 0} 342 | switchSmallIcons_7: {fileID: 0} 343 | switchSmallIcons_8: {fileID: 0} 344 | switchSmallIcons_9: {fileID: 0} 345 | switchSmallIcons_10: {fileID: 0} 346 | switchSmallIcons_11: {fileID: 0} 347 | switchSmallIcons_12: {fileID: 0} 348 | switchSmallIcons_13: {fileID: 0} 349 | switchSmallIcons_14: {fileID: 0} 350 | switchManualHTML: 351 | switchAccessibleURLs: 352 | switchLegalInformation: 353 | switchMainThreadStackSize: 1048576 354 | switchPresenceGroupId: 355 | switchLogoHandling: 0 356 | switchReleaseVersion: 0 357 | switchDisplayVersion: 1.0.0 358 | switchStartupUserAccount: 0 359 | switchTouchScreenUsage: 0 360 | switchSupportedLanguagesMask: 0 361 | switchLogoType: 0 362 | switchApplicationErrorCodeCategory: 363 | switchUserAccountSaveDataSize: 0 364 | switchUserAccountSaveDataJournalSize: 0 365 | switchApplicationAttribute: 0 366 | switchCardSpecSize: -1 367 | switchCardSpecClock: -1 368 | switchRatingsMask: 0 369 | switchRatingsInt_0: 0 370 | switchRatingsInt_1: 0 371 | switchRatingsInt_2: 0 372 | switchRatingsInt_3: 0 373 | switchRatingsInt_4: 0 374 | switchRatingsInt_5: 0 375 | switchRatingsInt_6: 0 376 | switchRatingsInt_7: 0 377 | switchRatingsInt_8: 0 378 | switchRatingsInt_9: 0 379 | switchRatingsInt_10: 0 380 | switchRatingsInt_11: 0 381 | switchLocalCommunicationIds_0: 382 | switchLocalCommunicationIds_1: 383 | switchLocalCommunicationIds_2: 384 | switchLocalCommunicationIds_3: 385 | switchLocalCommunicationIds_4: 386 | switchLocalCommunicationIds_5: 387 | switchLocalCommunicationIds_6: 388 | switchLocalCommunicationIds_7: 389 | switchParentalControl: 0 390 | switchAllowsScreenshot: 1 391 | switchAllowsVideoCapturing: 1 392 | switchAllowsRuntimeAddOnContentInstall: 0 393 | switchDataLossConfirmation: 0 394 | switchSupportedNpadStyles: 3 395 | switchNativeFsCacheSize: 32 396 | switchIsHoldTypeHorizontal: 0 397 | switchSupportedNpadCount: 8 398 | switchSocketConfigEnabled: 0 399 | switchTcpInitialSendBufferSize: 32 400 | switchTcpInitialReceiveBufferSize: 64 401 | switchTcpAutoSendBufferSizeMax: 256 402 | switchTcpAutoReceiveBufferSizeMax: 256 403 | switchUdpSendBufferSize: 9 404 | switchUdpReceiveBufferSize: 42 405 | switchSocketBufferEfficiency: 4 406 | switchSocketInitializeEnabled: 1 407 | switchNetworkInterfaceManagerInitializeEnabled: 1 408 | switchPlayerConnectionEnabled: 1 409 | ps4NPAgeRating: 12 410 | ps4NPTitleSecret: 411 | ps4NPTrophyPackPath: 412 | ps4ParentalLevel: 11 413 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 414 | ps4Category: 0 415 | ps4MasterVersion: 01.00 416 | ps4AppVersion: 01.00 417 | ps4AppType: 0 418 | ps4ParamSfxPath: 419 | ps4VideoOutPixelFormat: 0 420 | ps4VideoOutInitialWidth: 1920 421 | ps4VideoOutBaseModeInitialWidth: 1920 422 | ps4VideoOutReprojectionRate: 60 423 | ps4PronunciationXMLPath: 424 | ps4PronunciationSIGPath: 425 | ps4BackgroundImagePath: 426 | ps4StartupImagePath: 427 | ps4StartupImagesFolder: 428 | ps4IconImagesFolder: 429 | ps4SaveDataImagePath: 430 | ps4SdkOverride: 431 | ps4BGMPath: 432 | ps4ShareFilePath: 433 | ps4ShareOverlayImagePath: 434 | ps4PrivacyGuardImagePath: 435 | ps4NPtitleDatPath: 436 | ps4RemotePlayKeyAssignment: -1 437 | ps4RemotePlayKeyMappingDir: 438 | ps4PlayTogetherPlayerCount: 0 439 | ps4EnterButtonAssignment: 2 440 | ps4ApplicationParam1: 0 441 | ps4ApplicationParam2: 0 442 | ps4ApplicationParam3: 0 443 | ps4ApplicationParam4: 0 444 | ps4DownloadDataSize: 0 445 | ps4GarlicHeapSize: 2048 446 | ps4ProGarlicHeapSize: 2560 447 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 448 | ps4pnSessions: 1 449 | ps4pnPresence: 1 450 | ps4pnFriends: 1 451 | ps4pnGameCustomData: 1 452 | playerPrefsSupport: 0 453 | enableApplicationExit: 0 454 | restrictedAudioUsageRights: 0 455 | ps4UseResolutionFallback: 0 456 | ps4ReprojectionSupport: 0 457 | ps4UseAudio3dBackend: 0 458 | ps4SocialScreenEnabled: 0 459 | ps4ScriptOptimizationLevel: 2 460 | ps4Audio3dVirtualSpeakerCount: 14 461 | ps4attribCpuUsage: 0 462 | ps4PatchPkgPath: 463 | ps4PatchLatestPkgPath: 464 | ps4PatchChangeinfoPath: 465 | ps4PatchDayOne: 0 466 | ps4attribUserManagement: 0 467 | ps4attribMoveSupport: 0 468 | ps4attrib3DSupport: 0 469 | ps4attribShareSupport: 0 470 | ps4attribExclusiveVR: 0 471 | ps4disableAutoHideSplash: 0 472 | ps4videoRecordingFeaturesUsed: 0 473 | ps4contentSearchFeaturesUsed: 0 474 | ps4attribEyeToEyeDistanceSettingVR: 0 475 | ps4IncludedModules: [] 476 | monoEnv: 477 | psp2Splashimage: {fileID: 0} 478 | psp2NPTrophyPackPath: 479 | psp2NPSupportGBMorGJP: 0 480 | psp2NPAgeRating: 12 481 | psp2NPTitleDatPath: 482 | psp2NPCommsID: 483 | psp2NPCommunicationsID: 484 | psp2NPCommsPassphrase: 485 | psp2NPCommsSig: 486 | psp2ParamSfxPath: 487 | psp2ManualPath: 488 | psp2LiveAreaGatePath: 489 | psp2LiveAreaBackroundPath: 490 | psp2LiveAreaPath: 491 | psp2LiveAreaTrialPath: 492 | psp2PatchChangeInfoPath: 493 | psp2PatchOriginalPackage: 494 | psp2PackagePassword: F69AzBlax3CF3EDNhm3soLBPh71Yexui 495 | psp2KeystoneFile: 496 | psp2MemoryExpansionMode: 0 497 | psp2DRMType: 0 498 | psp2StorageType: 0 499 | psp2MediaCapacity: 0 500 | psp2DLCConfigPath: 501 | psp2ThumbnailPath: 502 | psp2BackgroundPath: 503 | psp2SoundPath: 504 | psp2TrophyCommId: 505 | psp2TrophyPackagePath: 506 | psp2PackagedResourcesPath: 507 | psp2SaveDataQuota: 10240 508 | psp2ParentalLevel: 1 509 | psp2ShortTitle: Not Set 510 | psp2ContentID: IV0000-ABCD12345_00-0123456789ABCDEF 511 | psp2Category: 0 512 | psp2MasterVersion: 01.00 513 | psp2AppVersion: 01.00 514 | psp2TVBootMode: 0 515 | psp2EnterButtonAssignment: 2 516 | psp2TVDisableEmu: 0 517 | psp2AllowTwitterDialog: 1 518 | psp2Upgradable: 0 519 | psp2HealthWarning: 0 520 | psp2UseLibLocation: 0 521 | psp2InfoBarOnStartup: 0 522 | psp2InfoBarColor: 0 523 | psp2ScriptOptimizationLevel: 2 524 | splashScreenBackgroundSourceLandscape: {fileID: 0} 525 | splashScreenBackgroundSourcePortrait: {fileID: 0} 526 | spritePackerPolicy: 527 | webGLMemorySize: 256 528 | webGLExceptionSupport: 1 529 | webGLNameFilesAsHashes: 0 530 | webGLDataCaching: 1 531 | webGLDebugSymbols: 0 532 | webGLEmscriptenArgs: 533 | webGLModulesDirectory: 534 | webGLTemplate: APPLICATION:Default 535 | webGLAnalyzeBuildSize: 0 536 | webGLUseEmbeddedResources: 0 537 | webGLCompressionFormat: 1 538 | webGLLinkerTarget: 1 539 | scriptingDefineSymbols: {} 540 | platformArchitecture: {} 541 | scriptingBackend: {} 542 | il2cppCompilerConfiguration: {} 543 | incrementalIl2cppBuild: {} 544 | allowUnsafeCode: 0 545 | additionalIl2CppArgs: 546 | scriptingRuntimeVersion: 0 547 | apiCompatibilityLevelPerPlatform: {} 548 | m_RenderingPath: 1 549 | m_MobileRenderingPath: 1 550 | metroPackageName: EventSystem 551 | metroPackageVersion: 552 | metroCertificatePath: 553 | metroCertificatePassword: 554 | metroCertificateSubject: 555 | metroCertificateIssuer: 556 | metroCertificateNotAfter: 0000000000000000 557 | metroApplicationDescription: EventSystem 558 | wsaImages: {} 559 | metroTileShortName: 560 | metroTileShowName: 0 561 | metroMediumTileShowName: 0 562 | metroLargeTileShowName: 0 563 | metroWideTileShowName: 0 564 | metroDefaultTileSize: 1 565 | metroTileForegroundText: 2 566 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 567 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 568 | a: 1} 569 | metroSplashScreenUseBackgroundColor: 0 570 | platformCapabilities: {} 571 | metroFTAName: 572 | metroFTAFileTypes: [] 573 | metroProtocolName: 574 | metroCompilationOverrides: 1 575 | n3dsUseExtSaveData: 0 576 | n3dsCompressStaticMem: 1 577 | n3dsExtSaveDataNumber: 0x12345 578 | n3dsStackSize: 131072 579 | n3dsTargetPlatform: 2 580 | n3dsRegion: 7 581 | n3dsMediaSize: 0 582 | n3dsLogoStyle: 3 583 | n3dsTitle: GameName 584 | n3dsProductCode: 585 | n3dsApplicationId: 0xFF3FF 586 | XboxOneProductId: 587 | XboxOneUpdateKey: 588 | XboxOneSandboxId: 589 | XboxOneContentId: 590 | XboxOneTitleId: 591 | XboxOneSCId: 592 | XboxOneGameOsOverridePath: 593 | XboxOnePackagingOverridePath: 594 | XboxOneAppManifestOverridePath: 595 | XboxOneVersion: 1.0.0.0 596 | XboxOnePackageEncryption: 0 597 | XboxOnePackageUpdateGranularity: 2 598 | XboxOneDescription: 599 | XboxOneLanguage: 600 | - enus 601 | XboxOneCapability: [] 602 | XboxOneGameRating: {} 603 | XboxOneIsContentPackage: 0 604 | XboxOneEnableGPUVariability: 1 605 | XboxOneSockets: {} 606 | XboxOneSplashScreen: {fileID: 0} 607 | XboxOneAllowedProductIds: [] 608 | XboxOnePersistentLocalStorageSize: 0 609 | XboxOneXTitleMemory: 8 610 | xboxOneScriptCompiler: 0 611 | vrEditorSettings: 612 | daydream: 613 | daydreamIconForeground: {fileID: 0} 614 | daydreamIconBackground: {fileID: 0} 615 | cloudServicesEnabled: {} 616 | facebookSdkVersion: 7.9.4 617 | apiCompatibilityLevel: 2 618 | cloudProjectId: 619 | projectName: 620 | organizationId: 621 | cloudEnabled: 0 622 | enableNativePlatformBackendsForNewInputSystem: 0 623 | disableOldInputManagerSupport: 0 624 | --------------------------------------------------------------------------------