├── .gitignore ├── Assets ├── HumanFramework.meta ├── HumanFramework │ ├── Framework.meta │ ├── Framework │ │ ├── Event.meta │ │ ├── Event │ │ │ ├── Dispatcher.cs │ │ │ ├── Dispatcher.cs.meta │ │ │ ├── Interfaces.meta │ │ │ ├── Interfaces │ │ │ │ ├── IDispatchable.cs │ │ │ │ ├── IDispatchable.cs.meta │ │ │ │ ├── IDispatcher.cs │ │ │ │ ├── IDispatcher.cs.meta │ │ │ │ ├── ISignal.cs │ │ │ │ ├── ISignal.cs.meta │ │ │ │ ├── ISignalContainer.cs │ │ │ │ └── ISignalContainer.cs.meta │ │ │ ├── SignalContainer.cs │ │ │ └── SignalContainer.cs.meta │ │ ├── HumanFramework.asmdef │ │ ├── HumanFramework.asmdef.meta │ │ ├── HumanFramework.cs │ │ ├── HumanFramework.cs.meta │ │ ├── IOC.meta │ │ ├── IOC │ │ │ ├── G_InjectionContainer.cs │ │ │ ├── G_InjectionContainer.cs.meta │ │ │ ├── InjectInstanceAttribute.cs │ │ │ ├── InjectInstanceAttribute.cs.meta │ │ │ ├── InjectionContainer.cs │ │ │ └── InjectionContainer.cs.meta │ │ ├── ObjectPool.meta │ │ └── ObjectPool │ │ │ ├── BasePoolObj.cs │ │ │ ├── BasePoolObj.cs.meta │ │ │ ├── Interfaces.meta │ │ │ ├── Interfaces │ │ │ ├── IObjectPool.cs │ │ │ ├── IObjectPool.cs.meta │ │ │ ├── IObjectPoolManager.cs │ │ │ ├── IObjectPoolManager.cs.meta │ │ │ ├── IPoolable.cs │ │ │ └── IPoolable.cs.meta │ │ │ ├── ObjectPool.cs │ │ │ ├── ObjectPool.cs.meta │ │ │ ├── ObjectPoolManager.cs │ │ │ ├── ObjectPoolManager.cs.meta │ │ │ ├── Pool.cs │ │ │ └── Pool.cs.meta │ ├── Samples.meta │ └── Samples │ │ ├── EventTest.meta │ │ ├── EventTest │ │ ├── TestEvent.cs │ │ ├── TestEvent.cs.meta │ │ ├── TestEvent.unity │ │ └── TestEvent.unity.meta │ │ ├── IOCTest.meta │ │ ├── IOCTest │ │ ├── IOCTest.cs │ │ ├── IOCTest.cs.meta │ │ ├── IOCTest.unity │ │ ├── IOCTest.unity.meta │ │ ├── PoolPrefab.prefab │ │ ├── PoolPrefab.prefab.meta │ │ ├── TestPoolPrefab.cs │ │ ├── TestPoolPrefab.cs.meta │ │ ├── TestRegister.cs │ │ └── TestRegister.cs.meta │ │ ├── ObjPoolTest.meta │ │ └── ObjPoolTest │ │ ├── Cube.prefab │ │ ├── Cube.prefab.meta │ │ ├── ObjPoolTest.cs │ │ ├── ObjPoolTest.cs.meta │ │ ├── ObjPoolTest.unity │ │ ├── ObjPoolTest.unity.meta │ │ ├── PoolCube.cs │ │ └── PoolCube.cs.meta ├── Tests.meta └── Tests │ ├── TestEventSystem.cs │ ├── TestEventSystem.cs.meta │ ├── Tests.asmdef │ └── Tests.asmdef.meta ├── DocImg ├── IoC.png ├── ObjPool.png └── SignalContainer.png ├── Packages └── manifest.json ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset ├── UPRSettings.asset ├── UnityConnectSettings.asset └── VFXManager.asset └── readme.md /.gitignore: -------------------------------------------------------------------------------- 1 | [Ll]ibrary/ 2 | [Tt]emp/ 3 | [Oo]bj/ 4 | [Bb]uild/ 5 | [Bb]uilds/ 6 | [Ll]ogs/ 7 | 8 | # Uncomment this line if you wish to ignore the asset store tools plugin 9 | # [Aa]ssets/AssetStoreTools* 10 | 11 | # Visual Studio cache directory 12 | .vs/ 13 | 14 | # Gradle cache directory 15 | .gradle/ 16 | 17 | # Autogenerated VS/MD/Consulo solution and project files 18 | ExportedObj/ 19 | .consulo/ 20 | *.csproj 21 | *.unityproj 22 | *.sln 23 | *.suo 24 | *.tmp 25 | *.user 26 | *.userprefs 27 | *.pidb 28 | *.booproj 29 | *.svd 30 | *.pdb 31 | *.mdb 32 | *.opendb 33 | *.VC.db 34 | 35 | # Unity3D generated meta files 36 | *.pidb.meta 37 | *.pdb.meta 38 | *.mdb.meta 39 | 40 | # Unity3D generated file on crash reports 41 | sysinfo.txt 42 | 43 | # Builds 44 | *.apk 45 | *.unitypackage 46 | 47 | # Crashlytics generated file 48 | crashlytics-build.properties 49 | 50 | Assets/StreamingAssets/GameData.json 51 | Assets/StreamingAssets/GameData.json.meta 52 | -------------------------------------------------------------------------------- /Assets/HumanFramework.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 04823a3f0685df4498a5ae2c93b6c4da 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d05e776563779f14ea0ecc08af63a19d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/Event.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9d6b4ca2eac2ff94ea573f39386ef8df 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/Event/Dispatcher.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace HumanFramework.Event 8 | { 9 | public class Dispatcher : IDispatcher where T : ISignal 10 | { 11 | 12 | private Action mSubscribedMethods = obj => { }; 13 | 14 | public void AddListener(Action method) 15 | { 16 | mSubscribedMethods += method; 17 | } 18 | 19 | public void RemoveListener(Action method) 20 | { 21 | mSubscribedMethods -= method; 22 | } 23 | 24 | public void DispathchSignal(T signal) 25 | { 26 | mSubscribedMethods.Invoke(signal); 27 | } 28 | 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/Event/Dispatcher.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ae8265c491f68b4fbdaff94c53118d8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/Event/Interfaces.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4f1248e56e42a084b968ef443ba5817f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/Event/Interfaces/IDispatchable.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using UnityEngine; 5 | 6 | namespace HumanFramework 7 | { 8 | public interface IDispatchble 9 | { 10 | } 11 | } -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/Event/Interfaces/IDispatchable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ad5c3f35664692241b0560312a06613a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/Event/Interfaces/IDispatcher.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using UnityEngine; 5 | 6 | namespace HumanFramework 7 | { 8 | public interface IDispatcher : IDispatchble where T : ISignal 9 | { 10 | void AddListener(Action method); 11 | void RemoveListener(Action method); 12 | void DispathchSignal(T signal); 13 | } 14 | } -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/Event/Interfaces/IDispatcher.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6f63e5b381b582b409a39867e4821901 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/Event/Interfaces/ISignal.cs: -------------------------------------------------------------------------------- 1 |  2 | namespace HumanFramework 3 | { 4 | public interface ISignal 5 | { 6 | 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/Event/Interfaces/ISignal.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 91dc171dd6eda924ab2cfe0ae2069a18 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/Event/Interfaces/ISignalContainer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace HumanFramework 8 | { 9 | public interface ISignalContainer 10 | { 11 | void DispatchSignal(T signal) where T : ISignal; 12 | 13 | void AddListener(Action method) where T : ISignal; 14 | 15 | void RemoveListener(Action method) where T : ISignal; 16 | 17 | void Clear(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/Event/Interfaces/ISignalContainer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9272437f1f58e924c8b57d18e9a1bef3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/Event/SignalContainer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace HumanFramework.Event 8 | { 9 | public class SignalContainer:ISignalContainer 10 | { 11 | private Dictionary mDispatcherDict = new Dictionary(); 12 | 13 | public void AddListener(Action method) where T : ISignal 14 | { 15 | var signalType = typeof(T); 16 | if (mDispatcherDict.ContainsKey(signalType)) 17 | { 18 | var dispatcher = mDispatcherDict[signalType] as Dispatcher; 19 | dispatcher.AddListener(method); 20 | } 21 | else 22 | { 23 | var dispatcher = new Dispatcher(); 24 | dispatcher.AddListener(method); 25 | mDispatcherDict.Add(signalType, dispatcher); 26 | } 27 | } 28 | 29 | public void RemoveListener(Action method) where T : ISignal 30 | { 31 | if (mDispatcherDict.ContainsKey(typeof(T))) 32 | { 33 | var dispatcher = mDispatcherDict[typeof(T)] as Dispatcher; 34 | dispatcher.RemoveListener(method); 35 | } 36 | } 37 | 38 | public void DispatchSignal(T signal) where T : ISignal 39 | { 40 | if (mDispatcherDict.ContainsKey(typeof(T))) 41 | { 42 | var dispatcher = mDispatcherDict[typeof(T)] as Dispatcher; 43 | dispatcher.DispathchSignal(signal); 44 | } 45 | } 46 | 47 | public void Clear() 48 | { 49 | mDispatcherDict.Clear(); 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/Event/SignalContainer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bc599a4714e9f02448441f2357503e74 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/HumanFramework.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "HumanFramework", 3 | "references": [], 4 | "optionalUnityReferences": [], 5 | "includePlatforms": [], 6 | "excludePlatforms": [], 7 | "allowUnsafeCode": false, 8 | "overrideReferences": false, 9 | "precompiledReferences": [], 10 | "autoReferenced": true, 11 | "defineConstraints": [] 12 | } -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/HumanFramework.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 394823d9f6e96874f996d8c39979b474 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/HumanFramework.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using HumanFramework.Event; 7 | using HumanFramework.IOC; 8 | 9 | namespace HumanFramework.Framework 10 | { 11 | public class GlobalModule 12 | { 13 | public static ISignalContainer GlobalSignalContainer = new SignalContainer(); 14 | public static IInjectionContainer GlobalInjectionContainer = new InjectionContainer(); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/HumanFramework.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d7d45017c4099714a9bc58978e23f209 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/IOC.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a3e4674adbb90d54c8b4b9a85c0e33a2 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/IOC/G_InjectionContainer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using HumanFramework.IOC; 7 | 8 | namespace HumanFramework 9 | { 10 | public class G_InjectionContainer 11 | { 12 | private static IInjectionContainer mContainer = new InjectionContainer(); 13 | 14 | /// 15 | /// 为对象注入 16 | /// 17 | /// 被注入的对象 18 | public static void Inject(object obj) 19 | { 20 | mContainer.Inject(obj); 21 | } 22 | 23 | /// 24 | /// 注册某一类的单例 25 | /// 26 | /// 实例类型 27 | /// 注册实例 28 | /// 实例ID 29 | public static void RegisterInstance(T instance, string nameID = null) 30 | { 31 | mContainer.RegisterInstance(instance, nameID); 32 | } 33 | 34 | /// 35 | /// 取消注册某一类的单例 36 | /// 37 | /// 实例类型 38 | /// 实例ID 39 | public static void UnRegisterInstance(string nameID = null) 40 | { 41 | mContainer.UnRegisterInstance(nameID); 42 | } 43 | 44 | /// 45 | /// 注册某一类型的构造方式 46 | /// 47 | /// 类型的基类,通常为接口或虚基类 48 | /// 类型的具体实现类 49 | /// 实例构造ID 50 | /// 构造函数参数 51 | public static void RegisterConstruction(string nameID = null, params object[] args) where TChild : TBase 52 | { 53 | mContainer.RegisterConstruction(nameID, args); 54 | } 55 | 56 | /// 57 | /// 主动获取注入池中的单例对象 58 | /// 59 | /// 60 | /// 61 | /// 62 | public static T ResolveInstance(string nameID = null) 63 | { 64 | return mContainer.ResolveInstance(nameID); 65 | } 66 | 67 | /// 68 | /// 主动获取注入池中的构造对象 69 | /// 70 | /// 对象基类 71 | /// 对象ID 72 | /// 73 | public static TBase ResolveConstruction(string nameID = null) 74 | { 75 | return mContainer.ResolveInstance(nameID); 76 | } 77 | 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/IOC/G_InjectionContainer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b3979d125633d744a91a182f3333c0ab 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/IOC/InjectInstanceAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace HumanFramework 4 | { 5 | public abstract class InjectAttribute : Attribute 6 | { 7 | } 8 | 9 | [System.AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] 10 | public class InjectInstanceAttribute : InjectAttribute 11 | { 12 | public string NameID; 13 | 14 | public InjectInstanceAttribute() 15 | { 16 | NameID = null; 17 | } 18 | 19 | public InjectInstanceAttribute(string nameID) 20 | { 21 | NameID = nameID; 22 | } 23 | 24 | } 25 | 26 | [System.AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] 27 | public class InjectConstructionAttribute : InjectAttribute 28 | { 29 | public string NameID; 30 | public InjectConstructionAttribute(string nameID = null) 31 | { 32 | NameID = nameID; 33 | } 34 | } 35 | 36 | } -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/IOC/InjectInstanceAttribute.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2f29e1a27e00d654e94057f88d3f8ba4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/IOC/InjectionContainer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Reflection; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace HumanFramework.IOC 9 | { 10 | 11 | public interface IInjectionContainer 12 | { 13 | /// 14 | /// 注册某一类的单例 15 | /// 16 | /// 实例类型 17 | /// 注册实例 18 | /// 实例ID 19 | void RegisterInstance(T instance, string nameID = null); 20 | 21 | /// 22 | /// 取消注册某一类的单例 23 | /// 24 | /// 实例类型 25 | /// 实例ID 26 | void UnRegisterInstance(string nameID = null); 27 | 28 | /// 29 | /// 注册某一类型的构造方式 30 | /// 31 | /// 类型的基类,通常为接口或虚基类 32 | /// 类型的具体实现类 33 | /// 实例构造ID 34 | /// 构造函数参数 35 | void RegisterConstruction(string nameID = null, params object[] args) where TChild : TBase; 36 | 37 | /// 38 | /// 为对象注入 39 | /// 40 | /// 被注入的对象 41 | void Inject(object obj); 42 | 43 | /// 44 | /// 主动获取注入池中的单例对象 45 | /// 46 | /// 47 | /// 48 | /// 49 | T ResolveInstance(string nameID = null); 50 | 51 | /// 52 | /// 主动获取注入池中的构造对象 53 | /// 54 | /// 对象基类 55 | /// 对象ID 56 | /// 57 | TBase ResolveConstruction(string nameID = null); 58 | } 59 | 60 | public class InjectionContainer : IInjectionContainer 61 | { 62 | private TypeInstanceCollection mTypeInstanceDict; 63 | public TypeInstanceCollection TypeInstanceDict 64 | { 65 | get 66 | { 67 | return mTypeInstanceDict ?? (mTypeInstanceDict = new TypeInstanceCollection()); 68 | } 69 | set => mTypeInstanceDict = value; 70 | } 71 | 72 | private TypeConstructionCollection mTypeConstructionDict; 73 | public TypeConstructionCollection TypeConstructionDict { get => mTypeConstructionDict ?? (mTypeConstructionDict = new TypeConstructionCollection()); set => mTypeConstructionDict = value; } 74 | 75 | public void Inject(object obj) 76 | { 77 | if (obj == null) return; 78 | 79 | //注入fields部分 80 | var fieldMembers = obj.GetType() 81 | .GetFields(BindingFlags.Public | BindingFlags.Instance | BindingFlags.NonPublic); 82 | foreach (var memberInfo in fieldMembers) 83 | { 84 | var memberAttr = memberInfo.GetCustomAttributes(typeof(InjectAttribute), true).FirstOrDefault(); 85 | if (memberAttr != null) 86 | { 87 | if (memberAttr.GetType() == typeof(InjectInstanceAttribute)) 88 | { 89 | var field = memberInfo as FieldInfo; 90 | field.SetValue(obj, ResolveInstance(field.FieldType, (memberAttr as InjectInstanceAttribute).NameID)); 91 | } 92 | else if (memberAttr.GetType() == typeof(InjectConstructionAttribute)) 93 | { 94 | var field = memberInfo as FieldInfo; 95 | field.SetValue(obj, ResolveConstruction(field.FieldType, (memberAttr as InjectConstructionAttribute).NameID)); 96 | } 97 | } 98 | } 99 | 100 | //注入properties部分 101 | var propertyMembers = obj.GetType() 102 | .GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.NonPublic); 103 | foreach (var memberInfo in propertyMembers) 104 | { 105 | var memberAttr = memberInfo.GetCustomAttributes(typeof(InjectAttribute), true).FirstOrDefault(); 106 | if (memberAttr != null) 107 | { 108 | if (memberAttr.GetType() == typeof(InjectInstanceAttribute)) 109 | { 110 | var propertyInfo = memberInfo as PropertyInfo; 111 | propertyInfo.SetValue(obj, ResolveInstance(propertyInfo.PropertyType, (memberAttr as InjectInstanceAttribute).NameID)); 112 | } 113 | else if (memberAttr.GetType() == typeof(InjectConstructionAttribute)) 114 | { 115 | var propertyInfo = memberInfo as PropertyInfo; 116 | propertyInfo.SetValue(obj, ResolveConstruction(propertyInfo.PropertyType, (memberAttr as InjectConstructionAttribute).NameID)); 117 | } 118 | } 119 | } 120 | 121 | } 122 | 123 | public void RegisterInstance(T instance, string nameID = null) 124 | { 125 | TypeInstanceDict[typeof(T), nameID] = instance; 126 | } 127 | 128 | public void UnRegisterInstance(string nameID = null) 129 | { 130 | TypeInstanceDict.Remove(new Tuple(typeof(T), nameID)); 131 | } 132 | 133 | private object ResolveInstance(Type instanceType, string nameID = null) 134 | { 135 | return TypeInstanceDict[instanceType, nameID]; 136 | } 137 | 138 | public T ResolveInstance(string nameID = null) 139 | { 140 | return (T)ResolveInstance(typeof(T), nameID); 141 | } 142 | 143 | public void RegisterConstruction(string nameID = null, params object[] args) where TChild : TBase 144 | { 145 | TypeConstructionDict[typeof(TBase), nameID] = new Tuple(typeof(TChild), args); 146 | } 147 | 148 | public TBase ResolveConstruction(string nameID = null) 149 | { 150 | return (TBase)ResolveConstruction(typeof(TBase), nameID); 151 | } 152 | 153 | private object ResolveConstruction(Type TBase, string nameID = null) 154 | { 155 | Tuple constructInfo; 156 | if (TypeConstructionDict.TryGetValue(new Tuple(TBase, nameID), out constructInfo)) 157 | { 158 | return CreateInstance(constructInfo.Item1, constructInfo.Item2); 159 | } 160 | return default; 161 | } 162 | 163 | object CreateInstance(Type objType,object[] objArgs) 164 | { 165 | return Activator.CreateInstance(objType, objArgs); 166 | } 167 | 168 | 169 | } 170 | 171 | // http://stackoverflow.com/questions/1171812/multi-key-dictionary-in-c 172 | public class Tuple //FUCKING Unity: struct is not supported in Mono 173 | { 174 | public readonly T1 Item1; 175 | public readonly T2 Item2; 176 | 177 | public Tuple(T1 item1, T2 item2) 178 | { 179 | Item1 = item1; 180 | Item2 = item2; 181 | } 182 | 183 | public override bool Equals(Object obj) 184 | { 185 | Tuple p = obj as Tuple; 186 | if (obj == null) return false; 187 | 188 | if (Item1 == null) 189 | { 190 | if (p.Item1 != null) return false; 191 | } 192 | else 193 | { 194 | if (p.Item1 == null || !Item1.Equals(p.Item1)) return false; 195 | } 196 | 197 | if (Item2 == null) 198 | { 199 | if (p.Item2 != null) return false; 200 | } 201 | else 202 | { 203 | if (p.Item2 == null || !Item2.Equals(p.Item2)) return false; 204 | } 205 | 206 | return true; 207 | } 208 | 209 | public override int GetHashCode() 210 | { 211 | int hash = 0; 212 | if (Item1 != null) 213 | hash ^= Item1.GetHashCode(); 214 | if (Item2 != null) 215 | hash ^= Item2.GetHashCode(); 216 | return hash; 217 | } 218 | } 219 | 220 | public class TypeInstanceCollection : Dictionary, object> 221 | { 222 | 223 | public object this[Type from, string name = null] 224 | { 225 | get 226 | { 227 | Tuple key = new Tuple(from, name); 228 | object mapping = null; 229 | if (this.TryGetValue(key, out mapping)) 230 | { 231 | return mapping; 232 | } 233 | 234 | return null; 235 | } 236 | set 237 | { 238 | Tuple key = new Tuple(from, name); 239 | this[key] = value; 240 | } 241 | } 242 | } 243 | 244 | public class TypeConstructionCollection : Dictionary, Tuple> 245 | { 246 | public Tuple this[Type from, string name = null] 247 | { 248 | get 249 | { 250 | Tuple key = new Tuple(from, name); 251 | Tuple mapping = null; 252 | if (this.TryGetValue(key, out mapping)) 253 | { 254 | return mapping; 255 | } 256 | 257 | return null; 258 | } 259 | set 260 | { 261 | Tuple key = new Tuple(from, name); 262 | this[key] = value; 263 | } 264 | } 265 | } 266 | } 267 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/IOC/InjectionContainer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f8e57d28e8ead384485228e9ed16cb2b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/ObjectPool.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 04a74058ebf73984688c93a25fa40d62 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/ObjectPool/BasePoolObj.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace HumanFramework.ObjectPool 9 | { 10 | public class BasePoolObj : MonoBehaviour, IPoolable 11 | { 12 | public Func RecycleToPool { get ; set ; } 13 | public bool Active { get ; set ; } 14 | 15 | public virtual void OnSpawn() 16 | { 17 | Active = true; 18 | gameObject.SetActive(true); 19 | } 20 | 21 | public virtual void OnRecycle() 22 | { 23 | Active = false; 24 | gameObject.SetActive(false); 25 | } 26 | 27 | public void Recycle() 28 | { 29 | RecycleToPool(this.gameObject); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/ObjectPool/BasePoolObj.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 182dab41990bb4a468d633e3767ab251 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/ObjectPool/Interfaces.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6b903fb9cb6cdad47a0f223c567cfe0c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/ObjectPool/Interfaces/IObjectPool.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using UnityEngine; 7 | 8 | namespace HumanFramework.ObjectPool 9 | { 10 | public interface IObjectPool 11 | { 12 | Stack PoolObjs { get; set; } 13 | GameObject Prefab { get; set; } 14 | 15 | GameObject Spawn(); 16 | void Register(GameObject prefab); 17 | bool Recycle(GameObject poolObj); 18 | void Clear(); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/ObjectPool/Interfaces/IObjectPool.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f26de919c84c2bb4c8d280afda1b6f6e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/ObjectPool/Interfaces/IObjectPoolManager.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace HumanFramework.ObjectPool 9 | { 10 | interface IObjectPoolManager 11 | { 12 | GameObject Spawn(GameObject prefab); 13 | bool Recycle(GameObject poolObj); 14 | bool Recycle(BasePoolObj poolObj); 15 | void Clear(); 16 | } 17 | } -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/ObjectPool/Interfaces/IObjectPoolManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 84e3b4cbb04a68b4587899892d8cc745 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/ObjectPool/Interfaces/IPoolable.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace HumanFramework.ObjectPool 5 | { 6 | public interface IPoolable 7 | { 8 | Func RecycleToPool { get; set; } 9 | 10 | bool Active { get; set; } 11 | 12 | void OnSpawn(); 13 | 14 | void OnRecycle(); 15 | 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/ObjectPool/Interfaces/IPoolable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0a125e5428704f54cab3eaffdcf38f5d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/ObjectPool/ObjectPool.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using UnityEngine; 7 | 8 | namespace HumanFramework.ObjectPool 9 | { 10 | class ObjectPool : IObjectPool 11 | { 12 | public Stack PoolObjs { get; set; } 13 | public GameObject Prefab { get; set; } 14 | 15 | public ObjectPool(GameObject prefab) 16 | { 17 | PoolObjs = new Stack(); 18 | Register(prefab); 19 | } 20 | 21 | public bool Recycle(GameObject poolObj) 22 | { 23 | if (poolObj == null) { return false; } 24 | var poolScript = poolObj.GetComponent(); 25 | if (poolScript == null) { return false; } 26 | if (!poolScript.Active) { return false; } 27 | PoolObjs.Push(poolObj); 28 | poolScript.OnRecycle(); 29 | return true; 30 | } 31 | 32 | public void Register(GameObject prefab) 33 | { 34 | Prefab=prefab; 35 | } 36 | 37 | public GameObject Spawn() 38 | { 39 | GameObject requiredObj; 40 | IPoolable poolScript; 41 | if (PoolObjs.Count == 0) 42 | { 43 | requiredObj = GameObject.Instantiate(Prefab); 44 | poolScript = requiredObj.GetComponent(); 45 | if (poolScript == null) 46 | { 47 | poolScript = requiredObj.AddComponent(); 48 | poolScript.RecycleToPool += Recycle; 49 | } 50 | } 51 | else 52 | { 53 | requiredObj = PoolObjs.Pop(); 54 | poolScript = requiredObj.GetComponent(); 55 | } 56 | poolScript.OnSpawn(); 57 | return requiredObj; 58 | } 59 | 60 | public void Clear() 61 | { 62 | while (PoolObjs.Count > 0) 63 | { 64 | GameObject.Destroy(PoolObjs.Pop()); 65 | } 66 | } 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/ObjectPool/ObjectPool.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cc81e19cc036c6a4c8b3150525fd312b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/ObjectPool/ObjectPoolManager.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using UnityEngine; 7 | 8 | namespace HumanFramework.ObjectPool 9 | { 10 | public class ObjectPoolManager : IObjectPoolManager 11 | { 12 | public Dictionary PoolDict = new Dictionary(); 13 | 14 | public bool Recycle(GameObject poolObj) 15 | { 16 | if (poolObj == null) return false; 17 | var poolScript = poolObj.GetComponent(); 18 | if (poolScript != null) 19 | { 20 | poolScript.RecycleToPool(poolObj); 21 | return true; 22 | } 23 | else 24 | { 25 | return false; 26 | } 27 | } 28 | 29 | public bool Recycle(BasePoolObj poolObj) 30 | { 31 | if (poolObj == null) return false; 32 | poolObj.Recycle(); 33 | return true; 34 | } 35 | 36 | public GameObject Spawn(GameObject prefab) 37 | { 38 | var poolID = GetPoolID(prefab); 39 | if (!PoolDict.ContainsKey(poolID)) 40 | { 41 | PoolDict.Add(poolID, new ObjectPool(prefab)); 42 | } 43 | 44 | return PoolDict[poolID].Spawn(); 45 | } 46 | 47 | private int GetPoolID(GameObject prefab) 48 | { 49 | return prefab.GetInstanceID(); 50 | } 51 | 52 | public void Clear() 53 | { 54 | foreach(var pool in PoolDict.Values) 55 | { 56 | pool.Clear(); 57 | } 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/ObjectPool/ObjectPoolManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f183a12560fd38745abc127ff698bdea 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/ObjectPool/Pool.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | using HumanFramework.ObjectPool; 8 | 9 | namespace HumanFramework 10 | { 11 | public class Pool 12 | { 13 | private static IObjectPoolManager mPoolManager = new ObjectPoolManager(); 14 | 15 | public static GameObject Spawn(GameObject prefab) 16 | { 17 | return mPoolManager.Spawn(prefab); 18 | } 19 | 20 | public static bool Recycle(GameObject poolObj) 21 | { 22 | return mPoolManager.Recycle(poolObj); 23 | } 24 | 25 | public static bool Recycle(BasePoolObj poolObj) 26 | { 27 | return mPoolManager.Recycle(poolObj); 28 | } 29 | 30 | public static void Clear() 31 | { 32 | mPoolManager.Clear(); 33 | } 34 | 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Framework/ObjectPool/Pool.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ddc8ada582b279f48918ad22c328a700 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Samples.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 77caa642889368342b89ef17a079046b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Samples/EventTest.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 41b7aa6110289164ebe301a2034c9c4e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Samples/EventTest/TestEvent.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using HumanFramework; 5 | using HumanFramework.Framework; 6 | 7 | public class TestEvent : MonoBehaviour 8 | { 9 | 10 | public ISignalContainer LocalSignalContainer = GlobalModule.GlobalSignalContainer; 11 | 12 | // Start is called before the first frame update 13 | void Start() 14 | { 15 | 16 | } 17 | 18 | // Update is called once per frame 19 | void Update() 20 | { 21 | if (Input.GetKeyDown(KeyCode.Alpha1)) 22 | { 23 | LocalSignalContainer.AddListener(GetSignalA); 24 | LocalSignalContainer.AddListener(GetSignalB); 25 | } 26 | if (Input.GetKeyDown(KeyCode.Alpha2)) 27 | { 28 | LocalSignalContainer.RemoveListener(GetSignalA); 29 | LocalSignalContainer.RemoveListener(GetSignalB); 30 | 31 | //error 32 | //LocalSignalContainer.RemoveListener(GetSignalC); 33 | } 34 | if (Input.GetKeyDown(KeyCode.A)) 35 | { 36 | LocalSignalContainer.DispatchSignal(new SignalA() { msg = "A msg broadcast" }); 37 | } 38 | if (Input.GetKeyDown(KeyCode.B)) 39 | { 40 | LocalSignalContainer.DispatchSignal(new SignalB() { msg = "B msg broadcast" }); 41 | 42 | //error 43 | //LocalSignalContainer.DispatchSignal(new SignalC() { msg = "C msg broadcast" }); 44 | } 45 | } 46 | 47 | void GetSignalA(SignalA signal) 48 | { 49 | Debug.Log(signal.msg); 50 | } 51 | void GetSignalB(SignalB signal) 52 | { 53 | Debug.Log(signal.msg); 54 | } 55 | void GetSignalC(SignalC signal) 56 | { 57 | Debug.Log(signal.msg); 58 | } 59 | } 60 | 61 | public class SignalA : ISignal 62 | { 63 | public string msg; 64 | } 65 | 66 | public class SignalB : ISignal 67 | { 68 | public string msg; 69 | } 70 | 71 | public class SignalC 72 | { 73 | public string msg; 74 | } 75 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Samples/EventTest/TestEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: de7db054661f1644ba855d51f489cd17 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Samples/EventTest/TestEvent.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 &919144973 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: 919144976} 124 | - component: {fileID: 919144975} 125 | - component: {fileID: 919144974} 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 &919144974 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: 919144973} 140 | m_Enabled: 1 141 | --- !u!20 &919144975 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: 919144973} 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 &919144976 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: 919144973} 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 &1040026010 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: 1040026012} 206 | - component: {fileID: 1040026011} 207 | m_Layer: 0 208 | m_Name: GameObject 209 | m_TagString: Untagged 210 | m_Icon: {fileID: 0} 211 | m_NavMeshLayer: 0 212 | m_StaticEditorFlags: 0 213 | m_IsActive: 1 214 | --- !u!114 &1040026011 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: 1040026010} 221 | m_Enabled: 1 222 | m_EditorHideFlags: 0 223 | m_Script: {fileID: 11500000, guid: de7db054661f1644ba855d51f489cd17, type: 3} 224 | m_Name: 225 | m_EditorClassIdentifier: 226 | --- !u!4 &1040026012 227 | Transform: 228 | m_ObjectHideFlags: 0 229 | m_CorrespondingSourceObject: {fileID: 0} 230 | m_PrefabInstance: {fileID: 0} 231 | m_PrefabAsset: {fileID: 0} 232 | m_GameObject: {fileID: 1040026010} 233 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 234 | m_LocalPosition: {x: 0, y: 0, z: 0} 235 | m_LocalScale: {x: 1, y: 1, z: 1} 236 | m_Children: [] 237 | m_Father: {fileID: 0} 238 | m_RootOrder: 2 239 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 240 | --- !u!1 &1349297968 241 | GameObject: 242 | m_ObjectHideFlags: 0 243 | m_CorrespondingSourceObject: {fileID: 0} 244 | m_PrefabInstance: {fileID: 0} 245 | m_PrefabAsset: {fileID: 0} 246 | serializedVersion: 6 247 | m_Component: 248 | - component: {fileID: 1349297970} 249 | - component: {fileID: 1349297969} 250 | m_Layer: 0 251 | m_Name: Directional Light 252 | m_TagString: Untagged 253 | m_Icon: {fileID: 0} 254 | m_NavMeshLayer: 0 255 | m_StaticEditorFlags: 0 256 | m_IsActive: 1 257 | --- !u!108 &1349297969 258 | Light: 259 | m_ObjectHideFlags: 0 260 | m_CorrespondingSourceObject: {fileID: 0} 261 | m_PrefabInstance: {fileID: 0} 262 | m_PrefabAsset: {fileID: 0} 263 | m_GameObject: {fileID: 1349297968} 264 | m_Enabled: 1 265 | serializedVersion: 8 266 | m_Type: 1 267 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 268 | m_Intensity: 1 269 | m_Range: 10 270 | m_SpotAngle: 30 271 | m_CookieSize: 10 272 | m_Shadows: 273 | m_Type: 2 274 | m_Resolution: -1 275 | m_CustomResolution: -1 276 | m_Strength: 1 277 | m_Bias: 0.05 278 | m_NormalBias: 0.4 279 | m_NearPlane: 0.2 280 | m_Cookie: {fileID: 0} 281 | m_DrawHalo: 0 282 | m_Flare: {fileID: 0} 283 | m_RenderMode: 0 284 | m_CullingMask: 285 | serializedVersion: 2 286 | m_Bits: 4294967295 287 | m_Lightmapping: 4 288 | m_LightShadowCasterMode: 0 289 | m_AreaSize: {x: 1, y: 1} 290 | m_BounceIntensity: 1 291 | m_ColorTemperature: 6570 292 | m_UseColorTemperature: 0 293 | m_ShadowRadius: 0 294 | m_ShadowAngle: 0 295 | --- !u!4 &1349297970 296 | Transform: 297 | m_ObjectHideFlags: 0 298 | m_CorrespondingSourceObject: {fileID: 0} 299 | m_PrefabInstance: {fileID: 0} 300 | m_PrefabAsset: {fileID: 0} 301 | m_GameObject: {fileID: 1349297968} 302 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 303 | m_LocalPosition: {x: 0, y: 3, z: 0} 304 | m_LocalScale: {x: 1, y: 1, z: 1} 305 | m_Children: [] 306 | m_Father: {fileID: 0} 307 | m_RootOrder: 1 308 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 309 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Samples/EventTest/TestEvent.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e8aabf7800286804183273bbe30aaa81 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Samples/IOCTest.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5d180b9e1fd4c7046a17c3b5093ed373 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Samples/IOCTest/IOCTest.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using System.Reflection; 4 | using UnityEngine; 5 | using HumanFramework.Event; 6 | using HumanFramework; 7 | 8 | public class IOCTest : MonoBehaviour 9 | { 10 | [InjectInstance("local")] 11 | private ISignalContainer localsignalContainer; 12 | 13 | public GameObject PoolPrefab; 14 | 15 | void Start() 16 | { 17 | //使用全局IoC容器对脚本进行注入 18 | G_InjectionContainer.Inject(this); 19 | //给消息容器添加事件订阅 20 | localsignalContainer.AddListener(OnReceiveSignalA); 21 | } 22 | 23 | private void Update() 24 | { 25 | if (Input.GetKeyDown(KeyCode.A)) 26 | { 27 | localsignalContainer.DispatchSignal(new SignalA { msg = "Test A Success!" }); 28 | } 29 | if (Input.GetKeyDown(KeyCode.R)) 30 | { 31 | Pool.Clear(); 32 | } 33 | if (Input.GetKeyDown(KeyCode.Alpha1)) 34 | { 35 | localsignalContainer.AddListener(OnReceiveSignalA); 36 | } 37 | if (Input.GetKeyDown(KeyCode.Alpha2)) 38 | { 39 | localsignalContainer.RemoveListener(OnReceiveSignalA); 40 | } 41 | } 42 | 43 | void OnReceiveSignalA(SignalA a) 44 | { 45 | Pool.Spawn(PoolPrefab); 46 | } 47 | 48 | } 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Samples/IOCTest/IOCTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 248538925bdf92d4f8fae562a8135552 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Samples/IOCTest/IOCTest.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.44657844, g: 0.49641222, b: 0.57481694, 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 &47123856 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: 47123858} 124 | - component: {fileID: 47123857} 125 | m_Layer: 0 126 | m_Name: Directional Light 127 | m_TagString: Untagged 128 | m_Icon: {fileID: 0} 129 | m_NavMeshLayer: 0 130 | m_StaticEditorFlags: 0 131 | m_IsActive: 1 132 | --- !u!108 &47123857 133 | Light: 134 | m_ObjectHideFlags: 0 135 | m_CorrespondingSourceObject: {fileID: 0} 136 | m_PrefabInstance: {fileID: 0} 137 | m_PrefabAsset: {fileID: 0} 138 | m_GameObject: {fileID: 47123856} 139 | m_Enabled: 1 140 | serializedVersion: 8 141 | m_Type: 1 142 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 143 | m_Intensity: 1 144 | m_Range: 10 145 | m_SpotAngle: 30 146 | m_CookieSize: 10 147 | m_Shadows: 148 | m_Type: 2 149 | m_Resolution: -1 150 | m_CustomResolution: -1 151 | m_Strength: 1 152 | m_Bias: 0.05 153 | m_NormalBias: 0.4 154 | m_NearPlane: 0.2 155 | m_Cookie: {fileID: 0} 156 | m_DrawHalo: 0 157 | m_Flare: {fileID: 0} 158 | m_RenderMode: 0 159 | m_CullingMask: 160 | serializedVersion: 2 161 | m_Bits: 4294967295 162 | m_Lightmapping: 4 163 | m_LightShadowCasterMode: 0 164 | m_AreaSize: {x: 1, y: 1} 165 | m_BounceIntensity: 1 166 | m_ColorTemperature: 6570 167 | m_UseColorTemperature: 0 168 | m_ShadowRadius: 0 169 | m_ShadowAngle: 0 170 | --- !u!4 &47123858 171 | Transform: 172 | m_ObjectHideFlags: 0 173 | m_CorrespondingSourceObject: {fileID: 0} 174 | m_PrefabInstance: {fileID: 0} 175 | m_PrefabAsset: {fileID: 0} 176 | m_GameObject: {fileID: 47123856} 177 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 178 | m_LocalPosition: {x: 0, y: 3, z: 0} 179 | m_LocalScale: {x: 1, y: 1, z: 1} 180 | m_Children: [] 181 | m_Father: {fileID: 0} 182 | m_RootOrder: 1 183 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 184 | --- !u!1 &418401632 185 | GameObject: 186 | m_ObjectHideFlags: 0 187 | m_CorrespondingSourceObject: {fileID: 0} 188 | m_PrefabInstance: {fileID: 0} 189 | m_PrefabAsset: {fileID: 0} 190 | serializedVersion: 6 191 | m_Component: 192 | - component: {fileID: 418401635} 193 | - component: {fileID: 418401634} 194 | - component: {fileID: 418401633} 195 | - component: {fileID: 418401636} 196 | m_Layer: 0 197 | m_Name: Main Camera 198 | m_TagString: MainCamera 199 | m_Icon: {fileID: 0} 200 | m_NavMeshLayer: 0 201 | m_StaticEditorFlags: 0 202 | m_IsActive: 1 203 | --- !u!81 &418401633 204 | AudioListener: 205 | m_ObjectHideFlags: 0 206 | m_CorrespondingSourceObject: {fileID: 0} 207 | m_PrefabInstance: {fileID: 0} 208 | m_PrefabAsset: {fileID: 0} 209 | m_GameObject: {fileID: 418401632} 210 | m_Enabled: 1 211 | --- !u!20 &418401634 212 | Camera: 213 | m_ObjectHideFlags: 0 214 | m_CorrespondingSourceObject: {fileID: 0} 215 | m_PrefabInstance: {fileID: 0} 216 | m_PrefabAsset: {fileID: 0} 217 | m_GameObject: {fileID: 418401632} 218 | m_Enabled: 1 219 | serializedVersion: 2 220 | m_ClearFlags: 1 221 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 222 | m_projectionMatrixMode: 1 223 | m_SensorSize: {x: 36, y: 24} 224 | m_LensShift: {x: 0, y: 0} 225 | m_GateFitMode: 2 226 | m_FocalLength: 50 227 | m_NormalizedViewPortRect: 228 | serializedVersion: 2 229 | x: 0 230 | y: 0 231 | width: 1 232 | height: 1 233 | near clip plane: 0.3 234 | far clip plane: 1000 235 | field of view: 60 236 | orthographic: 0 237 | orthographic size: 5 238 | m_Depth: -1 239 | m_CullingMask: 240 | serializedVersion: 2 241 | m_Bits: 4294967295 242 | m_RenderingPath: -1 243 | m_TargetTexture: {fileID: 0} 244 | m_TargetDisplay: 0 245 | m_TargetEye: 3 246 | m_HDR: 1 247 | m_AllowMSAA: 1 248 | m_AllowDynamicResolution: 0 249 | m_ForceIntoRT: 0 250 | m_OcclusionCulling: 1 251 | m_StereoConvergence: 10 252 | m_StereoSeparation: 0.022 253 | --- !u!4 &418401635 254 | Transform: 255 | m_ObjectHideFlags: 0 256 | m_CorrespondingSourceObject: {fileID: 0} 257 | m_PrefabInstance: {fileID: 0} 258 | m_PrefabAsset: {fileID: 0} 259 | m_GameObject: {fileID: 418401632} 260 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 261 | m_LocalPosition: {x: 0, y: 1, z: -10} 262 | m_LocalScale: {x: 1, y: 1, z: 1} 263 | m_Children: [] 264 | m_Father: {fileID: 0} 265 | m_RootOrder: 0 266 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 267 | --- !u!114 &418401636 268 | MonoBehaviour: 269 | m_ObjectHideFlags: 0 270 | m_CorrespondingSourceObject: {fileID: 0} 271 | m_PrefabInstance: {fileID: 0} 272 | m_PrefabAsset: {fileID: 0} 273 | m_GameObject: {fileID: 418401632} 274 | m_Enabled: 1 275 | m_EditorHideFlags: 0 276 | m_Script: {fileID: 11500000, guid: 248538925bdf92d4f8fae562a8135552, type: 3} 277 | m_Name: 278 | m_EditorClassIdentifier: 279 | PoolPrefab: {fileID: 8444129241782449649, guid: 3efa05b556d3688428ab9ee529c129c7, 280 | type: 3} 281 | --- !u!1 &861342195 282 | GameObject: 283 | m_ObjectHideFlags: 0 284 | m_CorrespondingSourceObject: {fileID: 0} 285 | m_PrefabInstance: {fileID: 0} 286 | m_PrefabAsset: {fileID: 0} 287 | serializedVersion: 6 288 | m_Component: 289 | - component: {fileID: 861342198} 290 | - component: {fileID: 861342197} 291 | - component: {fileID: 861342196} 292 | m_Layer: 0 293 | m_Name: EventSystem 294 | m_TagString: Untagged 295 | m_Icon: {fileID: 0} 296 | m_NavMeshLayer: 0 297 | m_StaticEditorFlags: 0 298 | m_IsActive: 1 299 | --- !u!114 &861342196 300 | MonoBehaviour: 301 | m_ObjectHideFlags: 0 302 | m_CorrespondingSourceObject: {fileID: 0} 303 | m_PrefabInstance: {fileID: 0} 304 | m_PrefabAsset: {fileID: 0} 305 | m_GameObject: {fileID: 861342195} 306 | m_Enabled: 1 307 | m_EditorHideFlags: 0 308 | m_Script: {fileID: 1077351063, guid: f70555f144d8491a825f0804e09c671c, type: 3} 309 | m_Name: 310 | m_EditorClassIdentifier: 311 | m_HorizontalAxis: Horizontal 312 | m_VerticalAxis: Vertical 313 | m_SubmitButton: Submit 314 | m_CancelButton: Cancel 315 | m_InputActionsPerSecond: 10 316 | m_RepeatDelay: 0.5 317 | m_ForceModuleActive: 0 318 | --- !u!114 &861342197 319 | MonoBehaviour: 320 | m_ObjectHideFlags: 0 321 | m_CorrespondingSourceObject: {fileID: 0} 322 | m_PrefabInstance: {fileID: 0} 323 | m_PrefabAsset: {fileID: 0} 324 | m_GameObject: {fileID: 861342195} 325 | m_Enabled: 1 326 | m_EditorHideFlags: 0 327 | m_Script: {fileID: -619905303, guid: f70555f144d8491a825f0804e09c671c, type: 3} 328 | m_Name: 329 | m_EditorClassIdentifier: 330 | m_FirstSelected: {fileID: 0} 331 | m_sendNavigationEvents: 1 332 | m_DragThreshold: 10 333 | --- !u!4 &861342198 334 | Transform: 335 | m_ObjectHideFlags: 0 336 | m_CorrespondingSourceObject: {fileID: 0} 337 | m_PrefabInstance: {fileID: 0} 338 | m_PrefabAsset: {fileID: 0} 339 | m_GameObject: {fileID: 861342195} 340 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 341 | m_LocalPosition: {x: 0, y: 0, z: 0} 342 | m_LocalScale: {x: 1, y: 1, z: 1} 343 | m_Children: [] 344 | m_Father: {fileID: 0} 345 | m_RootOrder: 2 346 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 347 | --- !u!1 &975792448 348 | GameObject: 349 | m_ObjectHideFlags: 0 350 | m_CorrespondingSourceObject: {fileID: 0} 351 | m_PrefabInstance: {fileID: 0} 352 | m_PrefabAsset: {fileID: 0} 353 | serializedVersion: 6 354 | m_Component: 355 | - component: {fileID: 975792450} 356 | - component: {fileID: 975792449} 357 | m_Layer: 0 358 | m_Name: Register 359 | m_TagString: Untagged 360 | m_Icon: {fileID: 0} 361 | m_NavMeshLayer: 0 362 | m_StaticEditorFlags: 0 363 | m_IsActive: 1 364 | --- !u!114 &975792449 365 | MonoBehaviour: 366 | m_ObjectHideFlags: 0 367 | m_CorrespondingSourceObject: {fileID: 0} 368 | m_PrefabInstance: {fileID: 0} 369 | m_PrefabAsset: {fileID: 0} 370 | m_GameObject: {fileID: 975792448} 371 | m_Enabled: 1 372 | m_EditorHideFlags: 0 373 | m_Script: {fileID: 11500000, guid: ed42a81876906624086d346f2d756e5d, type: 3} 374 | m_Name: 375 | m_EditorClassIdentifier: 376 | --- !u!4 &975792450 377 | Transform: 378 | m_ObjectHideFlags: 0 379 | m_CorrespondingSourceObject: {fileID: 0} 380 | m_PrefabInstance: {fileID: 0} 381 | m_PrefabAsset: {fileID: 0} 382 | m_GameObject: {fileID: 975792448} 383 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 384 | m_LocalPosition: {x: 0, y: 0, z: 0} 385 | m_LocalScale: {x: 1, y: 1, z: 1} 386 | m_Children: [] 387 | m_Father: {fileID: 0} 388 | m_RootOrder: 3 389 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 390 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Samples/IOCTest/IOCTest.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 08ccad060d00a6649be815808c5195fb 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Samples/IOCTest/PoolPrefab.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &8444129241782449649 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | serializedVersion: 6 10 | m_Component: 11 | - component: {fileID: 2497827151453216664} 12 | - component: {fileID: 6990019427266083214} 13 | - component: {fileID: 1556683621030507445} 14 | - component: {fileID: 2166487505116604653} 15 | - component: {fileID: 114945618146750184} 16 | m_Layer: 0 17 | m_Name: PoolPrefab 18 | m_TagString: Untagged 19 | m_Icon: {fileID: 0} 20 | m_NavMeshLayer: 0 21 | m_StaticEditorFlags: 0 22 | m_IsActive: 1 23 | --- !u!4 &2497827151453216664 24 | Transform: 25 | m_ObjectHideFlags: 0 26 | m_CorrespondingSourceObject: {fileID: 0} 27 | m_PrefabInstance: {fileID: 0} 28 | m_PrefabAsset: {fileID: 0} 29 | m_GameObject: {fileID: 8444129241782449649} 30 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 31 | m_LocalPosition: {x: 3.65, y: 2.86, z: 0} 32 | m_LocalScale: {x: 1, y: 1, z: 1} 33 | m_Children: [] 34 | m_Father: {fileID: 0} 35 | m_RootOrder: 0 36 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 37 | --- !u!33 &6990019427266083214 38 | MeshFilter: 39 | m_ObjectHideFlags: 0 40 | m_CorrespondingSourceObject: {fileID: 0} 41 | m_PrefabInstance: {fileID: 0} 42 | m_PrefabAsset: {fileID: 0} 43 | m_GameObject: {fileID: 8444129241782449649} 44 | m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} 45 | --- !u!23 &1556683621030507445 46 | MeshRenderer: 47 | m_ObjectHideFlags: 0 48 | m_CorrespondingSourceObject: {fileID: 0} 49 | m_PrefabInstance: {fileID: 0} 50 | m_PrefabAsset: {fileID: 0} 51 | m_GameObject: {fileID: 8444129241782449649} 52 | m_Enabled: 1 53 | m_CastShadows: 1 54 | m_ReceiveShadows: 1 55 | m_DynamicOccludee: 1 56 | m_MotionVectors: 1 57 | m_LightProbeUsage: 1 58 | m_ReflectionProbeUsage: 1 59 | m_RenderingLayerMask: 1 60 | m_RendererPriority: 0 61 | m_Materials: 62 | - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} 63 | m_StaticBatchInfo: 64 | firstSubMesh: 0 65 | subMeshCount: 0 66 | m_StaticBatchRoot: {fileID: 0} 67 | m_ProbeAnchor: {fileID: 0} 68 | m_LightProbeVolumeOverride: {fileID: 0} 69 | m_ScaleInLightmap: 1 70 | m_PreserveUVs: 0 71 | m_IgnoreNormalsForChartDetection: 0 72 | m_ImportantGI: 0 73 | m_StitchLightmapSeams: 0 74 | m_SelectedEditorRenderState: 3 75 | m_MinimumChartSize: 4 76 | m_AutoUVMaxDistance: 0.5 77 | m_AutoUVMaxAngle: 89 78 | m_LightmapParameters: {fileID: 0} 79 | m_SortingLayerID: 0 80 | m_SortingLayer: 0 81 | m_SortingOrder: 0 82 | --- !u!135 &2166487505116604653 83 | SphereCollider: 84 | m_ObjectHideFlags: 0 85 | m_CorrespondingSourceObject: {fileID: 0} 86 | m_PrefabInstance: {fileID: 0} 87 | m_PrefabAsset: {fileID: 0} 88 | m_GameObject: {fileID: 8444129241782449649} 89 | m_Material: {fileID: 0} 90 | m_IsTrigger: 0 91 | m_Enabled: 1 92 | serializedVersion: 2 93 | m_Radius: 0.5 94 | m_Center: {x: 0, y: 0, z: 0} 95 | --- !u!114 &114945618146750184 96 | MonoBehaviour: 97 | m_ObjectHideFlags: 0 98 | m_CorrespondingSourceObject: {fileID: 0} 99 | m_PrefabInstance: {fileID: 0} 100 | m_PrefabAsset: {fileID: 0} 101 | m_GameObject: {fileID: 8444129241782449649} 102 | m_Enabled: 1 103 | m_EditorHideFlags: 0 104 | m_Script: {fileID: 11500000, guid: 1dfd84d76214f464eb2a312df57513b4, type: 3} 105 | m_Name: 106 | m_EditorClassIdentifier: 107 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Samples/IOCTest/PoolPrefab.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3efa05b556d3688428ab9ee529c129c7 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Samples/IOCTest/TestPoolPrefab.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using HumanFramework; 5 | 6 | public class TestPoolPrefab : MonoBehaviour 7 | { 8 | 9 | private void OnEnable() 10 | { 11 | transform.position = new Vector3(Random.Range(-2f, 2f), Random.Range(-2f, 2f), 0); 12 | } 13 | 14 | private void OnMouseDown() 15 | { 16 | Pool.Recycle(this.gameObject); 17 | } 18 | 19 | } -------------------------------------------------------------------------------- /Assets/HumanFramework/Samples/IOCTest/TestPoolPrefab.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1dfd84d76214f464eb2a312df57513b4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Samples/IOCTest/TestRegister.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using HumanFramework; 5 | using HumanFramework.Event; 6 | 7 | public class TestRegister : MonoBehaviour 8 | { 9 | void Awake() 10 | { 11 | //在全局IoC容器中注册一个消息中心,并标记为local 12 | G_InjectionContainer.RegisterInstance(new SignalContainer(), "local"); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Samples/IOCTest/TestRegister.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ed42a81876906624086d346f2d756e5d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Samples/ObjPoolTest.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a961f4a9bc1adf748ae4468e83e24978 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Samples/ObjPoolTest/Cube.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &4627766411152570738 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | serializedVersion: 6 10 | m_Component: 11 | - component: {fileID: 42315524856594064} 12 | - component: {fileID: 7653852759936607893} 13 | - component: {fileID: 3865118085602536305} 14 | - component: {fileID: 9093030584098779390} 15 | - component: {fileID: 114120903841238828} 16 | m_Layer: 0 17 | m_Name: Cube 18 | m_TagString: Untagged 19 | m_Icon: {fileID: 0} 20 | m_NavMeshLayer: 0 21 | m_StaticEditorFlags: 0 22 | m_IsActive: 1 23 | --- !u!4 &42315524856594064 24 | Transform: 25 | m_ObjectHideFlags: 0 26 | m_CorrespondingSourceObject: {fileID: 0} 27 | m_PrefabInstance: {fileID: 0} 28 | m_PrefabAsset: {fileID: 0} 29 | m_GameObject: {fileID: 4627766411152570738} 30 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 31 | m_LocalPosition: {x: 265.77234, y: 81.86774, z: 0.9375} 32 | m_LocalScale: {x: 1, y: 1, z: 1} 33 | m_Children: [] 34 | m_Father: {fileID: 0} 35 | m_RootOrder: 0 36 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 37 | --- !u!33 &7653852759936607893 38 | MeshFilter: 39 | m_ObjectHideFlags: 0 40 | m_CorrespondingSourceObject: {fileID: 0} 41 | m_PrefabInstance: {fileID: 0} 42 | m_PrefabAsset: {fileID: 0} 43 | m_GameObject: {fileID: 4627766411152570738} 44 | m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} 45 | --- !u!23 &3865118085602536305 46 | MeshRenderer: 47 | m_ObjectHideFlags: 0 48 | m_CorrespondingSourceObject: {fileID: 0} 49 | m_PrefabInstance: {fileID: 0} 50 | m_PrefabAsset: {fileID: 0} 51 | m_GameObject: {fileID: 4627766411152570738} 52 | m_Enabled: 1 53 | m_CastShadows: 1 54 | m_ReceiveShadows: 1 55 | m_DynamicOccludee: 1 56 | m_MotionVectors: 1 57 | m_LightProbeUsage: 1 58 | m_ReflectionProbeUsage: 1 59 | m_RenderingLayerMask: 1 60 | m_RendererPriority: 0 61 | m_Materials: 62 | - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} 63 | m_StaticBatchInfo: 64 | firstSubMesh: 0 65 | subMeshCount: 0 66 | m_StaticBatchRoot: {fileID: 0} 67 | m_ProbeAnchor: {fileID: 0} 68 | m_LightProbeVolumeOverride: {fileID: 0} 69 | m_ScaleInLightmap: 1 70 | m_PreserveUVs: 0 71 | m_IgnoreNormalsForChartDetection: 0 72 | m_ImportantGI: 0 73 | m_StitchLightmapSeams: 0 74 | m_SelectedEditorRenderState: 3 75 | m_MinimumChartSize: 4 76 | m_AutoUVMaxDistance: 0.5 77 | m_AutoUVMaxAngle: 89 78 | m_LightmapParameters: {fileID: 0} 79 | m_SortingLayerID: 0 80 | m_SortingLayer: 0 81 | m_SortingOrder: 0 82 | --- !u!65 &9093030584098779390 83 | BoxCollider: 84 | m_ObjectHideFlags: 0 85 | m_CorrespondingSourceObject: {fileID: 0} 86 | m_PrefabInstance: {fileID: 0} 87 | m_PrefabAsset: {fileID: 0} 88 | m_GameObject: {fileID: 4627766411152570738} 89 | m_Material: {fileID: 0} 90 | m_IsTrigger: 0 91 | m_Enabled: 1 92 | serializedVersion: 2 93 | m_Size: {x: 1, y: 1, z: 1} 94 | m_Center: {x: 0, y: 0, z: 0} 95 | --- !u!114 &114120903841238828 96 | MonoBehaviour: 97 | m_ObjectHideFlags: 0 98 | m_CorrespondingSourceObject: {fileID: 0} 99 | m_PrefabInstance: {fileID: 0} 100 | m_PrefabAsset: {fileID: 0} 101 | m_GameObject: {fileID: 4627766411152570738} 102 | m_Enabled: 1 103 | m_EditorHideFlags: 0 104 | m_Script: {fileID: 11500000, guid: 7c2700bec2f6436459574a204af6cd0b, type: 3} 105 | m_Name: 106 | m_EditorClassIdentifier: 107 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Samples/ObjPoolTest/Cube.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6eec68bccacc12f4189fd915d51ecf2b 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Samples/ObjPoolTest/ObjPoolTest.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using HumanFramework; 5 | 6 | public class ObjPoolTest : MonoBehaviour 7 | { 8 | public GameObject TestPrefab; 9 | // Start is called before the first frame update 10 | void Start() 11 | { 12 | } 13 | 14 | // Update is called once per frame 15 | void Update() 16 | { 17 | if (Input.GetKeyDown(KeyCode.A)) 18 | { 19 | Pool.Spawn(TestPrefab); 20 | } 21 | 22 | if (Input.GetKeyDown(KeyCode.C)) 23 | { 24 | Pool.Clear(); 25 | } 26 | 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Samples/ObjPoolTest/ObjPoolTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c980dda77500f5f49b4585bb41a16396 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Samples/ObjPoolTest/ObjPoolTest.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: 170076734} 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: 0 56 | m_LightmapEditorSettings: 57 | serializedVersion: 10 58 | m_Resolution: 2 59 | m_BakeResolution: 10 60 | m_AtlasSize: 512 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: 256 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 &170076733 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: 170076735} 124 | - component: {fileID: 170076734} 125 | m_Layer: 0 126 | m_Name: Directional Light 127 | m_TagString: Untagged 128 | m_Icon: {fileID: 0} 129 | m_NavMeshLayer: 0 130 | m_StaticEditorFlags: 0 131 | m_IsActive: 1 132 | --- !u!108 &170076734 133 | Light: 134 | m_ObjectHideFlags: 0 135 | m_CorrespondingSourceObject: {fileID: 0} 136 | m_PrefabInstance: {fileID: 0} 137 | m_PrefabAsset: {fileID: 0} 138 | m_GameObject: {fileID: 170076733} 139 | m_Enabled: 1 140 | serializedVersion: 8 141 | m_Type: 1 142 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 143 | m_Intensity: 1 144 | m_Range: 10 145 | m_SpotAngle: 30 146 | m_CookieSize: 10 147 | m_Shadows: 148 | m_Type: 2 149 | m_Resolution: -1 150 | m_CustomResolution: -1 151 | m_Strength: 1 152 | m_Bias: 0.05 153 | m_NormalBias: 0.4 154 | m_NearPlane: 0.2 155 | m_Cookie: {fileID: 0} 156 | m_DrawHalo: 0 157 | m_Flare: {fileID: 0} 158 | m_RenderMode: 0 159 | m_CullingMask: 160 | serializedVersion: 2 161 | m_Bits: 4294967295 162 | m_Lightmapping: 1 163 | m_LightShadowCasterMode: 0 164 | m_AreaSize: {x: 1, y: 1} 165 | m_BounceIntensity: 1 166 | m_ColorTemperature: 6570 167 | m_UseColorTemperature: 0 168 | m_ShadowRadius: 0 169 | m_ShadowAngle: 0 170 | --- !u!4 &170076735 171 | Transform: 172 | m_ObjectHideFlags: 0 173 | m_CorrespondingSourceObject: {fileID: 0} 174 | m_PrefabInstance: {fileID: 0} 175 | m_PrefabAsset: {fileID: 0} 176 | m_GameObject: {fileID: 170076733} 177 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 178 | m_LocalPosition: {x: 0, y: 3, z: 0} 179 | m_LocalScale: {x: 1, y: 1, z: 1} 180 | m_Children: [] 181 | m_Father: {fileID: 0} 182 | m_RootOrder: 1 183 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 184 | --- !u!1 &534669902 185 | GameObject: 186 | m_ObjectHideFlags: 0 187 | m_CorrespondingSourceObject: {fileID: 0} 188 | m_PrefabInstance: {fileID: 0} 189 | m_PrefabAsset: {fileID: 0} 190 | serializedVersion: 6 191 | m_Component: 192 | - component: {fileID: 534669905} 193 | - component: {fileID: 534669904} 194 | - component: {fileID: 534669903} 195 | m_Layer: 0 196 | m_Name: Main Camera 197 | m_TagString: MainCamera 198 | m_Icon: {fileID: 0} 199 | m_NavMeshLayer: 0 200 | m_StaticEditorFlags: 0 201 | m_IsActive: 1 202 | --- !u!81 &534669903 203 | AudioListener: 204 | m_ObjectHideFlags: 0 205 | m_CorrespondingSourceObject: {fileID: 0} 206 | m_PrefabInstance: {fileID: 0} 207 | m_PrefabAsset: {fileID: 0} 208 | m_GameObject: {fileID: 534669902} 209 | m_Enabled: 1 210 | --- !u!20 &534669904 211 | Camera: 212 | m_ObjectHideFlags: 0 213 | m_CorrespondingSourceObject: {fileID: 0} 214 | m_PrefabInstance: {fileID: 0} 215 | m_PrefabAsset: {fileID: 0} 216 | m_GameObject: {fileID: 534669902} 217 | m_Enabled: 1 218 | serializedVersion: 2 219 | m_ClearFlags: 1 220 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 221 | m_projectionMatrixMode: 1 222 | m_SensorSize: {x: 36, y: 24} 223 | m_LensShift: {x: 0, y: 0} 224 | m_GateFitMode: 2 225 | m_FocalLength: 50 226 | m_NormalizedViewPortRect: 227 | serializedVersion: 2 228 | x: 0 229 | y: 0 230 | width: 1 231 | height: 1 232 | near clip plane: 0.3 233 | far clip plane: 1000 234 | field of view: 60 235 | orthographic: 0 236 | orthographic size: 5 237 | m_Depth: -1 238 | m_CullingMask: 239 | serializedVersion: 2 240 | m_Bits: 4294967295 241 | m_RenderingPath: -1 242 | m_TargetTexture: {fileID: 0} 243 | m_TargetDisplay: 0 244 | m_TargetEye: 3 245 | m_HDR: 1 246 | m_AllowMSAA: 1 247 | m_AllowDynamicResolution: 0 248 | m_ForceIntoRT: 0 249 | m_OcclusionCulling: 1 250 | m_StereoConvergence: 10 251 | m_StereoSeparation: 0.022 252 | --- !u!4 &534669905 253 | Transform: 254 | m_ObjectHideFlags: 0 255 | m_CorrespondingSourceObject: {fileID: 0} 256 | m_PrefabInstance: {fileID: 0} 257 | m_PrefabAsset: {fileID: 0} 258 | m_GameObject: {fileID: 534669902} 259 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 260 | m_LocalPosition: {x: 0, y: 1, z: -10} 261 | m_LocalScale: {x: 1, y: 1, z: 1} 262 | m_Children: [] 263 | m_Father: {fileID: 0} 264 | m_RootOrder: 0 265 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 266 | --- !u!1 &682805257 267 | GameObject: 268 | m_ObjectHideFlags: 0 269 | m_CorrespondingSourceObject: {fileID: 0} 270 | m_PrefabInstance: {fileID: 0} 271 | m_PrefabAsset: {fileID: 0} 272 | serializedVersion: 6 273 | m_Component: 274 | - component: {fileID: 682805259} 275 | - component: {fileID: 682805258} 276 | m_Layer: 0 277 | m_Name: Test 278 | m_TagString: Untagged 279 | m_Icon: {fileID: 0} 280 | m_NavMeshLayer: 0 281 | m_StaticEditorFlags: 0 282 | m_IsActive: 1 283 | --- !u!114 &682805258 284 | MonoBehaviour: 285 | m_ObjectHideFlags: 0 286 | m_CorrespondingSourceObject: {fileID: 0} 287 | m_PrefabInstance: {fileID: 0} 288 | m_PrefabAsset: {fileID: 0} 289 | m_GameObject: {fileID: 682805257} 290 | m_Enabled: 1 291 | m_EditorHideFlags: 0 292 | m_Script: {fileID: 11500000, guid: c980dda77500f5f49b4585bb41a16396, type: 3} 293 | m_Name: 294 | m_EditorClassIdentifier: 295 | TestPrefab: {fileID: 4627766411152570738, guid: 6eec68bccacc12f4189fd915d51ecf2b, 296 | type: 3} 297 | --- !u!4 &682805259 298 | Transform: 299 | m_ObjectHideFlags: 0 300 | m_CorrespondingSourceObject: {fileID: 0} 301 | m_PrefabInstance: {fileID: 0} 302 | m_PrefabAsset: {fileID: 0} 303 | m_GameObject: {fileID: 682805257} 304 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 305 | m_LocalPosition: {x: 265.77234, y: 81.86774, z: 0.9375} 306 | m_LocalScale: {x: 1, y: 1, z: 1} 307 | m_Children: [] 308 | m_Father: {fileID: 0} 309 | m_RootOrder: 2 310 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 311 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Samples/ObjPoolTest/ObjPoolTest.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2a1f10d2452151f489589bc28cea0496 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Samples/ObjPoolTest/PoolCube.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using HumanFramework; 5 | 6 | public class PoolCube : MonoBehaviour 7 | { 8 | // Start is called before the first frame update 9 | void Start() 10 | { 11 | 12 | } 13 | 14 | // Update is called once per frame 15 | void Update() 16 | { 17 | if (Input.GetKeyDown(KeyCode.R)) 18 | { 19 | Pool.Recycle(this.gameObject); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Assets/HumanFramework/Samples/ObjPoolTest/PoolCube.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7c2700bec2f6436459574a204af6cd0b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Tests.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ba0010a1cc30cb343a964fcebd7b2649 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Tests/TestEventSystem.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using HumanFramework; 4 | using HumanFramework.Event; 5 | using HumanFramework.ObjectPool; 6 | using NUnit.Framework; 7 | using UnityEngine; 8 | using UnityEngine.TestTools; 9 | 10 | namespace Tests 11 | { 12 | public class TestEventSystem 13 | { 14 | class TestSignal : ISignal 15 | { 16 | public string Msg; 17 | } 18 | 19 | void OnRevTestSignal(TestSignal signal) 20 | { 21 | Debug.Log(signal.Msg); 22 | } 23 | 24 | // A Test behaves as an ordinary method 25 | [Test] 26 | public void TestEventSystemSimplePasses() 27 | { 28 | // Use the Assert class to test conditions 29 | ISignalContainer signalContainer = new SignalContainer(); 30 | 31 | signalContainer.AddListener(OnRevTestSignal); 32 | 33 | signalContainer.DispatchSignal(new TestSignal { Msg = "test" }); 34 | 35 | LogAssert.Expect(LogType.Log, "test"); 36 | 37 | 38 | } 39 | 40 | [Test] 41 | public void TestObjPool() 42 | { 43 | GameObject poolPrefab = new GameObject(); 44 | GameObject go = Pool.Spawn(poolPrefab); 45 | go.GetComponent().RecycleToPool(go); 46 | } 47 | 48 | // A UnityTest behaves like a coroutine in Play Mode. In Edit Mode you can use 49 | // `yield return null;` to skip a frame. 50 | [UnityTest] 51 | public IEnumerator TestEventSystemWithEnumeratorPasses() 52 | { 53 | // Use the Assert class to test conditions. 54 | // Use yield to skip a frame. 55 | yield return null; 56 | } 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /Assets/Tests/TestEventSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 44261ef26abce504d94af2d472f12ff0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Tests/Tests.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Tests", 3 | "references": [ 4 | "HumanFramework" 5 | ], 6 | "optionalUnityReferences": [ 7 | "TestAssemblies" 8 | ], 9 | "includePlatforms": [], 10 | "excludePlatforms": [], 11 | "allowUnsafeCode": false, 12 | "overrideReferences": false, 13 | "precompiledReferences": [], 14 | "autoReferenced": true, 15 | "defineConstraints": [] 16 | } -------------------------------------------------------------------------------- /Assets/Tests/Tests.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f84a9831f65161e49849d50ebdd29129 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /DocImg/IoC.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyclons/HumanFramework/d996a2e2ba5b4d7fb8615d2f516d6cf3c9817427/DocImg/IoC.png -------------------------------------------------------------------------------- /DocImg/ObjPool.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyclons/HumanFramework/d996a2e2ba5b4d7fb8615d2f516d6cf3c9817427/DocImg/ObjPool.png -------------------------------------------------------------------------------- /DocImg/SignalContainer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cyclons/HumanFramework/d996a2e2ba5b4d7fb8615d2f516d6cf3c9817427/DocImg/SignalContainer.png -------------------------------------------------------------------------------- /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.8", 7 | "com.unity.purchasing": "2.0.3", 8 | "com.unity.textmeshpro": "1.4.1", 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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 8 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: 0 23 | m_ReuseCollisionCallbacks: 1 24 | m_ClothInterCollisionSettingsToggle: 0 25 | m_ContactPairsMode: 0 26 | m_BroadphaseType: 0 27 | m_WorldBounds: 28 | m_Center: {x: 0, y: 0, z: 0} 29 | m_Extent: {x: 250, y: 250, z: 250} 30 | m_WorldSubdivisions: 8 31 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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: Visible 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 18 | m_ProjectGenerationRootNamespace: 19 | m_UserGeneratedProjectSuffix: 20 | m_CollabEditorSettings: 21 | inProgressEnabled: 1 22 | -------------------------------------------------------------------------------- /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 | - {fileID: 10783, guid: 0000000000000000f000000000000000, type: 0} 39 | m_PreloadedShaders: [] 40 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 41 | type: 0} 42 | m_CustomRenderPipeline: {fileID: 0} 43 | m_TransparencySortMode: 0 44 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 45 | m_DefaultRenderingPath: 1 46 | m_DefaultMobileRenderingPath: 1 47 | m_TierSettings: [] 48 | m_LightmapStripping: 0 49 | m_FogStripping: 0 50 | m_InstancingStripping: 0 51 | m_LightmapKeepPlain: 1 52 | m_LightmapKeepDirCombined: 1 53 | m_LightmapKeepDynamicPlain: 1 54 | m_LightmapKeepDynamicDirCombined: 1 55 | m_LightmapKeepShadowMask: 1 56 | m_LightmapKeepSubtractive: 1 57 | m_FogKeepLinear: 1 58 | m_FogKeepExp: 1 59 | m_FogKeepExp2: 1 60 | m_AlbedoSwatchInfos: [] 61 | m_LightsUseLinearIntensity: 0 62 | m_LightsUseColorTemperature: 0 63 | -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: 0.001 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: 0.001 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: 0.001 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: 0.001 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left shift 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: 0.001 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: 0.1 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: 0.1 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: 0.1 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: 0.19 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: 0.19 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: 0.001 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: 0.001 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: 0.001 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: 0.001 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: 0.001 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: 0.001 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | debug: 89 | m_Flags: 0 90 | m_SettingNames: 91 | - Humanoid 92 | -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 4 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_AutoSimulation: 1 23 | m_QueriesHitTriggers: 1 24 | m_QueriesStartInColliders: 1 25 | m_ChangeStopsCallbacks: 0 26 | m_CallbacksOnDisable: 1 27 | m_ReuseCollisionCallbacks: 1 28 | m_AutoSyncTransforms: 0 29 | m_AlwaysShowColliders: 0 30 | m_ShowColliderSleep: 1 31 | m_ShowColliderContacts: 0 32 | m_ShowColliderAABB: 0 33 | m_ContactArrowScale: 0.2 34 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 35 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 36 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 37 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 38 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 39 | -------------------------------------------------------------------------------- /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 | - type: 8 | m_NativeTypeID: 108 9 | m_ManagedTypePPtr: {fileID: 0} 10 | m_ManagedTypeFallback: 11 | defaultPresets: 12 | - m_Preset: {fileID: 2655988077585873504, guid: c1cf8506f04ef2c4a88b64b6c4202eea, 13 | type: 2} 14 | - type: 15 | m_NativeTypeID: 1020 16 | m_ManagedTypePPtr: {fileID: 0} 17 | m_ManagedTypeFallback: 18 | defaultPresets: 19 | - m_Preset: {fileID: 2655988077585873504, guid: 0cd792cc87e492d43b4e95b205fc5cc6, 20 | type: 2} 21 | - type: 22 | m_NativeTypeID: 1006 23 | m_ManagedTypePPtr: {fileID: 0} 24 | m_ManagedTypeFallback: 25 | defaultPresets: 26 | - m_Preset: {fileID: 2655988077585873504, guid: 7a99f8aa944efe94cb9bd74562b7d5f9, 27 | type: 2} 28 | -------------------------------------------------------------------------------- /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: 18 7 | productGUID: 30bda2d9bd5c3474baa916bee072aa6e 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: HumanFramework 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 | displayResolutionDialog: 1 56 | iosUseCustomAppBackgroundBehavior: 0 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 | androidStartInFullscreen: 1 67 | androidRenderOutsideSafeArea: 0 68 | androidBlitType: 0 69 | defaultIsNativeResolution: 1 70 | macRetinaSupport: 1 71 | runInBackground: 1 72 | captureSingleScreen: 0 73 | muteOtherAudioSources: 0 74 | Prepare IOS For Recording: 0 75 | Force IOS Speakers When Recording: 0 76 | deferSystemGesturesMode: 0 77 | hideHomeButton: 0 78 | submitAnalytics: 1 79 | usePlayerLog: 1 80 | bakeCollisionMeshes: 0 81 | forceSingleInstance: 0 82 | resizableWindow: 0 83 | useMacAppStoreValidation: 0 84 | macAppStoreCategory: public.app-category.games 85 | gpuSkinning: 1 86 | graphicsJobs: 0 87 | xboxPIXTextureCapture: 0 88 | xboxEnableAvatar: 0 89 | xboxEnableKinect: 0 90 | xboxEnableKinectAutoTracking: 0 91 | xboxEnableFitness: 0 92 | visibleInBackground: 1 93 | allowFullscreenSwitch: 1 94 | graphicsJobMode: 0 95 | fullscreenMode: 1 96 | xboxSpeechDB: 0 97 | xboxEnableHeadOrientation: 0 98 | xboxEnableGuest: 0 99 | xboxEnablePIXSampling: 0 100 | metalFramebufferOnly: 0 101 | xboxOneResolution: 0 102 | xboxOneSResolution: 0 103 | xboxOneXResolution: 3 104 | xboxOneMonoLoggingLevel: 0 105 | xboxOneLoggingLevel: 1 106 | xboxOneDisableEsram: 0 107 | xboxOnePresentImmediateThreshold: 0 108 | switchQueueCommandMemory: 0 109 | switchQueueControlMemory: 16384 110 | switchQueueComputeMemory: 262144 111 | switchNVNShaderPoolsGranularity: 33554432 112 | switchNVNDefaultPoolsGranularity: 16777216 113 | switchNVNOtherPoolsGranularity: 16777216 114 | vulkanEnableSetSRGBWrite: 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: 0.1 122 | preloadedAssets: [] 123 | metroInputSource: 0 124 | wsaTransparentSwapchain: 0 125 | m_HolographicPauseOnTrackingLoss: 1 126 | xboxOneDisableKinectGpuReservation: 1 127 | xboxOneEnable7thCore: 1 128 | isWsaHolographicRemotingEnabled: 0 129 | vrSettings: 130 | cardboard: 131 | depthFormat: 0 132 | enableTransitionView: 0 133 | daydream: 134 | depthFormat: 0 135 | useSustainedPerformanceMode: 0 136 | enableVideoLayer: 0 137 | useProtectedVideoMemory: 0 138 | minimumSupportedHeadTracking: 0 139 | maximumSupportedHeadTracking: 1 140 | hololens: 141 | depthFormat: 1 142 | depthBufferSharingEnabled: 1 143 | oculus: 144 | sharedDepthBuffer: 1 145 | dashSupport: 1 146 | lowOverheadMode: 0 147 | protectedContext: 0 148 | v2Signing: 0 149 | enable360StereoCapture: 0 150 | protectGraphicsMemory: 0 151 | enableFrameTimingStats: 0 152 | useHDRDisplay: 0 153 | m_ColorGamuts: 00000000 154 | targetPixelDensity: 30 155 | resolutionScalingMode: 0 156 | androidSupportedAspectRatio: 1 157 | androidMaxAspectRatio: 2.1 158 | applicationIdentifier: {} 159 | buildNumber: {} 160 | AndroidBundleVersionCode: 1 161 | AndroidMinSdkVersion: 16 162 | AndroidTargetSdkVersion: 0 163 | AndroidPreferredInstallLocation: 1 164 | aotOptions: 165 | stripEngineCode: 1 166 | iPhoneStrippingLevel: 0 167 | iPhoneScriptCallOptimization: 0 168 | ForceInternetPermission: 0 169 | ForceSDCardPermission: 0 170 | CreateWallpaper: 0 171 | APKExpansionFiles: 0 172 | keepLoadedShadersAlive: 0 173 | StripUnusedMeshComponents: 1 174 | VertexChannelCompressionMask: 4054 175 | iPhoneSdkVersion: 988 176 | iOSTargetOSVersionString: 9.0 177 | tvOSSdkVersion: 0 178 | tvOSRequireExtendedGameController: 0 179 | tvOSTargetOSVersionString: 9.0 180 | uIPrerenderedIcon: 0 181 | uIRequiresPersistentWiFi: 0 182 | uIRequiresFullScreen: 1 183 | uIStatusBarHidden: 1 184 | uIExitOnSuspend: 0 185 | uIStatusBarStyle: 0 186 | iPhoneSplashScreen: {fileID: 0} 187 | iPhoneHighResSplashScreen: {fileID: 0} 188 | iPhoneTallHighResSplashScreen: {fileID: 0} 189 | iPhone47inSplashScreen: {fileID: 0} 190 | iPhone55inPortraitSplashScreen: {fileID: 0} 191 | iPhone55inLandscapeSplashScreen: {fileID: 0} 192 | iPhone58inPortraitSplashScreen: {fileID: 0} 193 | iPhone58inLandscapeSplashScreen: {fileID: 0} 194 | iPadPortraitSplashScreen: {fileID: 0} 195 | iPadHighResPortraitSplashScreen: {fileID: 0} 196 | iPadLandscapeSplashScreen: {fileID: 0} 197 | iPadHighResLandscapeSplashScreen: {fileID: 0} 198 | appleTVSplashScreen: {fileID: 0} 199 | appleTVSplashScreen2x: {fileID: 0} 200 | tvOSSmallIconLayers: [] 201 | tvOSSmallIconLayers2x: [] 202 | tvOSLargeIconLayers: [] 203 | tvOSLargeIconLayers2x: [] 204 | tvOSTopShelfImageLayers: [] 205 | tvOSTopShelfImageLayers2x: [] 206 | tvOSTopShelfImageWideLayers: [] 207 | tvOSTopShelfImageWideLayers2x: [] 208 | iOSLaunchScreenType: 0 209 | iOSLaunchScreenPortrait: {fileID: 0} 210 | iOSLaunchScreenLandscape: {fileID: 0} 211 | iOSLaunchScreenBackgroundColor: 212 | serializedVersion: 2 213 | rgba: 0 214 | iOSLaunchScreenFillPct: 100 215 | iOSLaunchScreenSize: 100 216 | iOSLaunchScreenCustomXibPath: 217 | iOSLaunchScreeniPadType: 0 218 | iOSLaunchScreeniPadImage: {fileID: 0} 219 | iOSLaunchScreeniPadBackgroundColor: 220 | serializedVersion: 2 221 | rgba: 0 222 | iOSLaunchScreeniPadFillPct: 100 223 | iOSLaunchScreeniPadSize: 100 224 | iOSLaunchScreeniPadCustomXibPath: 225 | iOSUseLaunchScreenStoryboard: 0 226 | iOSLaunchScreenCustomStoryboardPath: 227 | iOSDeviceRequirements: [] 228 | iOSURLSchemes: [] 229 | iOSBackgroundModes: 0 230 | iOSMetalForceHardShadows: 0 231 | metalEditorSupport: 1 232 | metalAPIValidation: 1 233 | iOSRenderExtraFrameOnPause: 0 234 | appleDeveloperTeamID: 235 | iOSManualSigningProvisioningProfileID: 236 | tvOSManualSigningProvisioningProfileID: 237 | iOSManualSigningProvisioningProfileType: 0 238 | tvOSManualSigningProvisioningProfileType: 0 239 | appleEnableAutomaticSigning: 0 240 | iOSRequireARKit: 0 241 | iOSAutomaticallyDetectAndAddCapabilities: 1 242 | appleEnableProMotion: 0 243 | clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea 244 | templatePackageId: com.unity.template.3d@1.3.0 245 | templateDefaultScene: Assets/Scenes/SampleScene.unity 246 | AndroidTargetArchitectures: 5 247 | AndroidSplashScreenScale: 0 248 | androidSplashScreen: {fileID: 0} 249 | AndroidKeystoreName: 250 | AndroidKeyaliasName: 251 | AndroidBuildApkPerCpuArchitecture: 0 252 | AndroidTVCompatibility: 1 253 | AndroidIsGame: 1 254 | AndroidEnableTango: 0 255 | androidEnableBanner: 1 256 | androidUseLowAccuracyLocation: 0 257 | m_AndroidBanners: 258 | - width: 320 259 | height: 180 260 | banner: {fileID: 0} 261 | androidGamepadSupportLevel: 0 262 | resolutionDialogBanner: {fileID: 0} 263 | m_BuildTargetIcons: [] 264 | m_BuildTargetPlatformIcons: [] 265 | m_BuildTargetBatching: 266 | - m_BuildTarget: Standalone 267 | m_StaticBatching: 1 268 | m_DynamicBatching: 0 269 | - m_BuildTarget: tvOS 270 | m_StaticBatching: 1 271 | m_DynamicBatching: 0 272 | - m_BuildTarget: Android 273 | m_StaticBatching: 1 274 | m_DynamicBatching: 0 275 | - m_BuildTarget: iPhone 276 | m_StaticBatching: 1 277 | m_DynamicBatching: 0 278 | - m_BuildTarget: WebGL 279 | m_StaticBatching: 0 280 | m_DynamicBatching: 0 281 | m_BuildTargetGraphicsAPIs: 282 | - m_BuildTarget: AndroidPlayer 283 | m_APIs: 0b00000008000000 284 | m_Automatic: 1 285 | - m_BuildTarget: iOSSupport 286 | m_APIs: 10000000 287 | m_Automatic: 1 288 | - m_BuildTarget: AppleTVSupport 289 | m_APIs: 10000000 290 | m_Automatic: 0 291 | - m_BuildTarget: WebGLSupport 292 | m_APIs: 0b000000 293 | m_Automatic: 1 294 | m_BuildTargetVRSettings: 295 | - m_BuildTarget: Standalone 296 | m_Enabled: 0 297 | m_Devices: 298 | - Oculus 299 | - OpenVR 300 | m_BuildTargetEnableVuforiaSettings: [] 301 | openGLRequireES31: 0 302 | openGLRequireES31AEP: 0 303 | m_TemplateCustomTags: {} 304 | mobileMTRendering: 305 | Android: 1 306 | iPhone: 1 307 | tvOS: 1 308 | m_BuildTargetGroupLightmapEncodingQuality: [] 309 | m_BuildTargetGroupLightmapSettings: [] 310 | playModeTestRunnerEnabled: 0 311 | runPlayModeTestAsEditModeTest: 0 312 | actionOnDotNetUnhandledException: 1 313 | enableInternalProfiler: 0 314 | logObjCUncaughtExceptions: 1 315 | enableCrashReportAPI: 0 316 | cameraUsageDescription: 317 | locationUsageDescription: 318 | microphoneUsageDescription: 319 | switchNetLibKey: 320 | switchSocketMemoryPoolSize: 6144 321 | switchSocketAllocatorPoolSize: 128 322 | switchSocketConcurrencyLimit: 14 323 | switchScreenResolutionBehavior: 2 324 | switchUseCPUProfiler: 0 325 | switchApplicationID: 0x01004b9000490000 326 | switchNSODependencies: 327 | switchTitleNames_0: 328 | switchTitleNames_1: 329 | switchTitleNames_2: 330 | switchTitleNames_3: 331 | switchTitleNames_4: 332 | switchTitleNames_5: 333 | switchTitleNames_6: 334 | switchTitleNames_7: 335 | switchTitleNames_8: 336 | switchTitleNames_9: 337 | switchTitleNames_10: 338 | switchTitleNames_11: 339 | switchTitleNames_12: 340 | switchTitleNames_13: 341 | switchTitleNames_14: 342 | switchPublisherNames_0: 343 | switchPublisherNames_1: 344 | switchPublisherNames_2: 345 | switchPublisherNames_3: 346 | switchPublisherNames_4: 347 | switchPublisherNames_5: 348 | switchPublisherNames_6: 349 | switchPublisherNames_7: 350 | switchPublisherNames_8: 351 | switchPublisherNames_9: 352 | switchPublisherNames_10: 353 | switchPublisherNames_11: 354 | switchPublisherNames_12: 355 | switchPublisherNames_13: 356 | switchPublisherNames_14: 357 | switchIcons_0: {fileID: 0} 358 | switchIcons_1: {fileID: 0} 359 | switchIcons_2: {fileID: 0} 360 | switchIcons_3: {fileID: 0} 361 | switchIcons_4: {fileID: 0} 362 | switchIcons_5: {fileID: 0} 363 | switchIcons_6: {fileID: 0} 364 | switchIcons_7: {fileID: 0} 365 | switchIcons_8: {fileID: 0} 366 | switchIcons_9: {fileID: 0} 367 | switchIcons_10: {fileID: 0} 368 | switchIcons_11: {fileID: 0} 369 | switchIcons_12: {fileID: 0} 370 | switchIcons_13: {fileID: 0} 371 | switchIcons_14: {fileID: 0} 372 | switchSmallIcons_0: {fileID: 0} 373 | switchSmallIcons_1: {fileID: 0} 374 | switchSmallIcons_2: {fileID: 0} 375 | switchSmallIcons_3: {fileID: 0} 376 | switchSmallIcons_4: {fileID: 0} 377 | switchSmallIcons_5: {fileID: 0} 378 | switchSmallIcons_6: {fileID: 0} 379 | switchSmallIcons_7: {fileID: 0} 380 | switchSmallIcons_8: {fileID: 0} 381 | switchSmallIcons_9: {fileID: 0} 382 | switchSmallIcons_10: {fileID: 0} 383 | switchSmallIcons_11: {fileID: 0} 384 | switchSmallIcons_12: {fileID: 0} 385 | switchSmallIcons_13: {fileID: 0} 386 | switchSmallIcons_14: {fileID: 0} 387 | switchManualHTML: 388 | switchAccessibleURLs: 389 | switchLegalInformation: 390 | switchMainThreadStackSize: 1048576 391 | switchPresenceGroupId: 392 | switchLogoHandling: 0 393 | switchReleaseVersion: 0 394 | switchDisplayVersion: 1.0.0 395 | switchStartupUserAccount: 0 396 | switchTouchScreenUsage: 0 397 | switchSupportedLanguagesMask: 0 398 | switchLogoType: 0 399 | switchApplicationErrorCodeCategory: 400 | switchUserAccountSaveDataSize: 0 401 | switchUserAccountSaveDataJournalSize: 0 402 | switchApplicationAttribute: 0 403 | switchCardSpecSize: -1 404 | switchCardSpecClock: -1 405 | switchRatingsMask: 0 406 | switchRatingsInt_0: 0 407 | switchRatingsInt_1: 0 408 | switchRatingsInt_2: 0 409 | switchRatingsInt_3: 0 410 | switchRatingsInt_4: 0 411 | switchRatingsInt_5: 0 412 | switchRatingsInt_6: 0 413 | switchRatingsInt_7: 0 414 | switchRatingsInt_8: 0 415 | switchRatingsInt_9: 0 416 | switchRatingsInt_10: 0 417 | switchRatingsInt_11: 0 418 | switchRatingsInt_12: 0 419 | switchLocalCommunicationIds_0: 420 | switchLocalCommunicationIds_1: 421 | switchLocalCommunicationIds_2: 422 | switchLocalCommunicationIds_3: 423 | switchLocalCommunicationIds_4: 424 | switchLocalCommunicationIds_5: 425 | switchLocalCommunicationIds_6: 426 | switchLocalCommunicationIds_7: 427 | switchParentalControl: 0 428 | switchAllowsScreenshot: 1 429 | switchAllowsVideoCapturing: 1 430 | switchAllowsRuntimeAddOnContentInstall: 0 431 | switchDataLossConfirmation: 0 432 | switchUserAccountLockEnabled: 0 433 | switchSystemResourceMemory: 16777216 434 | switchSupportedNpadStyles: 3 435 | switchNativeFsCacheSize: 32 436 | switchIsHoldTypeHorizontal: 0 437 | switchSupportedNpadCount: 8 438 | switchSocketConfigEnabled: 0 439 | switchTcpInitialSendBufferSize: 32 440 | switchTcpInitialReceiveBufferSize: 64 441 | switchTcpAutoSendBufferSizeMax: 256 442 | switchTcpAutoReceiveBufferSizeMax: 256 443 | switchUdpSendBufferSize: 9 444 | switchUdpReceiveBufferSize: 42 445 | switchSocketBufferEfficiency: 4 446 | switchSocketInitializeEnabled: 1 447 | switchNetworkInterfaceManagerInitializeEnabled: 1 448 | switchPlayerConnectionEnabled: 1 449 | ps4NPAgeRating: 12 450 | ps4NPTitleSecret: 451 | ps4NPTrophyPackPath: 452 | ps4ParentalLevel: 11 453 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 454 | ps4Category: 0 455 | ps4MasterVersion: 01.00 456 | ps4AppVersion: 01.00 457 | ps4AppType: 0 458 | ps4ParamSfxPath: 459 | ps4VideoOutPixelFormat: 0 460 | ps4VideoOutInitialWidth: 1920 461 | ps4VideoOutBaseModeInitialWidth: 1920 462 | ps4VideoOutReprojectionRate: 60 463 | ps4PronunciationXMLPath: 464 | ps4PronunciationSIGPath: 465 | ps4BackgroundImagePath: 466 | ps4StartupImagePath: 467 | ps4StartupImagesFolder: 468 | ps4IconImagesFolder: 469 | ps4SaveDataImagePath: 470 | ps4SdkOverride: 471 | ps4BGMPath: 472 | ps4ShareFilePath: 473 | ps4ShareOverlayImagePath: 474 | ps4PrivacyGuardImagePath: 475 | ps4NPtitleDatPath: 476 | ps4RemotePlayKeyAssignment: -1 477 | ps4RemotePlayKeyMappingDir: 478 | ps4PlayTogetherPlayerCount: 0 479 | ps4EnterButtonAssignment: 1 480 | ps4ApplicationParam1: 0 481 | ps4ApplicationParam2: 0 482 | ps4ApplicationParam3: 0 483 | ps4ApplicationParam4: 0 484 | ps4DownloadDataSize: 0 485 | ps4GarlicHeapSize: 2048 486 | ps4ProGarlicHeapSize: 2560 487 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 488 | ps4pnSessions: 1 489 | ps4pnPresence: 1 490 | ps4pnFriends: 1 491 | ps4pnGameCustomData: 1 492 | playerPrefsSupport: 0 493 | enableApplicationExit: 0 494 | resetTempFolder: 1 495 | restrictedAudioUsageRights: 0 496 | ps4UseResolutionFallback: 0 497 | ps4ReprojectionSupport: 0 498 | ps4UseAudio3dBackend: 0 499 | ps4SocialScreenEnabled: 0 500 | ps4ScriptOptimizationLevel: 0 501 | ps4Audio3dVirtualSpeakerCount: 14 502 | ps4attribCpuUsage: 0 503 | ps4PatchPkgPath: 504 | ps4PatchLatestPkgPath: 505 | ps4PatchChangeinfoPath: 506 | ps4PatchDayOne: 0 507 | ps4attribUserManagement: 0 508 | ps4attribMoveSupport: 0 509 | ps4attrib3DSupport: 0 510 | ps4attribShareSupport: 0 511 | ps4attribExclusiveVR: 0 512 | ps4disableAutoHideSplash: 0 513 | ps4videoRecordingFeaturesUsed: 0 514 | ps4contentSearchFeaturesUsed: 0 515 | ps4attribEyeToEyeDistanceSettingVR: 0 516 | ps4IncludedModules: [] 517 | monoEnv: 518 | splashScreenBackgroundSourceLandscape: {fileID: 0} 519 | splashScreenBackgroundSourcePortrait: {fileID: 0} 520 | spritePackerPolicy: 521 | webGLMemorySize: 256 522 | webGLExceptionSupport: 1 523 | webGLNameFilesAsHashes: 0 524 | webGLDataCaching: 1 525 | webGLDebugSymbols: 0 526 | webGLEmscriptenArgs: 527 | webGLModulesDirectory: 528 | webGLTemplate: APPLICATION:Default 529 | webGLAnalyzeBuildSize: 0 530 | webGLUseEmbeddedResources: 0 531 | webGLCompressionFormat: 1 532 | webGLLinkerTarget: 1 533 | webGLThreadsSupport: 0 534 | scriptingDefineSymbols: {} 535 | platformArchitecture: {} 536 | scriptingBackend: {} 537 | il2cppCompilerConfiguration: {} 538 | managedStrippingLevel: {} 539 | incrementalIl2cppBuild: {} 540 | allowUnsafeCode: 0 541 | additionalIl2CppArgs: 542 | scriptingRuntimeVersion: 1 543 | apiCompatibilityLevelPerPlatform: {} 544 | m_RenderingPath: 1 545 | m_MobileRenderingPath: 1 546 | metroPackageName: Template_3D 547 | metroPackageVersion: 548 | metroCertificatePath: 549 | metroCertificatePassword: 550 | metroCertificateSubject: 551 | metroCertificateIssuer: 552 | metroCertificateNotAfter: 0000000000000000 553 | metroApplicationDescription: Template_3D 554 | wsaImages: {} 555 | metroTileShortName: 556 | metroTileShowName: 0 557 | metroMediumTileShowName: 0 558 | metroLargeTileShowName: 0 559 | metroWideTileShowName: 0 560 | metroSupportStreamingInstall: 0 561 | metroLastRequiredScene: 0 562 | metroDefaultTileSize: 1 563 | metroTileForegroundText: 2 564 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 565 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 566 | a: 1} 567 | metroSplashScreenUseBackgroundColor: 0 568 | platformCapabilities: {} 569 | metroTargetDeviceFamilies: {} 570 | metroFTAName: 571 | metroFTAFileTypes: [] 572 | metroProtocolName: 573 | metroCompilationOverrides: 1 574 | XboxOneProductId: 575 | XboxOneUpdateKey: 576 | XboxOneSandboxId: 577 | XboxOneContentId: 578 | XboxOneTitleId: 579 | XboxOneSCId: 580 | XboxOneGameOsOverridePath: 581 | XboxOnePackagingOverridePath: 582 | XboxOneAppManifestOverridePath: 583 | XboxOneVersion: 1.0.0.0 584 | XboxOnePackageEncryption: 0 585 | XboxOnePackageUpdateGranularity: 2 586 | XboxOneDescription: 587 | XboxOneLanguage: 588 | - enus 589 | XboxOneCapability: [] 590 | XboxOneGameRating: {} 591 | XboxOneIsContentPackage: 0 592 | XboxOneEnableGPUVariability: 1 593 | XboxOneSockets: {} 594 | XboxOneSplashScreen: {fileID: 0} 595 | XboxOneAllowedProductIds: [] 596 | XboxOnePersistentLocalStorageSize: 0 597 | XboxOneXTitleMemory: 8 598 | xboxOneScriptCompiler: 1 599 | XboxOneOverrideIdentityName: 600 | vrEditorSettings: 601 | daydream: 602 | daydreamIconForeground: {fileID: 0} 603 | daydreamIconBackground: {fileID: 0} 604 | cloudServicesEnabled: 605 | UNet: 1 606 | luminIcon: 607 | m_Name: 608 | m_ModelFolderPath: 609 | m_PortalFolderPath: 610 | luminCert: 611 | m_CertPath: 612 | m_PrivateKeyPath: 613 | luminIsChannelApp: 0 614 | luminVersion: 615 | m_VersionCode: 1 616 | m_VersionName: 617 | facebookSdkVersion: 7.9.4 618 | facebookAppId: 619 | facebookCookies: 1 620 | facebookLogging: 1 621 | facebookStatus: 1 622 | facebookXfbml: 0 623 | facebookFrictionlessRequests: 1 624 | apiCompatibilityLevel: 6 625 | cloudProjectId: 626 | framebufferDepthMemorylessMode: 0 627 | projectName: 628 | organizationId: 629 | cloudEnabled: 0 630 | enableNativePlatformBackendsForNewInputSystem: 0 631 | disableOldInputManagerSupport: 0 632 | legacyClampBlendShapeWeights: 0 633 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2018.4.23f1 2 | -------------------------------------------------------------------------------- /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: 4 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 | particleRaycastBudget: 4 33 | asyncUploadTimeSlice: 2 34 | asyncUploadBufferSize: 16 35 | resolutionScalingFixedDPIFactor: 1 36 | excludedTargetPlatforms: [] 37 | - serializedVersion: 2 38 | name: Low 39 | pixelLightCount: 0 40 | shadows: 0 41 | shadowResolution: 0 42 | shadowProjection: 1 43 | shadowCascades: 1 44 | shadowDistance: 20 45 | shadowNearPlaneOffset: 3 46 | shadowCascade2Split: 0.33333334 47 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 48 | shadowmaskMode: 0 49 | blendWeights: 2 50 | textureQuality: 0 51 | anisotropicTextures: 0 52 | antiAliasing: 0 53 | softParticles: 0 54 | softVegetation: 0 55 | realtimeReflectionProbes: 0 56 | billboardsFaceCameraPosition: 0 57 | vSyncCount: 0 58 | lodBias: 0.4 59 | maximumLODLevel: 0 60 | particleRaycastBudget: 16 61 | asyncUploadTimeSlice: 2 62 | asyncUploadBufferSize: 16 63 | resolutionScalingFixedDPIFactor: 1 64 | excludedTargetPlatforms: [] 65 | - serializedVersion: 2 66 | name: Medium 67 | pixelLightCount: 1 68 | shadows: 1 69 | shadowResolution: 0 70 | shadowProjection: 1 71 | shadowCascades: 1 72 | shadowDistance: 20 73 | shadowNearPlaneOffset: 3 74 | shadowCascade2Split: 0.33333334 75 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 76 | shadowmaskMode: 0 77 | blendWeights: 2 78 | textureQuality: 0 79 | anisotropicTextures: 1 80 | antiAliasing: 0 81 | softParticles: 0 82 | softVegetation: 0 83 | realtimeReflectionProbes: 0 84 | billboardsFaceCameraPosition: 0 85 | vSyncCount: 1 86 | lodBias: 0.7 87 | maximumLODLevel: 0 88 | particleRaycastBudget: 64 89 | asyncUploadTimeSlice: 2 90 | asyncUploadBufferSize: 16 91 | resolutionScalingFixedDPIFactor: 1 92 | excludedTargetPlatforms: [] 93 | - serializedVersion: 2 94 | name: High 95 | pixelLightCount: 2 96 | shadows: 2 97 | shadowResolution: 1 98 | shadowProjection: 1 99 | shadowCascades: 2 100 | shadowDistance: 40 101 | shadowNearPlaneOffset: 3 102 | shadowCascade2Split: 0.33333334 103 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 104 | shadowmaskMode: 1 105 | blendWeights: 2 106 | textureQuality: 0 107 | anisotropicTextures: 1 108 | antiAliasing: 2 109 | softParticles: 0 110 | softVegetation: 1 111 | realtimeReflectionProbes: 1 112 | billboardsFaceCameraPosition: 1 113 | vSyncCount: 1 114 | lodBias: 1 115 | maximumLODLevel: 0 116 | particleRaycastBudget: 256 117 | asyncUploadTimeSlice: 2 118 | asyncUploadBufferSize: 16 119 | resolutionScalingFixedDPIFactor: 1 120 | excludedTargetPlatforms: [] 121 | - serializedVersion: 2 122 | name: Very High 123 | pixelLightCount: 3 124 | shadows: 2 125 | shadowResolution: 2 126 | shadowProjection: 1 127 | shadowCascades: 2 128 | shadowDistance: 40 129 | shadowNearPlaneOffset: 3 130 | shadowCascade2Split: 0.33333334 131 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 132 | shadowmaskMode: 1 133 | blendWeights: 4 134 | textureQuality: 0 135 | anisotropicTextures: 1 136 | antiAliasing: 4 137 | softParticles: 1 138 | softVegetation: 1 139 | realtimeReflectionProbes: 1 140 | billboardsFaceCameraPosition: 1 141 | vSyncCount: 1 142 | lodBias: 1.5 143 | maximumLODLevel: 0 144 | particleRaycastBudget: 1024 145 | asyncUploadTimeSlice: 2 146 | asyncUploadBufferSize: 16 147 | resolutionScalingFixedDPIFactor: 1 148 | excludedTargetPlatforms: [] 149 | - serializedVersion: 2 150 | name: Ultra 151 | pixelLightCount: 4 152 | shadows: 2 153 | shadowResolution: 2 154 | shadowProjection: 1 155 | shadowCascades: 4 156 | shadowDistance: 150 157 | shadowNearPlaneOffset: 3 158 | shadowCascade2Split: 0.33333334 159 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 160 | shadowmaskMode: 1 161 | blendWeights: 4 162 | textureQuality: 0 163 | anisotropicTextures: 1 164 | antiAliasing: 4 165 | softParticles: 1 166 | softVegetation: 1 167 | realtimeReflectionProbes: 1 168 | billboardsFaceCameraPosition: 1 169 | vSyncCount: 1 170 | lodBias: 2 171 | maximumLODLevel: 0 172 | particleRaycastBudget: 4096 173 | asyncUploadTimeSlice: 2 174 | asyncUploadBufferSize: 16 175 | resolutionScalingFixedDPIFactor: 1 176 | excludedTargetPlatforms: [] 177 | m_PerPlatformDefaultQuality: 178 | Android: 2 179 | Nintendo 3DS: 5 180 | Nintendo Switch: 5 181 | PS4: 5 182 | PSP2: 2 183 | Standalone: 5 184 | Tizen: 2 185 | WebGL: 3 186 | WiiU: 5 187 | Windows Store Apps: 5 188 | XboxOne: 5 189 | iPhone: 2 190 | tvOS: 2 191 | -------------------------------------------------------------------------------- /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 | - PostProcessing 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.1 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /ProjectSettings/UPRSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!487778994 &1 4 | UPRManager: 5 | m_openweb: 1 6 | m_screenshotEnable: 1 7 | m_objectProfilerTicker: 0 8 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 1 7 | m_Enabled: 0 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_TestInitMode: 0 13 | CrashReportingSettings: 14 | m_EventUrl: https://perf-events.cloud.unity3d.com 15 | m_Enabled: 0 16 | m_LogBufferSize: 10 17 | m_CaptureEditorExceptions: 1 18 | UnityPurchasingSettings: 19 | m_Enabled: 0 20 | m_TestMode: 0 21 | UnityAnalyticsSettings: 22 | m_Enabled: 0 23 | m_TestMode: 0 24 | m_InitializeOnStartup: 1 25 | UnityAdsSettings: 26 | m_Enabled: 0 27 | m_InitializeOnStartup: 1 28 | m_TestMode: 0 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_CopyBufferShader: {fileID: 0} 8 | m_SortShader: {fileID: 0} 9 | m_RenderPipeSettingsPath: 10 | m_FixedTimeStep: 0.016666668 11 | m_MaxDeltaTime: 0.05 12 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # HumanFramework 2 | 3 | ## 简介 4 | 5 | HumanFramework是一个以人体神经系统启发的一个以消息中心与IoC容器结合的解耦框架。 6 | 7 | ## 框架模块 8 | 9 | ### 消息中心 10 | 11 | ![](./DocImg/SignalContainer.png) 12 | 13 | ### IoC注入 14 | 15 | ![IoC](./DocImg/IoC.png) 16 | 17 | ### 对象池 18 | 19 | ![ObjPool](./DocImg/ObjPool.png) 20 | 21 | ## 代码规范 22 | 23 | ```c# 24 | //使用单行注释方式 25 | 26 | //对public的成员变量使用Pascal写法 27 | public int Health; 28 | 29 | //对private的成员变量使用m+Pascal写法 30 | private int mHealth; 31 | 32 | //方法一律采用Pascal写法 33 | //花括号需要换行对齐 34 | public void OnDamage() 35 | { 36 | 37 | } 38 | 39 | //接口名称加上字母I前缀 40 | public interface IServiceProvider 41 | ``` 42 | 43 | --------------------------------------------------------------------------------