├── .github └── FUNDING.yml ├── ProjectSettings ├── ProjectVersion.txt ├── ClusterInputManager.asset ├── PresetManager.asset ├── NetworkManager.asset ├── XRSettings.asset ├── TimeManager.asset ├── VFXManager.asset ├── AudioManager.asset ├── TagManager.asset ├── EditorBuildSettings.asset ├── DynamicsManager.asset ├── UnityConnectSettings.asset ├── PackageManagerSettings.asset └── EditorSettings.asset ├── Assets ├── UnityCommon │ ├── Plugins │ │ ├── NLayer.dll │ │ ├── WebGLExtensions.jslib │ │ └── WebGLExtensions.jslib.meta │ ├── Runtime │ │ ├── Async │ │ │ ├── Semaphore.cs.meta │ │ │ ├── UniTask │ │ │ │ ├── Public.meta │ │ │ │ ├── Public │ │ │ │ │ ├── PlayerLoopTiming.cs.meta │ │ │ │ │ ├── UniTask.cs.meta │ │ │ │ │ ├── UniTask.Delay.cs.meta │ │ │ │ │ ├── UniTask.Run.cs.meta │ │ │ │ │ ├── UniTaskVoid.cs.meta │ │ │ │ │ ├── UniTask.Bridge.cs.meta │ │ │ │ │ ├── UniTask.Factory.cs.meta │ │ │ │ │ ├── UniTask.Threading.cs.meta │ │ │ │ │ ├── UniTask.WaitUntil.cs.meta │ │ │ │ │ ├── UniTask.WhenAll.cs.meta │ │ │ │ │ ├── UniTask.WhenAny.cs.meta │ │ │ │ │ ├── UniTaskExtensions.cs.meta │ │ │ │ │ ├── UniTaskCompletionSource.cs.meta │ │ │ │ │ ├── UnityAsyncExtensions.cs.meta │ │ │ │ │ ├── EnumeratorAsyncExtensions.cs.meta │ │ │ │ │ ├── UniTask.WhenAll.Generated.cs.meta │ │ │ │ │ ├── UniTask.WhenAny.Generated.cs.meta │ │ │ │ │ ├── UniTaskExtensions.Shorthand.cs.meta │ │ │ │ │ ├── UniTask.Bridge.cs │ │ │ │ │ └── UniTaskVoid.cs │ │ │ │ ├── Internal │ │ │ │ │ ├── UniTaskSynchronizationContext.cs.meta │ │ │ │ │ ├── Error.cs.meta │ │ │ │ │ ├── ArrayPool.cs.meta │ │ │ │ │ ├── ArrayUtil.cs.meta │ │ │ │ │ ├── LazyPromise.cs.meta │ │ │ │ │ ├── ArrayPoolUtil.cs.meta │ │ │ │ │ ├── FuncExtensions.cs.meta │ │ │ │ │ ├── MinimumQueue.cs.meta │ │ │ │ │ ├── PlayerLoopRunner.cs.meta │ │ │ │ │ ├── ReusablePromise.cs.meta │ │ │ │ │ ├── ContinuationQueue.cs.meta │ │ │ │ │ ├── UnityEqualityComparer.cs.meta │ │ │ │ │ ├── RuntimeHelpersAbstraction.cs.meta │ │ │ │ │ └── FuncExtensions.cs │ │ │ │ ├── LICENSE.txt.meta │ │ │ │ ├── Internal.meta │ │ │ │ ├── CompilerServices.meta │ │ │ │ ├── AsyncUnit.cs.meta │ │ │ │ ├── IAwaiter.cs.meta │ │ │ │ ├── PlayerLoopHelper.cs.meta │ │ │ │ ├── UniTaskScheduler.cs.meta │ │ │ │ ├── CancellationTokenEqualityComparer.cs.meta │ │ │ │ ├── CompilerServices │ │ │ │ │ ├── MoveNextRunner.cs.meta │ │ │ │ │ ├── AsyncMethodBuilderAttribute.cs.meta │ │ │ │ │ ├── AsyncUniTaskMethodBuilder.cs.meta │ │ │ │ │ ├── AsyncUniTaskVoidMethodBuilder.cs.meta │ │ │ │ │ ├── AsyncMethodBuilderAttribute.cs │ │ │ │ │ └── MoveNextRunner.cs │ │ │ │ ├── AsyncUnit.cs │ │ │ │ ├── CancellationTokenEqualityComparer.cs │ │ │ │ └── LICENSE.txt │ │ │ ├── CancelOnDestroy.cs.meta │ │ │ ├── AsyncOperationCanceledException.cs.meta │ │ │ ├── AsyncOperationDestroyedException.cs.meta │ │ │ ├── UniTask.meta │ │ │ ├── AsyncToken.cs.meta │ │ │ ├── CancelOnDestroy.cs │ │ │ ├── AsyncOperationDestroyedException.cs │ │ │ └── AsyncOperationCanceledException.cs │ │ ├── Collections │ │ │ ├── AsyncQueue.cs.meta │ │ │ ├── IntRange.cs.meta │ │ │ ├── ListPool.cs.meta │ │ │ ├── Named.cs.meta │ │ │ ├── Nullable.cs.meta │ │ │ ├── Pair.cs.meta │ │ │ ├── LiteralMap.cs.meta │ │ │ ├── ObjectPool.cs.meta │ │ │ ├── SerializableMap.cs.meta │ │ │ ├── ListPool.cs │ │ │ ├── LiteralMap.cs │ │ │ ├── Pair.cs │ │ │ └── AsyncQueue.cs │ │ ├── Tween │ │ │ ├── QuaternionTween.cs.meta │ │ │ ├── EasingType.cs.meta │ │ │ ├── EasingFunctions.cs.meta │ │ │ ├── Tweener.cs.meta │ │ │ ├── ColorTween.cs.meta │ │ │ ├── FloatTween.cs.meta │ │ │ ├── ITweenValue.cs.meta │ │ │ ├── VectorTween.cs.meta │ │ │ ├── ITweenValue.cs │ │ │ └── EasingType.cs │ │ ├── ScriptableUI │ │ │ ├── AlphaThreshold.cs.meta │ │ │ ├── DragDrop.cs.meta │ │ │ ├── DragDropHandle.cs.meta │ │ │ ├── ScriptableGrid.cs.meta │ │ │ ├── ScriptableGridSlot.cs.meta │ │ │ ├── LabeledButton.cs.meta │ │ │ ├── ScriptableButton.cs.meta │ │ │ ├── ScriptableSlider.cs.meta │ │ │ ├── ScriptableDropdown.cs.meta │ │ │ ├── ScriptableScrollRect.cs.meta │ │ │ ├── ScriptableUIBehaviour.cs.meta │ │ │ ├── ScriptableUIComponent.cs.meta │ │ │ ├── ScriptableUIControl.cs.meta │ │ │ ├── ScriptableLabeledButton.cs.meta │ │ │ ├── ScriptableUIComponent.cs │ │ │ ├── AlphaThreshold.cs │ │ │ ├── DragDropHandle.cs │ │ │ ├── ScriptableUIControl.cs │ │ │ ├── ScriptableSlider.cs │ │ │ ├── ScriptableDropdown.cs │ │ │ ├── ScriptableScrollRect.cs │ │ │ ├── ScriptableLabeledButton.cs │ │ │ └── ScriptableButton.cs │ │ ├── ResourceProvider │ │ │ ├── IHoldersTracker.cs.meta │ │ │ ├── IResourceLoader.cs.meta │ │ │ ├── ProvisionSource.cs.meta │ │ │ ├── ResourceLoader.cs.meta │ │ │ ├── CachedResourceLocation.cs.meta │ │ │ ├── ProjectFolderLocator.cs.meta │ │ │ ├── ProviderListExtensions.cs.meta │ │ │ ├── GoogleDriveFolderLocator.cs.meta │ │ │ ├── ResourceLoaderExtensions.cs.meta │ │ │ ├── VirtualResourceProvider.cs.meta │ │ │ ├── Resource.cs.meta │ │ │ ├── IResourceProvider.cs.meta │ │ │ ├── LocalFolderLocator.cs.meta │ │ │ ├── ProjectResources.cs.meta │ │ │ ├── ResourceProvider.cs.meta │ │ │ ├── ResourceRunner.cs.meta │ │ │ ├── LocalResourceLoader.cs.meta │ │ │ ├── LocalResourceLocator.cs.meta │ │ │ ├── LocalResourceProvider.cs.meta │ │ │ ├── ProjectResourceLoader.cs.meta │ │ │ ├── ProjectResourceLocator.cs.meta │ │ │ ├── ProjectResourceProvider.cs.meta │ │ │ ├── AddressableFolderLocator.cs.meta │ │ │ ├── AddressableResourceLoader.cs.meta │ │ │ ├── AddressableResourceLocator.cs.meta │ │ │ ├── AddressableResourceProvider.cs.meta │ │ │ ├── GoogleDriveResourceLoader.cs.meta │ │ │ ├── GoogleDriveResourceLocator.cs.meta │ │ │ ├── GoogleDriveResourceProvider.cs.meta │ │ │ ├── AddressableFolderLocator.cs │ │ │ ├── ProjectFolderLocator.cs │ │ │ ├── AddressableResourceLocator.cs │ │ │ ├── ProjectResourceLocator.cs │ │ │ └── CachedResourceLocation.cs │ │ ├── AssemblyAttributes.cs │ │ ├── Async.meta │ │ ├── SaveSlotManager.meta │ │ ├── Elringus.UnityCommon.Runtime.asmdef.meta │ │ ├── Audio.meta │ │ ├── Gameplay.meta │ │ ├── Tween.meta │ │ ├── Utilities.meta │ │ ├── Attributes.meta │ │ ├── Collections.meta │ │ ├── Converters.meta │ │ ├── ScriptableUI.meta │ │ ├── ResourceProvider.meta │ │ ├── Attributes │ │ │ ├── ReadOnlyAttribute.cs │ │ │ ├── DrawAsEulerAttribute.cs │ │ │ ├── DrawAsEulerAttribute.cs.meta │ │ │ ├── OptionalDependencyAttribute.cs.meta │ │ │ ├── EvenRangeAttribute.cs.meta │ │ │ ├── IntPopupAttribute.cs.meta │ │ │ ├── ReadOnlyAttribute.cs.meta │ │ │ ├── FolderAssetAttribute.cs.meta │ │ │ ├── MinMaxRangeAttribute.cs.meta │ │ │ ├── ScriptOrderAttribute.cs.meta │ │ │ ├── FolderAssetAttribute.cs │ │ │ ├── MinMaxRangeAttribute.cs │ │ │ ├── ScriptOrderAttribute.cs │ │ │ ├── EvenRangeAttribute.cs │ │ │ ├── IntPopupAttribute.cs │ │ │ └── OptionalDependencyAttribute.cs │ │ ├── Error.cs.meta │ │ ├── Rotator.cs.meta │ │ ├── AspectMonitor.cs.meta │ │ ├── Error.cs │ │ ├── AssemblyAttributes.cs.meta │ │ ├── Utilities │ │ │ ├── PathUtils.cs.meta │ │ │ ├── ArrayUtils.cs.meta │ │ │ ├── AsyncUtils.cs.meta │ │ │ ├── ParseUtils.cs.meta │ │ │ ├── ResourceUtils.cs.meta │ │ │ ├── ReflectionUtils.cs.meta │ │ │ ├── SyncContextUtils.cs.meta │ │ │ ├── ColorUtils.cs │ │ │ ├── ColorUtils.cs.meta │ │ │ ├── EventUtils.cs.meta │ │ │ ├── IOUtils.cs.meta │ │ │ ├── LinqUtils.cs.meta │ │ │ ├── MaskUtils.cs.meta │ │ │ ├── MathUtils.cs.meta │ │ │ ├── RegexUtils.cs.meta │ │ │ ├── UIUtils.cs.meta │ │ │ ├── WebUtils.cs.meta │ │ │ ├── ComponentUtils.cs.meta │ │ │ ├── CryptoUtils.cs.meta │ │ │ ├── GraphicUtils.cs.meta │ │ │ ├── ObjectUtils.cs.meta │ │ │ ├── SpriteUtils.cs.meta │ │ │ ├── StringUtils.cs.meta │ │ │ ├── TextureUtils.cs.meta │ │ │ ├── TransformUtils.cs.meta │ │ │ ├── WebGLExtensions.cs.meta │ │ │ ├── RegexUtils.cs │ │ │ ├── WebGLExtensions.cs │ │ │ ├── GraphicUtils.cs │ │ │ ├── MaskUtils.cs │ │ │ ├── SyncContextUtils.cs │ │ │ └── AsyncUtils.cs │ │ ├── ApplicationBehaviour.cs.meta │ │ ├── Timer.cs.meta │ │ ├── Context.cs.meta │ │ ├── Folder.cs.meta │ │ ├── FpsDisplay.cs.meta │ │ ├── SaveSlotManager │ │ │ ├── IOSaveSlotManager.cs.meta │ │ │ ├── ISaveSlotManager.cs.meta │ │ │ ├── PlayerPrefsSaveSlotManager.cs.meta │ │ │ └── TransientSaveSlotManager.cs.meta │ │ ├── Updater.cs.meta │ │ ├── GameObjectPool.cs.meta │ │ ├── SceneSwitcher.cs.meta │ │ ├── ActionWaitHandle.cs.meta │ │ ├── ActiveWhenVisible.cs.meta │ │ ├── Audio │ │ │ ├── AudioTrack.cs.meta │ │ │ └── AudioController.cs.meta │ │ ├── Gameplay │ │ │ ├── Billboard.cs.meta │ │ │ ├── CameraShaker.cs.meta │ │ │ ├── ParallaxLayer.cs.meta │ │ │ ├── TopDownCamera.cs.meta │ │ │ ├── CharacterController2D.cs.meta │ │ │ ├── CharacterController3D.cs.meta │ │ │ └── ParallaxLayer.cs │ │ ├── ModifyFrustumCulling.cs.meta │ │ ├── Converters │ │ │ ├── IConverter.cs.meta │ │ │ ├── IRawConverter.cs.meta │ │ │ ├── GDocToTextAssetConverter.cs.meta │ │ │ ├── IGoogleDriveConverter.cs.meta │ │ │ ├── JpgToSpriteConverter.cs.meta │ │ │ ├── Mp3ToAudioClipConverter.cs.meta │ │ │ ├── PngToSpriteConverter.cs.meta │ │ │ ├── PngToTextureConverter.cs.meta │ │ │ ├── TxtToTextAssetConverter.cs.meta │ │ │ ├── WavToAudioClipConverter.cs.meta │ │ │ ├── JpgOrPngToSpriteConverter.cs.meta │ │ │ ├── JpgOrPngToTextureConverter.cs.meta │ │ │ ├── IGoogleDriveConverter.cs │ │ │ ├── IConverter.cs │ │ │ ├── IRawConverter.cs │ │ │ ├── TxtToTextAssetConverter.cs │ │ │ ├── GDocToTextAssetConverter.cs │ │ │ ├── PngToTextureConverter.cs │ │ │ ├── JpgOrPngToTextureConverter.cs │ │ │ ├── JpgToSpriteConverter.cs │ │ │ └── PngToSpriteConverter.cs │ │ ├── RegisterSceneInContext.cs.meta │ │ ├── ProxyTrigger.cs.meta │ │ ├── ProxyBehaviour.cs.meta │ │ ├── Rotator.cs │ │ ├── Folder.cs │ │ ├── ModifyFrustumCulling.cs │ │ ├── ProxyTrigger.cs │ │ ├── ActiveWhenVisible.cs │ │ ├── RegisterSceneInContext.cs │ │ ├── ApplicationBehaviour.cs │ │ ├── SceneSwitcher.cs │ │ ├── ProxyBehaviour.cs │ │ ├── Updater.cs │ │ └── FpsDisplay.cs │ ├── WebGLTemplates │ │ ├── Borderless │ │ │ ├── thumbnail.png │ │ │ ├── Template │ │ │ │ └── loader.png │ │ │ ├── index.html.meta │ │ │ └── Template.meta │ │ └── Borderless.meta │ ├── package.json.meta │ ├── Editor.meta │ ├── Plugins.meta │ ├── Runtime.meta │ ├── WebGLTemplates.meta │ ├── Editor │ │ ├── ResourceProvider.meta │ │ ├── Elringus.UnityCommon.Editor.asmdef.meta │ │ ├── SwapScript.cs.meta │ │ ├── CaptureScreenshot.cs.meta │ │ ├── CountLinesOfCode.cs.meta │ │ ├── PlayerPrefsEditor.cs.meta │ │ ├── WebGLBuildProcessor.cs.meta │ │ ├── DrawAsEulerPropertyDrawer.cs.meta │ │ ├── ProjectResourcesBuildProcessor.cs.meta │ │ ├── SerializableMapPropertyDrawer.cs.meta │ │ ├── AutoSave.cs.meta │ │ ├── EditorUtils.cs.meta │ │ ├── PackageExporter.cs.meta │ │ ├── FolderAssetHelper.cs.meta │ │ ├── ScriptOrderManager.cs.meta │ │ ├── EvenRangePropertyDrawer.cs.meta │ │ ├── FolderAssetPropertyDrawer.cs.meta │ │ ├── IntPopupPropertyDrawer.cs.meta │ │ ├── MinMaxRangePropertyDrawer.cs.meta │ │ ├── ReadOnlyPropertyDrawer.cs.meta │ │ ├── ResourceProvider │ │ │ ├── EditorFolderLocator.cs.meta │ │ │ ├── EditorResourceLoader.cs.meta │ │ │ ├── EditorResourceLocator.cs.meta │ │ │ ├── EditorResourceProvider.cs.meta │ │ │ ├── EditorFolderLocator.cs │ │ │ └── EditorResourceLocator.cs │ │ ├── LabeledButtonEditor.cs.meta │ │ ├── Elringus.UnityCommon.Editor.asmdef │ │ ├── EvenRangePropertyDrawer.cs │ │ ├── FolderAssetPropertyDrawer.cs │ │ ├── ReadOnlyPropertyDrawer.cs │ │ ├── WebGLBuildProcessor.cs │ │ ├── IntPopupPropertyDrawer.cs │ │ ├── ScriptOrderManager.cs │ │ ├── DrawAsEulerPropertyDrawer.cs │ │ ├── AutoSave.cs │ │ ├── CaptureScreenshot.cs │ │ ├── ProjectResourcesBuildProcessor.cs │ │ ├── MinMaxRangePropertyDrawer.cs │ │ └── LabeledButtonEditor.cs │ └── package.json ├── Scenes │ ├── Async.unity.meta │ ├── Audio.unity.meta │ ├── Tweener.unity.meta │ ├── CryptoUtils.unity.meta │ ├── Nullables.unity.meta │ ├── ScriptableUI.unity.meta │ ├── ResourceProvider.unity.meta │ ├── ApplicationBehaviour.unity.meta │ └── CharacterController3D.unity.meta ├── Editor.meta ├── Scripts │ ├── TestSerializableMapDrawer.cs │ ├── TestAsync.cs.meta │ ├── TestTweener.cs.meta │ ├── TestUpdater.cs.meta │ ├── TestAudioController.cs.meta │ ├── TestSerializableMapDrawer.cs.meta │ ├── TestCryptoUtils.cs.meta │ ├── TestNullables.cs.meta │ ├── TestResourceProvider.cs.meta │ ├── TestApplicationBehaviour.cs.meta │ ├── TestCryptoUtils.cs │ ├── TestApplicationBehaviour.cs │ ├── TestTweener.cs │ ├── TestAudioController.cs │ ├── TestAsync.cs │ ├── TestNullables.cs │ └── TestUpdater.cs ├── Materials.meta ├── Scenes.meta ├── Scripts.meta ├── UnityCommon.meta ├── Materials │ ├── Ground.mat.meta │ ├── Player.mat.meta │ └── PlayerGlasses.mat.meta └── Editor │ ├── EditorTestScript.cs │ ├── EditorTestScript.cs.meta │ ├── ProjectFileHook.cs.meta │ ├── SetEditorProviderToTestScript.cs.meta │ └── SetEditorProviderToTestScript.cs ├── README.md ├── publish.sh ├── .gitattributes └── LICENSE /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: Elringus 2 | ko_fi: elringus 3 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2019.4.40f1 2 | m_EditorVersionWithRevision: 2019.4.40f1 (ffc62b691db5) 3 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Plugins/NLayer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elringus/unity-common/HEAD/Assets/UnityCommon/Plugins/NLayer.dll -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/Semaphore.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2ead6c457ef64e4fbab9d16acee60a17 3 | timeCreated: 1666280099 -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Public.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eceb96eea4e44054bfba2d7cb729de0a 3 | timeCreated: 1633818719 -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/CancelOnDestroy.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7ee843c8a3bf4dfab4c66d811c2c8f83 3 | timeCreated: 1654091040 -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Collections/AsyncQueue.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 70379072658e4c36b74afe78f947e779 3 | timeCreated: 1632145917 -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Tween/QuaternionTween.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 025d15eecfad4da8b33ee29e68e5aa41 3 | timeCreated: 1618588609 -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ScriptableUI/AlphaThreshold.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3cde80954c4640d790f0f0b95a89c486 3 | timeCreated: 1632338690 -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/IHoldersTracker.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 68a19870f9bf4c58992e77cb40c5edf0 3 | timeCreated: 1613984145 -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/AsyncOperationCanceledException.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8d58f2d6afac41f9a40b0653d0e41996 3 | timeCreated: 1628002704 -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Public/PlayerLoopTiming.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b421151d169d400c827db4d1d2cb54a0 3 | timeCreated: 1633819245 -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/AsyncOperationDestroyedException.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5e8e4fd33f9545ad8a0146b4fe9ff01b 3 | timeCreated: 1628348767 -------------------------------------------------------------------------------- /Assets/UnityCommon/WebGLTemplates/Borderless/thumbnail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elringus/unity-common/HEAD/Assets/UnityCommon/WebGLTemplates/Borderless/thumbnail.png -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Internal/UniTaskSynchronizationContext.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 57132b02913f4abc880f134a39494bd8 3 | timeCreated: 1634308882 -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | m_DefaultList: [] 7 | -------------------------------------------------------------------------------- /Assets/UnityCommon/WebGLTemplates/Borderless/Template/loader.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elringus/unity-common/HEAD/Assets/UnityCommon/WebGLTemplates/Borderless/Template/loader.png -------------------------------------------------------------------------------- /Assets/Scenes/Async.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7c720baa9771f944da70331d04961ad9 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/Audio.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7fea7f58cb465d342b998467eea7c33d 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/Tweener.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bb8f19f7a1600484dae941e1b1c45d36 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e4698cab74b9ee94ea1463661fad0e5a 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityCommon/package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c937a4cfa5eefd74f96aa03a0438da95 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Assets/Scripts/TestSerializableMapDrawer.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityCommon; 3 | 4 | public class TestSerializableMapDrawer : MonoBehaviour 5 | { 6 | public SerializableLiteralStringMap Map; 7 | 8 | 9 | } 10 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 975b83fd6ee53bc4b8fa6a5086fb1ee0 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f5d1f611a5bfe264cb4770103f0f7fa1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f06e8c14257d4e947b55cba9ca74f2f9 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /ProjectSettings/XRSettings.asset: -------------------------------------------------------------------------------- 1 | { 2 | "m_SettingKeys": [ 3 | "VR Device Disabled", 4 | "VR Device User Alert" 5 | ], 6 | "m_SettingValues": [ 7 | "False", 8 | "False" 9 | ] 10 | } -------------------------------------------------------------------------------- /Assets/Scenes/CryptoUtils.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a3e477ecb420f8547bdeb34f138651d3 3 | timeCreated: 1509035926 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/Nullables.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9f69bbf98c6d2da45a0985388d6921db 3 | timeCreated: 1514632305 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/ScriptableUI.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6cec814ca68cdaf489b5dccf2144c2b4 3 | timeCreated: 1509035926 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/AssemblyAttributes.cs: -------------------------------------------------------------------------------- 1 | 2 | // Make sure none of the assembly types are stripped when building with IL2CPP. 3 | [assembly: UnityEngine.Scripting.AlwaysLinkAssembly] 4 | [assembly: UnityEngine.Scripting.Preserve] 5 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0fce08871841d3c49a6e72de3f0ac3f9 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/LICENSE.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dbbbaabb0c2243e498046a1d338a4155 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/UnityCommon/WebGLTemplates.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: daac8f189f091564c84b8ef6b03fd918 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Installation 2 | 3 | Add `"com.elringus.unitycommon": "https://github.com/Elringus/UnityCommon.git#package"` as a dependency for your project's `Packages/manifest.json` ([guide](https://docs.unity3d.com/Manual/upm-git.html)). 4 | -------------------------------------------------------------------------------- /Assets/Scenes/ResourceProvider.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e730455ef68a2c0429f088a101f46911 3 | timeCreated: 1509035926 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/ApplicationBehaviour.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 65520c88853c9a9439ba335af7dc06c3 3 | timeCreated: 1514632305 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/CharacterController3D.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0b60df0088ac49e49be84b932ce64889 3 | timeCreated: 1503243188 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/ResourceProvider.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c2421714bae39ec4abfff44885170cab 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8cb8ead10bcb1bc4e88b5c092d9063c1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/SaveSlotManager.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7576fcd0fc8565e4695f5e745973e6b1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 28cd5aab21722b845af7df0c87d4da5e 3 | folderAsset: yes 4 | timeCreated: 1506690693 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b35e76887911f724fa9754e815fa807d 3 | folderAsset: yes 4 | timeCreated: 1506008994 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ca6f35411f4651d46b0c38de879e662d 3 | folderAsset: yes 4 | timeCreated: 1509035767 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Internal.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3405669b8aa10b44b8c8ff2be7ca17d2 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityCommon.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 41adb92f6f0e2eb46ad0e91e4210b0e7 3 | folderAsset: yes 4 | timeCreated: 1506008784 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/Elringus.UnityCommon.Editor.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 58007fb1d5901a543a8d7ed5f013e184 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Elringus.UnityCommon.Runtime.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 87e2381f93a6a0348b03f5df7fdac208 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/CompilerServices.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e467bfb48473ff14f96f38c0b54ce931 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityCommon/WebGLTemplates/Borderless/index.html.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6c061f68f4a9b13429b50db0abf6aee0 3 | timeCreated: 1509299844 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Audio.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aed6ccead5e961b4e9c2021d173e0610 3 | folderAsset: yes 4 | timeCreated: 1517669022 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Gameplay.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4772fa4d264949f46bd98777320c7cd0 3 | folderAsset: yes 4 | timeCreated: 1508579578 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Tween.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0fde84fcf730af94486a2de9c5cf36f6 3 | folderAsset: yes 4 | timeCreated: 1512746693 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e86bb723d8c9f2547be488588d4ff039 3 | folderAsset: yes 4 | timeCreated: 1500567207 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Attributes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 23626c80a4abb704f9c1d3e9eca7c170 3 | folderAsset: yes 4 | timeCreated: 1500754109 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Collections.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e5ed4c5eba844304898b9db7e6e8ac95 3 | folderAsset: yes 4 | timeCreated: 1501159506 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Converters.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cc76e1bf88212bc41a8ace986ed95236 3 | folderAsset: yes 4 | timeCreated: 1511273683 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ScriptableUI.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fc256a1261c300642b69585327ee9eaf 3 | folderAsset: yes 4 | timeCreated: 1499438270 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /Assets/Materials/Ground.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f86f4cc8664b89140aafd2a7d3a87233 3 | timeCreated: 1506690699 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Materials/Player.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6fa1a9234dce0a24d9d078ed4595f66a 3 | timeCreated: 1506690699 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 99276dab72856b041b5c5770bb76fe77 3 | folderAsset: yes 4 | timeCreated: 1508775420 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityCommon/WebGLTemplates/Borderless.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5c2c84dc274cf1640a49a8d48014e3fc 3 | folderAsset: yes 4 | timeCreated: 1509299844 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Editor/EditorTestScript.cs: -------------------------------------------------------------------------------- 1 | public class EditorTestScript 2 | { 3 | //[MenuItem("Test/Install Shader")] 4 | private static void InstallShader () 5 | { 6 | //BlendModes.ExtensionsManager.InstallShaderExtension("UIDefault"); 7 | } 8 | 9 | 10 | } 11 | -------------------------------------------------------------------------------- /Assets/Materials/PlayerGlasses.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6060b5b24753d6d4ebb1f264d79137e4 3 | timeCreated: 1506690699 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Attributes/ReadOnlyAttribute.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace UnityCommon 4 | { 5 | /// 6 | /// The field won't be editable in the editor. 7 | /// 8 | public class ReadOnlyAttribute : PropertyAttribute { } 9 | } 10 | -------------------------------------------------------------------------------- /Assets/UnityCommon/WebGLTemplates/Borderless/Template.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dc7178879265d8148a7205a7cec82cda 3 | folderAsset: yes 4 | timeCreated: 1509299844 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /publish.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # abort on errors 4 | set -e 5 | 6 | cd Assets/UnityCommon 7 | 8 | git init 9 | git add -A 10 | git add -f Plugins/NLayer.dll 11 | 12 | git commit -m 'publish' 13 | git push -f git@github.com:Elringus/UnityCommon.git master:package 14 | 15 | cd - -------------------------------------------------------------------------------- /Assets/UnityCommon/Plugins/WebGLExtensions.jslib: -------------------------------------------------------------------------------- 1 | mergeInto(LibraryManager.library, { 2 | 3 | SyncFs: function () { 4 | FS.syncfs(false, function (err) { }); 5 | }, 6 | 7 | OpenURL: function (url, target) { 8 | window.open(UTF8ToString(url), UTF8ToString(target)); 9 | } 10 | 11 | }); 12 | -------------------------------------------------------------------------------- /Assets/Scripts/TestAsync.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 15e6c522c0ad43749b1cacf162c27148 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/TestTweener.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 40fb863db8036d248b316c78745758a5 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/TestUpdater.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 98e76dcf8033e3b49bfd508954e3697e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Editor/EditorTestScript.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ea990ba6d78295346b6ef8d6ed74e1d1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Editor/ProjectFileHook.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1c00f50c360baaf40b958f03aabf0779 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/TestAudioController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1402e4fcd21e600418cf8a07522ef5b1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/SwapScript.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f129c42cebe790c4983f657bca0a9308 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Error.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5474d45c81d50644caff0e7b5407fb31 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Rotator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1da42c76f5b62634e82841eee309563b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/TestSerializableMapDrawer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 61001ccf7297a694797110c220ee4ac2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/AspectMonitor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b506debe0f4b8fa41bf27f50cab1e246 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Error.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityCommon 4 | { 5 | public class Error : Exception 6 | { 7 | public Error () { } 8 | public Error (string message) : base(message) { } 9 | public Error (string message, Exception inner) : base(message, inner) { } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Assets/Editor/SetEditorProviderToTestScript.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3dc648c87b3530d44a564940889ff6eb 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/CaptureScreenshot.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 74a24a5d82689b44fad73135d5692008 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/CountLinesOfCode.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6d17de641fd0f5f429125926eb638e29 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/PlayerPrefsEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c12cfee619558784797e942e421de9af 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/WebGLBuildProcessor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d7494b5381af08345b57d4004e06dc62 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/AssemblyAttributes.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fca2ec6c4cd687f499ce8aef5b06f5da 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/AsyncToken.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 061d142c8ccfbe94382eaeb17818e1b9 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Attributes/DrawAsEulerAttribute.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace UnityCommon 4 | { 5 | /// 6 | /// When applied to a field, draws it as euler. 7 | /// 8 | public class DrawAsEulerAttribute : PropertyAttribute { } 9 | } 10 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Tween/EasingType.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cd2e28523ed85c7459ce562acad1e9c3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/PathUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3e26b355513adea4f82759c8e342441a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/DrawAsEulerPropertyDrawer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 512c23e556c2ea540b5f03ec2625512c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ApplicationBehaviour.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 859664fb2fdd05947adbdfdae59a6bee 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/AsyncUnit.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a9df4a984dec7a84aab941bb039714bd 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/IAwaiter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 77eb48998c3a16f4ba70d28a5c223c84 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Collections/IntRange.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d47f7f925eda7ea4fb52def58527b969 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ScriptableUI/DragDrop.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 639d857c12c91564583385e96b6f64c4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Tween/EasingFunctions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8b6b6c37640ee0e4c81a24826296c76f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/ArrayUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4f7cbad77d58eb647b8e9396966e8e6e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/AsyncUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9842d57beeb340442a9d24e2f6617412 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/ParseUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 88e65d76c7eb63e4686d483a755675e4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/ResourceUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b95fef35f90f1ed4f90e89290984b87e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/TestCryptoUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6030171f651332e41b0229761a828bba 3 | timeCreated: 1509035779 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/TestNullables.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b4ff2611b9c7e8048bbc92f7604f0c5b 3 | timeCreated: 1514743537 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/ProjectResourcesBuildProcessor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5f73af91ebb4ba74398a6a86d57e9cde 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/SerializableMapPropertyDrawer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 64378b3f79ae98a4db6c88668d46686d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Internal/Error.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a283269d83c77d248976ed55262ab350 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Public/UniTask.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b452ffa8fe904394ba4a7b16f57b453b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ScriptableUI/DragDropHandle.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 033fcb7f06ed24644939f21ab75655e9 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ScriptableUI/ScriptableGrid.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c005b35dc3af80b42bc3f75a49c68e9e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Timer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 564f84312ab4272408f4efbad0649b60 3 | timeCreated: 1500833529 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/ReflectionUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 973fdfcb202cb6e4aa9c29fb4ec7128b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/SyncContextUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6c4fd6141d23d9c4aaae7219fddf2b11 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "com.elringus.unitycommon", 3 | "version": "1.0.0", 4 | "displayName": "UnityCommon", 5 | "description": "A collection of common frameworks and tools for Unity-based projects", 6 | "unity": "2019.4", 7 | "author": { 8 | "name": "Elringus", 9 | "url": "https://elringus.me" 10 | } 11 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Assets/Scripts/TestResourceProvider.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ae399beea9f7614488dc21c9e3d4896f 3 | timeCreated: 1509035779 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/AutoSave.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 98508071128a2fe449c8dfe04ed78744 3 | timeCreated: 1500754169 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/EditorUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2896dc19dd4e1dd4a804d0e805712242 3 | timeCreated: 1505228820 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Internal/ArrayPool.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 24f70774f251e954eaab32ebd8987b5d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Internal/ArrayUtil.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 225a43b2b1423984c89da6a1be59a4d7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Internal/LazyPromise.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e58793bfe0afee5419128513ae975db1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/PlayerLoopHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cba0c4e094cc2cf4f9cbc1a1b8497801 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Public/UniTask.Delay.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f8f03697c0b60e44489d4731c1f666b4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Public/UniTask.Run.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ccefd09ff0ebdbd458e97fd4357ba75e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Public/UniTaskVoid.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8257ab94f5824f04392e8286825a573f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/UniTaskScheduler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c8d660a6584865847bee8c26c88df7bd 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Attributes/DrawAsEulerAttribute.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: abcf21bec4ea6c04f8522d608706c57d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Context.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e49cd932df21e4243859ff34f3b179fe 3 | timeCreated: 1500378278 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Folder.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3022723a04dabc3479e085f39ad9eec2 3 | timeCreated: 1516804867 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/FpsDisplay.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d74d94cf5d713e54c9947b3b9b669fe8 3 | timeCreated: 1508579789 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/IResourceLoader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aa3d6bd99961ac74dbc03cff8718a205 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/ProvisionSource.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f2694eea30e172241a5f1ecefbee5f96 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/ResourceLoader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d4a2f8aa33afc2e4290a5ceb98c34e8b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/SaveSlotManager/IOSaveSlotManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 47bb6340b9e60e74e89186dfe2987467 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/SaveSlotManager/ISaveSlotManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1529d4c4456478d4f80e7db08d4e9fbf 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ScriptableUI/ScriptableGridSlot.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ecd2994d3aeb6645b00f4e6d179ba7d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Updater.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cc4d4ef5470638b489bb243e7dbad2b0 3 | timeCreated: 1507197439 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Scripts/TestApplicationBehaviour.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0d09c765db3c9b449a9114f73acd2e77 3 | timeCreated: 1514743537 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/PackageExporter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d39fdb714e45c404fbbd6d6f500944c4 3 | timeCreated: 1506010554 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Internal/ArrayPoolUtil.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 61667d59465666349a4b1999675a4cee 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Internal/FuncExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f076730a54f61a541896319036d8fdd3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Internal/MinimumQueue.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 48eaf01c1f0ff2c409dba01fe22219f7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Internal/PlayerLoopRunner.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b2237c2418d166940ba5420eebe2ceb3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Internal/ReusablePromise.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe3721e6bff39b24cba9eb6abf508979 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Public/UniTask.Bridge.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2a0aecec03d6e7f42bbeb47531ec9150 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Public/UniTask.Factory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1142264a1bd085747b9e429829a61395 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Public/UniTask.Threading.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f59e00789b6802242b50db85c5c2a628 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Public/UniTask.WaitUntil.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 23c316e4f7b32f84a99a66b076ff4d47 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Public/UniTask.WhenAll.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: abbef9fcec4518144b2ce96e7eecfabc 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Public/UniTask.WhenAny.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a174ffb87147308489e6fb01255e2900 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Public/UniTaskExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 50aad039cf0727041ad469059cedd9f0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Attributes/OptionalDependencyAttribute.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c16f62fdf6c1e5f4f9b26cc69ded65db 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/GameObjectPool.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ec3bac546fc0d3c4595adcf6726f151e 3 | timeCreated: 1501357233 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/CachedResourceLocation.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4d2d31061f76f5141b73f4ee7f03416d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/ProjectFolderLocator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bf87ecedefc8aad498debea9f88eaf0d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/ProviderListExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 368bc695951a4394c9353d1ca630619b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/SceneSwitcher.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2d3ad1acf11bfaa499a9bfddc789a072 3 | timeCreated: 1506180101 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Tween/Tweener.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c05ae7df1c0488d4fbcc37b6bf1281bd 3 | timeCreated: 1500833529 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/ColorUtils.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace UnityCommon 4 | { 5 | public static class ColorUtils 6 | { 7 | /// 8 | /// Solid white color with zero alpha. 9 | /// 10 | public static Color ClearWhite { get; } = new Color(1, 1, 1, 0); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/FolderAssetHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4018051d490dc69459cb8bcd2d53cdc1 3 | timeCreated: 1505056256 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/ScriptOrderManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a9afd4c63e1284e4cac8925dda693192 3 | timeCreated: 1500753832 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ActionWaitHandle.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4fe8262b8e097c04b9bb784f63caf7ee 3 | timeCreated: 1500487048 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ActiveWhenVisible.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d323953744bdc7c4da8e1cd518cebc12 3 | timeCreated: 1507372119 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Internal/ContinuationQueue.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cdc93c07918e00249a29fad4f85a8aac 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Internal/UnityEqualityComparer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 34f347ec267da9e4c86da4d7e8d45381 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Public/UniTaskCompletionSource.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4791c3e47b00e1e4e89475e67f45d40a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Public/UnityAsyncExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c9bb2ab498680944c8b22e45e6152898 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Audio/AudioTrack.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7c07306524c266c40a730a9308edb959 3 | timeCreated: 1517669033 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Collections/ListPool.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3bdad46951aa44d448a78a38d2a00fa2 3 | timeCreated: 1514204540 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Collections/Named.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 23205328f4dae954ebaa1961a793d08a 3 | timeCreated: 1514204540 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Collections/Nullable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e8dcdd29a77c9cd49b055eb9eb63d89b 3 | timeCreated: 1514742384 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Collections/Pair.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 894d41f5b4aec2743ba7c371b71b2fec 3 | timeCreated: 1514204540 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Gameplay/Billboard.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a41a17c91e467034396680c93811d807 3 | timeCreated: 1508580903 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ModifyFrustumCulling.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 802c142a48271f6469f70c79a9abf6f3 3 | timeCreated: 1508255706 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/GoogleDriveFolderLocator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 215c94a3b2f6f20439dc2ea046edc0f3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/ResourceLoaderExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0ef37f18426823a40953dcec513f6a29 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/VirtualResourceProvider.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2dda96f2f640d1548926c4a1476aa39b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/SaveSlotManager/PlayerPrefsSaveSlotManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7a14f8431570ea74182a1c62c6fd0034 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/SaveSlotManager/TransientSaveSlotManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fc43d352168c24b4a91989f3982a20aa 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Tween/ColorTween.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d8fd7153081288043bfb63bd5701b578 3 | timeCreated: 1499275342 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Tween/FloatTween.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7f97934388965754d8e6b463e7da9e27 3 | timeCreated: 1499275342 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Tween/ITweenValue.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bee450e09dc7ded43ab2500467e69f7b 3 | timeCreated: 1499275342 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Tween/VectorTween.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a4fc4171cfffead40a507a761be74a4b 3 | timeCreated: 1499275342 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/ColorUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 055d05b204e924e498076d1dc74f3fc0 3 | timeCreated: 1499437650 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/EventUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: baa57c048ffd2b849a8b566a1c49c7d1 3 | timeCreated: 1499448934 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/IOUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e5916311a936d9d439e868f712d0d318 3 | timeCreated: 1499448934 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/LinqUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0b98712d1bd740b4dab00c778098c576 3 | timeCreated: 1499437740 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/MaskUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 222175f71bf6c1d42bf55c30587c6020 3 | timeCreated: 1499962968 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/MathUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5509015dfdb3e3d42b6fd45e09823ceb 3 | timeCreated: 1499437650 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/RegexUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 309fe822d9192b640858fa208001c230 3 | timeCreated: 1499437740 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/UIUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5d1fcfa55f8b1c640b1045397a5fca66 3 | timeCreated: 1499962968 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/WebUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 26e47b9cfefd7274ca247a1d79d1265e 3 | timeCreated: 1499437650 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/EvenRangePropertyDrawer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4628981fe01dc9f42b681ca42f2b2b07 3 | timeCreated: 1498744332 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/FolderAssetPropertyDrawer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c18f75461927c77438f2fea04890877d 3 | timeCreated: 1498744332 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/IntPopupPropertyDrawer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 231e4b197d56ebe4aab893dd38138f66 3 | timeCreated: 1498744332 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/MinMaxRangePropertyDrawer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 815e0c1f276751d4e94d9070628c3e83 3 | timeCreated: 1498744332 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/ReadOnlyPropertyDrawer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 29dd494ea059beb40a1c3832aa2e4614 3 | timeCreated: 1498744332 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/CancellationTokenEqualityComparer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2ba17277d9591674b9ea426041040a6b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/CompilerServices/MoveNextRunner.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a40804e20131d5e48b6f5f544a802dcd 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Internal/RuntimeHelpersAbstraction.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d9f033beb3ee88a4995e1d03a21d1ee8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Public/EnumeratorAsyncExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a25b95cb0e136e946bc66036830cc011 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Public/UniTask.WhenAll.Generated.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0ed5d89810ce0f441a3ea222244f5d06 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Public/UniTask.WhenAny.Generated.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ad6b8ead61275dd4dbe339752345130d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Public/UniTaskExtensions.Shorthand.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1cb1bf0f7d8de93499ad05c22d50865e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Audio/AudioController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8447ceef9af9d2c4c82f4d69037c3301 3 | timeCreated: 1508579788 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Collections/LiteralMap.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3a2a8aa4750f7bb47921856867b01676 3 | timeCreated: 1500378278 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Collections/ObjectPool.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a2b77931fe132ed469fff2dab2e19ff8 3 | timeCreated: 1514204540 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Converters/IConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5f386b11d848e7546991cb791272b110 3 | timeCreated: 1511273703 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Converters/IRawConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 86fea82571a30fb458b3cd14efe46549 3 | timeCreated: 1511273703 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Gameplay/CameraShaker.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5c163f8dbe0155f41a5024aee472aa3e 3 | timeCreated: 1508243139 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Gameplay/ParallaxLayer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3c2010cb8c85c2341be7bac4c8079be8 3 | timeCreated: 1506682364 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Gameplay/TopDownCamera.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5ae8a897a0c6ab844a7b8e4809de2b81 3 | timeCreated: 1506682364 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/Resource.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7bbfa3ee6ec0f904d93b736400824174 3 | timeCreated: 1512305314 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/ComponentUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7add4f027a7cb034f8f2371803edbd10 3 | timeCreated: 1499437650 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/CryptoUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1d987c7840de9364594fe85beca2d45a 3 | timeCreated: 1517408996 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/GraphicUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: daf3247e39b8fb14db32c399434352b4 3 | timeCreated: 1499962968 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/ObjectUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c088d8efaa38ab142b0396b9791e46aa 3 | timeCreated: 1499437650 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/SpriteUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d89db9c276dc8114a8f7f0c80087a119 3 | timeCreated: 1499962968 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/StringUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7d70525f26a733a4e93fff357a057b7d 3 | timeCreated: 1499437740 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/TextureUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7b23029029c8a724ba4f1b8146e69d28 3 | timeCreated: 1499437650 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/TransformUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3041f49d2c2aff841ab5806e27d239f1 3 | timeCreated: 1499962968 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/WebGLExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 23b66ea4b3969544e8542d0c83d7e6d8 3 | timeCreated: 1499437650 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Attributes/EvenRangeAttribute.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b0228aa8d49120140bec6db43c48fbc4 3 | timeCreated: 1498744180 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Attributes/IntPopupAttribute.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 790a34253abf21e40a9d98dc49fbbe07 3 | timeCreated: 1498744180 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Attributes/ReadOnlyAttribute.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 45dbf89f79725b84693a8b3f1e24b2f6 3 | timeCreated: 1498744180 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Collections/SerializableMap.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 697d2c6e5395af74d9f65782cd352ef7 3 | timeCreated: 1458285944 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Gameplay/CharacterController2D.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 88806ce28c37cc94eb87b965ffcfe660 3 | timeCreated: 1506682364 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Gameplay/CharacterController3D.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0083d83ce655c7c469454daae8d725ed 3 | timeCreated: 1506682364 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/RegisterSceneInContext.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3fe62abe68ce3664b806841fbb440c94 3 | timeCreated: 1509034705 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: -9999 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ScriptableUI/LabeledButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e478eb648ce2eab4598ed0e93a31adb5 3 | timeCreated: 1499438511 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ScriptableUI/ScriptableButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 96dbf35e76c265a47bd5229855b2330a 3 | timeCreated: 1499438511 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ScriptableUI/ScriptableSlider.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9f946220deb48ce42a77944da71e2c99 3 | timeCreated: 1499438511 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/ResourceProvider/EditorFolderLocator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c7c8f071c7487504bbb96e76f1cbe601 3 | timeCreated: 1511102064 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/CompilerServices/AsyncMethodBuilderAttribute.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 71214c5b61f6c5241b06f71fe3249433 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/CompilerServices/AsyncUniTaskMethodBuilder.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 92b37a5e35d3b1c4aa91cb5a46c02e1a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Attributes/FolderAssetAttribute.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 948fb1f0574611043ac288bfd149cd10 3 | timeCreated: 1498744180 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Attributes/MinMaxRangeAttribute.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aa9566c69bdd8df4abd2485075937e73 3 | timeCreated: 1498744180 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Attributes/ScriptOrderAttribute.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bf26e7c73834cff41a600da79bc525c9 3 | timeCreated: 1500753881 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Converters/GDocToTextAssetConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 01b9d71e42a8c04489c79e30e7108cb0 3 | timeCreated: 1513859862 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Converters/IGoogleDriveConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3eade004cdf21e24ca4d52a7199f322c 3 | timeCreated: 1511273703 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Converters/JpgToSpriteConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b23493618e81d684f94910b387c5acc8 3 | timeCreated: 1511273703 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Converters/Mp3ToAudioClipConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3c5ec0740406ff5419b6adb82c715da5 3 | timeCreated: 1511273703 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Converters/PngToSpriteConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3466a246345c00d4db2ca0f779392bf9 3 | timeCreated: 1511273703 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Converters/PngToTextureConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c37cd1caa3509864bbf18f75cdef1eb5 3 | timeCreated: 1511273703 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Converters/TxtToTextAssetConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d89c96cfc5e9c324cb6a651f1322678b 3 | timeCreated: 1511273703 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Converters/WavToAudioClipConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dc1ee83382b843d4283159a6bbc4b71b 3 | timeCreated: 1511273703 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/IResourceProvider.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 41c82a67c7f925f4fa0be37d3b8b338c 3 | timeCreated: 1499275342 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/LocalFolderLocator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 63bef443961f64c4da3802d527fabec3 3 | timeCreated: 1511102064 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/ProjectResources.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 45d8a631b468ced42a5044c8442a4f42 3 | timeCreated: 1516980144 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/ResourceProvider.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 16ec9c63b260040489fe7219469972ce 3 | timeCreated: 1499275342 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/ResourceRunner.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3a2db4603b219c140ad92ad5c80a4a9d 3 | timeCreated: 1500833529 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ScriptableUI/ScriptableDropdown.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 090d53708f86a984c938e8c089230683 3 | timeCreated: 1499438511 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ScriptableUI/ScriptableScrollRect.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0053960ad77c0874498addcd0bd39679 3 | timeCreated: 1499438511 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ScriptableUI/ScriptableUIBehaviour.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dd6783625d62c7b429c48f7a6c064be3 3 | timeCreated: 1499438316 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ScriptableUI/ScriptableUIComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 94137f9540771b649ab6f119fa42ed0f 3 | timeCreated: 1499438316 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ScriptableUI/ScriptableUIControl.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 942b77c77eec35041bd4c546f4b515fb 3 | timeCreated: 1499438316 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/ResourceProvider/EditorResourceLoader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 301a29f88a7474f48847079097cf0ae4 3 | timeCreated: 1511102064 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/ResourceProvider/EditorResourceLocator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e24630829b26a5b48b095fbd446b25fc 3 | timeCreated: 1511102064 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/ResourceProvider/EditorResourceProvider.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6d101638e0235d742b58a098beb2622a 3 | timeCreated: 1499275342 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/CompilerServices/AsyncUniTaskVoidMethodBuilder.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ef962a7ceec7d4343ad378fa3ee69569 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Attributes/FolderAssetAttribute.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR 2 | using UnityEngine; 3 | 4 | namespace UnityCommon 5 | { 6 | /// 7 | /// The field will store reference to an asset folder. 8 | /// Should only be used in editor code. 9 | /// 10 | public class FolderAssetAttribute : PropertyAttribute { } 11 | } 12 | #endif 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Converters/JpgOrPngToSpriteConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ecd253abcdc4c34b9a2c63e19ba26ef 3 | timeCreated: 1511273703 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Converters/JpgOrPngToTextureConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 68eb6117ef7b56547b17aeaa9a0d8377 3 | timeCreated: 1511273703 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ProxyTrigger.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 91360ee1c1b7a1d42ac43e04e43fae1c 3 | timeCreated: 1524058535 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/LocalResourceLoader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b10a4058b008ae94a950d3f65c6c894a 3 | timeCreated: 1511102064 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/LocalResourceLocator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ec0afe80594a6f41b2e071383b680f7 3 | timeCreated: 1511102064 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/LocalResourceProvider.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a2b38461b9b5cf14187b8065977b3df3 3 | timeCreated: 1499275342 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/ProjectResourceLoader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c08a37cc3221fe94ba7464db9b027df0 3 | timeCreated: 1500833529 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/ProjectResourceLocator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 37607b4a641ad11408fde23da9572347 3 | timeCreated: 1511102064 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/ProjectResourceProvider.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d9e5786f60cceee4fba4843e46da40c1 3 | timeCreated: 1499275342 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ScriptableUI/ScriptableLabeledButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d60906f091153cb43991eabd37183aef 3 | timeCreated: 1499438511 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ProxyBehaviour.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1af01bedc9dc3e34bac374c4503a4157 3 | timeCreated: 1524058535 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/AddressableFolderLocator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 04fd930c4026fe54db68f33c295892a0 3 | timeCreated: 1511102064 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/AddressableResourceLoader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b4623534e1f497043ba941e111980e08 3 | timeCreated: 1511102064 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/AddressableResourceLocator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 015bb8fd27230274db50d98bff60c5a0 3 | timeCreated: 1511102064 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/AddressableResourceProvider.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fa478f5a0ac6639418f9daa626ee5cdd 3 | timeCreated: 1499275342 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/GoogleDriveResourceLoader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e1cd81a37aedea34e9deb4d591083c52 3 | timeCreated: 1511102064 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/GoogleDriveResourceLocator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5323ef01c57255f4d87faddac6cb3db4 3 | timeCreated: 1511102064 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/GoogleDriveResourceProvider.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8fee71fb8463ec54c945a599f146b191 3 | timeCreated: 1509197344 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/LabeledButtonEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 783510a3086949d4790ef68fad74677d 3 | timeCreated: 1524334082 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Converters/IGoogleDriveConverter.cs: -------------------------------------------------------------------------------- 1 | 2 | namespace UnityCommon 3 | { 4 | /// 5 | /// Implementation is able to convert exported google drive files to . 6 | /// 7 | public interface IGoogleDriveConverter : IRawConverter 8 | { 9 | string ExportMimeType { get; } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ScriptableUI/ScriptableUIComponent.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine.EventSystems; 2 | 3 | namespace UnityCommon 4 | { 5 | public abstract class ScriptableUIComponent : ScriptableUIBehaviour where T : UIBehaviour 6 | { 7 | public virtual T UIComponent => uiComponent ? uiComponent : uiComponent = GetComponent(); 8 | 9 | private T uiComponent; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Assets/Scripts/TestCryptoUtils.cs: -------------------------------------------------------------------------------- 1 | using UnityCommon; 2 | using UnityEngine; 3 | 4 | public class TestCryptoUtils : MonoBehaviour 5 | { 6 | public string Input; 7 | 8 | private void OnEnable () 9 | { 10 | print("CryptoUtils.PersistentHashCode: " + CryptoUtils.PersistentHashCode(Input)); 11 | print("CryptoUtils.PersistentHexCode: " + CryptoUtils.PersistentHexCode(Input)); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Public/UniTask.Bridge.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | 4 | namespace UnityCommon 5 | { 6 | // UnityEngine Bridges. 7 | 8 | public readonly partial struct UniTask 9 | { 10 | public static IEnumerator ToCoroutine (Func taskFactory) 11 | { 12 | return taskFactory().ToCoroutine(); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /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: 0 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_DisableAudio: 0 16 | m_VirtualizeEffects: 1 17 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Rotator.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace UnityCommon 4 | { 5 | public class Rotator : MonoBehaviour 6 | { 7 | [SerializeField] private float speed = 30f; 8 | [SerializeField] private Vector3 axis = new Vector3(1, 1, 1); 9 | 10 | private void Update () 11 | { 12 | transform.Rotate(axis, speed * Time.deltaTime); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Attributes/MinMaxRangeAttribute.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace UnityCommon 4 | { 5 | public class MinMaxRangeAttribute : PropertyAttribute 6 | { 7 | public readonly float Min; 8 | public readonly float Max; 9 | 10 | public MinMaxRangeAttribute (float min, float max) 11 | { 12 | Min = min; 13 | Max = max; 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/RegexUtils.cs: -------------------------------------------------------------------------------- 1 | using System.Text.RegularExpressions; 2 | 3 | namespace UnityCommon 4 | { 5 | public static class RegexUtils 6 | { 7 | /// 8 | /// Get index of the last character in the match. 9 | /// 10 | public static int GetEndIndex (this Match match) 11 | { 12 | return match.Index + match.Length - 1; 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Attributes/ScriptOrderAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityCommon 4 | { 5 | /// 6 | /// Sets Unity script execution order. 7 | /// 8 | public class ScriptOrderAttribute : Attribute 9 | { 10 | public readonly int ExecutionOrder; 11 | 12 | public ScriptOrderAttribute (int order) 13 | { 14 | ExecutionOrder = order; 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto eol=lf 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ScriptableUI/AlphaThreshold.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.UI; 3 | 4 | namespace UnityCommon 5 | { 6 | public class AlphaThreshold : MonoBehaviour 7 | { 8 | [SerializeField] private Image graphic; 9 | [SerializeField] private float minimumThreshold; 10 | 11 | private void Start () 12 | { 13 | if (graphic) graphic.alphaHitTestMinimumThreshold = minimumThreshold; 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/CompilerServices/AsyncMethodBuilderAttribute.cs: -------------------------------------------------------------------------------- 1 | #pragma warning disable CS0436 2 | #pragma warning disable CS0436 3 | 4 | namespace System.Runtime.CompilerServices 5 | { 6 | internal sealed class AsyncMethodBuilderAttribute : Attribute 7 | { 8 | public Type BuilderType { get; } 9 | 10 | public AsyncMethodBuilderAttribute (Type builderType) 11 | { 12 | BuilderType = builderType; 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/CancelOnDestroy.cs: -------------------------------------------------------------------------------- 1 | using System.Threading; 2 | using UnityEngine; 3 | 4 | namespace UnityCommon 5 | { 6 | public class CancelOnDestroy : MonoBehaviour 7 | { 8 | public CancellationToken Token => cts.Token; 9 | 10 | private readonly CancellationTokenSource cts = new CancellationTokenSource(); 11 | 12 | private void OnDestroy () 13 | { 14 | cts.Cancel(); 15 | cts.Dispose(); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/CompilerServices/MoveNextRunner.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using System.Runtime.CompilerServices; 3 | 4 | namespace UnityCommon.Async.CompilerServices 5 | { 6 | internal class MoveNextRunner 7 | where TStateMachine : IAsyncStateMachine 8 | { 9 | public TStateMachine StateMachine; 10 | 11 | [DebuggerHidden] 12 | public void Run () 13 | { 14 | StateMachine.MoveNext(); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Internal/FuncExtensions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityCommon.Async.Internal 4 | { 5 | internal static class FuncExtensions 6 | { 7 | // avoid lambda capture 8 | 9 | internal static Action AsFuncOfT (this Action action) 10 | { 11 | return action.Invoke; 12 | } 13 | 14 | private static void Invoke (this Action action, T unused) 15 | { 16 | action(); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Attributes/EvenRangeAttribute.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace UnityCommon 4 | { 5 | /// 6 | /// The field will be edited as a range of even integers. 7 | /// 8 | public class EvenRangeAttribute : PropertyAttribute 9 | { 10 | public int Min { get; } 11 | public int Max { get; } 12 | 13 | public EvenRangeAttribute (int min, int max) 14 | { 15 | Min = min; 16 | Max = max; 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Folder.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace UnityCommon 4 | { 5 | /// 6 | /// Represents a directory in the project assets. 7 | /// 8 | [System.Serializable] 9 | public class Folder 10 | { 11 | public string Path => path; 12 | public string Name => Path.Contains("/") ? Path.GetAfter("/") : Path; 13 | 14 | [SerializeField] private string path; 15 | 16 | public Folder (string path) 17 | { 18 | this.path = path; 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/Elringus.UnityCommon.Editor.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Elringus.UnityCommon.Editor", 3 | "references": [ 4 | "GUID:87e2381f93a6a0348b03f5df7fdac208", 5 | "GUID:f51ebe6a0ceec4240a699833d6309b23" 6 | ], 7 | "includePlatforms": [ 8 | "Editor" 9 | ], 10 | "excludePlatforms": [], 11 | "allowUnsafeCode": false, 12 | "overrideReferences": true, 13 | "precompiledReferences": [], 14 | "autoReferenced": true, 15 | "defineConstraints": [], 16 | "versionDefines": [], 17 | "noEngineReferences": false 18 | } -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Attributes/IntPopupAttribute.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace UnityCommon 4 | { 5 | /// 6 | /// The field will be edited as an integer popup selection field. 7 | /// 8 | public class IntPopupAttribute : PropertyAttribute 9 | { 10 | /// 11 | /// Available options for the popup value. 12 | /// 13 | public int[] Values { get; } 14 | 15 | public IntPopupAttribute (params int[] values) 16 | { 17 | Values = values; 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/AsyncUnit.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityCommon.Async 4 | { 5 | public struct AsyncUnit : IEquatable 6 | { 7 | public static readonly AsyncUnit Default = new AsyncUnit(); 8 | 9 | public override int GetHashCode () 10 | { 11 | return 0; 12 | } 13 | 14 | public bool Equals (AsyncUnit other) 15 | { 16 | return true; 17 | } 18 | 19 | public override string ToString () 20 | { 21 | return "()"; 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/AsyncOperationDestroyedException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityCommon 4 | { 5 | /// 6 | /// Thrown upon cancellation of an async operation due to Unity object being destroyed. 7 | /// 8 | public class AsyncOperationDestroyedException : AsyncOperationCanceledException 9 | { 10 | public AsyncOperationDestroyedException (UnityEngine.Object obj) 11 | { 12 | if (ObjectUtils.IsValid(obj)) throw new ArgumentException("Provided object is not destroyed.", nameof(obj)); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /Assets/Scripts/TestApplicationBehaviour.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using UnityCommon; 3 | using UnityEngine; 4 | 5 | public class TestApplicationBehaviour : MonoBehaviour 6 | { 7 | private void Awake () 8 | { 9 | DontDestroyOnLoad(gameObject); 10 | ApplicationBehaviour.Instance.StartCoroutine(Coroutine()); 11 | } 12 | 13 | private IEnumerator Coroutine () 14 | { 15 | while (Application.isPlaying) 16 | { 17 | yield return null; 18 | transform.localScale = Vector3.one * (Mathf.Sin(Time.time) + 2); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ScriptableUI/DragDropHandle.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | using UnityEngine.EventSystems; 4 | 5 | namespace UnityCommon 6 | { 7 | /// 8 | /// Used by . 9 | /// 10 | [RequireComponent(typeof(RectTransform))] 11 | public class DragDropHandle : MonoBehaviour, IDragHandler 12 | { 13 | public event Action OnDragged; 14 | 15 | public virtual void OnDrag (PointerEventData eventData) 16 | { 17 | OnDragged?.Invoke(eventData.position); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Assets/Scripts/TestTweener.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using UnityCommon; 3 | using UnityEngine; 4 | 5 | public class TestTweener : MonoBehaviour 6 | { 7 | private readonly ITweener tweener = new Tweener(); 8 | 9 | private IEnumerator Start () 10 | { 11 | while (Application.isPlaying) 12 | { 13 | var pos = transform.position; 14 | var tween = new VectorTween(pos, pos + Vector3.one, .1f, p => transform.position = p); 15 | tweener.Run(tween); 16 | while (tweener.Running) yield return null; 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Collections/ListPool.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace UnityCommon 4 | { 5 | /// 6 | public static class ListPool 7 | { 8 | private static readonly ObjectPool> pool = new ObjectPool>(null, Clear); 9 | 10 | /// 11 | public static List Get () => pool.Get(); 12 | 13 | /// 14 | public static void Return (List list) => pool.Return(list); 15 | 16 | private static void Clear (List list) => list.Clear(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ScriptableUI/ScriptableUIControl.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine.EventSystems; 2 | 3 | namespace UnityCommon 4 | { 5 | public abstract class ScriptableUIControl : ScriptableUIComponent where T : UIBehaviour 6 | { 7 | protected override void OnEnable () 8 | { 9 | base.OnEnable(); 10 | BindUIEvents(); 11 | } 12 | 13 | protected override void OnDisable () 14 | { 15 | base.OnDisable(); 16 | UnbindUIEvents(); 17 | } 18 | 19 | protected abstract void BindUIEvents (); 20 | protected abstract void UnbindUIEvents (); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Assets/Scripts/TestAudioController.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using UnityCommon; 3 | using UnityEngine; 4 | 5 | [RequireComponent(typeof(AudioController))] 6 | public class TestAudioController : MonoBehaviour 7 | { 8 | [SerializeField] private AudioClip intro; 9 | [SerializeField] private AudioClip main; 10 | 11 | private AudioController controller; 12 | 13 | private void Awake () 14 | { 15 | controller = GetComponent(); 16 | } 17 | 18 | private IEnumerator Start() 19 | { 20 | yield return new WaitForSeconds(2f); 21 | 22 | controller.PlayClip(main, loop: true, introClip: intro); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/EvenRangePropertyDrawer.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | using UnityEngine; 3 | 4 | namespace UnityCommon 5 | { 6 | [CustomPropertyDrawer(typeof(EvenRangeAttribute))] 7 | public class EvenRangePropertyDrawer : PropertyDrawer 8 | { 9 | public override void OnGUI (Rect position, SerializedProperty property, GUIContent label) 10 | { 11 | var evenRangeAttribute = attribute as EvenRangeAttribute; 12 | var min = evenRangeAttribute.Min; 13 | var max = evenRangeAttribute.Max; 14 | property.intValue = EditorGUI.IntSlider(position, label, property.intValue, min, max).ToNearestEven(max); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/CancellationTokenEqualityComparer.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Threading; 3 | 4 | namespace UnityCommon.Async 5 | { 6 | public class CancellationTokenEqualityComparer : IEqualityComparer 7 | { 8 | public static readonly IEqualityComparer Default = new CancellationTokenEqualityComparer(); 9 | 10 | public bool Equals (CancellationToken x, CancellationToken y) 11 | { 12 | return x.Equals(y); 13 | } 14 | 15 | public int GetHashCode (CancellationToken obj) 16 | { 17 | return obj.GetHashCode(); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/AsyncOperationCanceledException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityCommon 4 | { 5 | /// 6 | /// Thrown upon cancellation of an async operation via . 7 | /// 8 | public class AsyncOperationCanceledException : OperationCanceledException 9 | { 10 | public AsyncOperationCanceledException (AsyncToken asyncToken) 11 | : base(asyncToken.CancellationToken) 12 | { 13 | if (!asyncToken.Canceled) throw new ArgumentException("Provided token is not canceled.", nameof(asyncToken)); 14 | } 15 | 16 | protected AsyncOperationCanceledException () { } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/FolderAssetPropertyDrawer.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | 4 | namespace UnityCommon 5 | { 6 | [CustomPropertyDrawer(typeof(FolderAssetHelper))] 7 | public class FolderAssetPropertyDrawer : PropertyDrawer 8 | { 9 | public override void OnGUI (Rect position, SerializedProperty property, GUIContent label) 10 | { 11 | var folderObject = EditorGUI.ObjectField(position, label, property.objectReferenceValue, typeof(DefaultAsset), false); 12 | if (folderObject == null || AssetDatabase.IsValidFolder(AssetDatabase.GetAssetPath(folderObject))) 13 | property.objectReferenceValue = folderObject; 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ModifyFrustumCulling.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace UnityCommon 4 | { 5 | [RequireComponent(typeof(Camera))] 6 | public class ModifyFrustumCulling : MonoBehaviour 7 | { 8 | [SerializeField] private float modifyFactor = 1; 9 | 10 | private Camera modifiedCamera; 11 | 12 | private void Awake () 13 | { 14 | modifiedCamera = GetComponent(); 15 | } 16 | 17 | private void OnPreCull () 18 | { 19 | modifiedCamera.cullingMatrix = modifiedCamera.nonJitteredProjectionMatrix * 20 | Matrix4x4.Translate(Vector3.back * modifyFactor) * modifiedCamera.worldToCameraMatrix; 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Converters/IConverter.cs: -------------------------------------------------------------------------------- 1 | namespace UnityCommon 2 | { 3 | /// 4 | /// Implantation is able to convert objects. 5 | /// 6 | public interface IConverter 7 | { 8 | object Convert (object obj, string name); 9 | 10 | UniTask ConvertAsync (object obj, string name); 11 | } 12 | 13 | /// 14 | /// Implantation is able to convert to . 15 | /// 16 | public interface IConverter : IConverter 17 | { 18 | TResult Convert (TSource obj, string name); 19 | 20 | UniTask ConvertAsync (TSource obj, string name); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/WebGLExtensions.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_WEBGL && !UNITY_EDITOR 2 | using System.Runtime.InteropServices; 3 | 4 | namespace UnityCommon 5 | { 6 | public static class WebGLExtensions 7 | { 8 | /// 9 | /// Calls FS.syncfs in native js. 10 | /// 11 | [DllImport("__Internal")] 12 | public static extern void SyncFs (); 13 | 14 | /// 15 | /// Invokes window.open() with the specified parameters. 16 | /// https://developer.mozilla.org/en-US/docs/Web/API/Window/open 17 | /// 18 | [DllImport("__Internal")] 19 | public static extern void OpenURL (string url, string target); 20 | } 21 | } 22 | #endif 23 | -------------------------------------------------------------------------------- /Assets/Scripts/TestAsync.cs: -------------------------------------------------------------------------------- 1 | using System.Threading.Tasks; 2 | using UnityCommon; 3 | using UnityEngine; 4 | 5 | public class TestAsync : MonoBehaviour 6 | { 7 | private async void Start () 8 | { 9 | while (Application.isPlaying) 10 | await TaskMethod(); 11 | } 12 | 13 | private async Task TaskMethod () 14 | { 15 | var startTime = Time.realtimeSinceStartup; 16 | while (Time.realtimeSinceStartup - startTime < .1f) 17 | await Task.Yield(); 18 | } 19 | 20 | private async UniTask UniTaskMethod () 21 | { 22 | var startTime = Time.realtimeSinceStartup; 23 | while (Time.realtimeSinceStartup - startTime < .1f) 24 | await UniTask.Yield(); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/ReadOnlyPropertyDrawer.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | 4 | namespace UnityCommon 5 | { 6 | [CustomPropertyDrawer(typeof(ReadOnlyAttribute))] 7 | public class ReadOnlyPropertyDrawer : PropertyDrawer 8 | { 9 | public override void OnGUI (Rect position, SerializedProperty property, GUIContent label) 10 | { 11 | GUI.enabled = false; 12 | EditorGUI.PropertyField(position, property, label, true); 13 | GUI.enabled = true; 14 | } 15 | 16 | public override float GetPropertyHeight (SerializedProperty property, GUIContent label) 17 | { 18 | return EditorGUI.GetPropertyHeight(property, label, true); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Assets/Scripts/TestNullables.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityCommon; 4 | using UnityEngine; 5 | 6 | public class TestNullables : MonoBehaviour 7 | { 8 | public NullableFloat Float; 9 | public NullableString String; 10 | public NullableBoolean Bool; 11 | public NullableVector3 Vector3; 12 | public List Vector3List = new List { new NullableVector3(), new NullableVector3() }; 13 | 14 | private IEnumerator Start () 15 | { 16 | yield return new WaitForSeconds(2); 17 | 18 | Vector3List[1].Value = UnityEngine.Vector3.one; 19 | String = "abc"; 20 | 21 | yield return new WaitForSeconds(2); 22 | 23 | String = default; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/WebGLBuildProcessor.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | using UnityEditor; 3 | using UnityEditor.Callbacks; 4 | 5 | namespace UnityCommon 6 | { 7 | public class WebGLBuildProcessor 8 | { 9 | [PostProcessBuild] 10 | public static void OnPostProcessBuild (BuildTarget target, string targetPath) 11 | { 12 | if (target != BuildTarget.WebGL) return; 13 | 14 | // Remove mobiles warning; based on: http://answers.unity.com/answers/1561748/view.html 15 | var path = Path.Combine(targetPath, "Build/UnityLoader.js"); 16 | var text = File.ReadAllText(path); 17 | text = text.Replace("UnityLoader.SystemInfo.mobile", "false"); 18 | File.WriteAllText(path, text); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ProxyTrigger.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace UnityCommon 5 | { 6 | public class ProxyTrigger : MonoBehaviour 7 | { 8 | public event Action OnProxyTriggerEnter; 9 | public event Action OnProxyTriggerStay; 10 | public event Action OnProxyTriggerExit; 11 | 12 | private void OnTriggerEnter (Collider other) 13 | { 14 | OnProxyTriggerEnter?.Invoke(other); 15 | } 16 | 17 | private void OnTriggerStay (Collider other) 18 | { 19 | OnProxyTriggerStay?.Invoke(other); 20 | } 21 | 22 | private void OnTriggerExit (Collider other) 23 | { 24 | OnProxyTriggerExit?.Invoke(other); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: 8 | - enabled: 1 9 | path: Assets/Scenes/ResourceProvider.unity 10 | guid: e730455ef68a2c0429f088a101f46911 11 | - enabled: 1 12 | path: Assets/Scenes/CharacterController3D.unity 13 | guid: 0b60df0088ac49e49be84b932ce64889 14 | - enabled: 1 15 | path: Assets/Scenes/ApplicationBehaviour.unity 16 | guid: 65520c88853c9a9439ba335af7dc06c3 17 | - enabled: 1 18 | path: Assets/Scenes/Nullables.unity 19 | guid: 9f69bbf98c6d2da45a0985388d6921db 20 | m_configObjects: 21 | com.unity.addressableassets: {fileID: 11400000, guid: 12eb6cc19111c9a40875083a8e03b666, 22 | type: 2} 23 | -------------------------------------------------------------------------------- /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: 3 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_EnablePCM: 1 18 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 19 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Converters/IRawConverter.cs: -------------------------------------------------------------------------------- 1 | 2 | namespace UnityCommon 3 | { 4 | public readonly struct RawDataRepresentation 5 | { 6 | public readonly string Extension, MimeType; 7 | 8 | public RawDataRepresentation (string extension, string mimeType) 9 | { 10 | Extension = extension; 11 | MimeType = mimeType; 12 | } 13 | } 14 | 15 | /// 16 | /// Implementation is able to convert to 17 | /// and provide additional information about the raw data representation of the object. 18 | /// 19 | public interface IRawConverter : IConverter 20 | { 21 | RawDataRepresentation[] Representations { get; } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Assets/Editor/SetEditorProviderToTestScript.cs: -------------------------------------------------------------------------------- 1 | using UnityCommon; 2 | using UnityEditor; 3 | using UnityEngine; 4 | 5 | public class SetEditorProviderToTestScript 6 | { 7 | [InitializeOnLoadMethod] 8 | private static void InitializeEditorProvider () 9 | { 10 | // Also executes when entering play mode. 11 | var provider = new EditorResourceProvider(); 12 | var testProviderObj = Object.FindObjectOfType(); 13 | if (!ObjectUtils.IsValid(testProviderObj)) return; 14 | 15 | foreach (var resource in testProviderObj.EditorResources) 16 | { 17 | AssetDatabase.TryGetGUIDAndLocalFileIdentifier(resource.Object, out string guid, out long _); 18 | provider.AddResourceGuid(resource.Path, guid); 19 | } 20 | 21 | TestResourceProvider.EditorProvider = provider; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Attributes/OptionalDependencyAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | 4 | /// 5 | /// Adds a define based on presence of specified type in the project. 6 | /// 7 | /// 8 | /// Unity's conditional compilation utility () 9 | /// uses this attribute to manage the project defines. 10 | /// 11 | [Conditional("UNITY_CCU"), AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] 12 | public class OptionalDependencyAttribute : Attribute 13 | { 14 | public readonly string DependentClass; 15 | public readonly string Define; 16 | 17 | public OptionalDependencyAttribute (string dependentClass, string define) 18 | { 19 | DependentClass = dependentClass; 20 | Define = define; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Plugins/WebGLExtensions.jslib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5569b44ff70d3644f8308770e5fa4860 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | Any: 16 | second: 17 | enabled: 0 18 | settings: {} 19 | - first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | - first: 26 | Facebook: WebGL 27 | second: 28 | enabled: 1 29 | settings: {} 30 | - first: 31 | WebGL: WebGL 32 | second: 33 | enabled: 1 34 | settings: {} 35 | userData: 36 | assetBundleName: 37 | assetBundleVariant: 38 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ActiveWhenVisible.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace UnityCommon 4 | { 5 | public class ActiveWhenVisible : MonoBehaviour 6 | { 7 | [SerializeField] private MonoBehaviour[] affectedScripts; 8 | 9 | private void Start () 10 | { 11 | SetEnabled(false); 12 | } 13 | 14 | private void OnBecameVisible () 15 | { 16 | SetEnabled(true); 17 | } 18 | 19 | private void OnBecameInvisible () 20 | { 21 | SetEnabled(false); 22 | } 23 | 24 | private void SetEnabled (bool isEnabled) 25 | { 26 | if (affectedScripts == null) return; 27 | 28 | var length = affectedScripts.Length; 29 | for (int i = 0; i < length; i++) 30 | affectedScripts[i].enabled = isEnabled; 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/RegisterSceneInContext.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace UnityCommon 4 | { 5 | /// 6 | /// Should be placed in scenes to properly register objects with [RegisterInContext] attribute. 7 | /// Temp (hopefully) hack; waiting for [RuntimeInitializeOnLoadMethod]-esque thingy to support per-scene trigger. 8 | /// 9 | [ScriptOrder(-9999)] 10 | public class RegisterSceneInContext : MonoBehaviour 11 | { 12 | private void Awake () 13 | { 14 | Context.RegisterSceneObjects(); 15 | } 16 | 17 | #if UNITY_EDITOR 18 | [UnityEditor.MenuItem("GameObject/Register In Context", false, 0)] 19 | public static void CreateRegisterSceneObject () 20 | { 21 | new GameObject("RegisterInContext").AddComponent(); 22 | } 23 | #endif 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/GraphicUtils.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.UI; 3 | 4 | namespace UnityCommon 5 | { 6 | public static class GraphicUtils 7 | { 8 | public static void SetOpacity (this Graphic graphic, float opacity) 9 | { 10 | Debug.Assert(graphic != null); 11 | var spriteColor = graphic.color; 12 | graphic.color = new Color(spriteColor.r, spriteColor.g, spriteColor.b, opacity); 13 | } 14 | 15 | public static bool IsTransparent (this Graphic graphic) 16 | { 17 | Debug.Assert(graphic != null); 18 | return Mathf.Approximately(graphic.color.a, 0f); 19 | } 20 | 21 | public static bool IsOpaque (this Graphic graphic) 22 | { 23 | Debug.Assert(graphic != null); 24 | return Mathf.Approximately(graphic.color.a, 1f); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/IntPopupPropertyDrawer.cs: -------------------------------------------------------------------------------- 1 | using System.Linq; 2 | using UnityEngine; 3 | using UnityEditor; 4 | 5 | namespace UnityCommon 6 | { 7 | [CustomPropertyDrawer(typeof(IntPopupAttribute))] 8 | public class IntPopupPropertyDrawer : PropertyDrawer 9 | { 10 | public override void OnGUI (Rect position, SerializedProperty property, GUIContent label) 11 | { 12 | var popupAttribute = attribute as IntPopupAttribute; 13 | var popupValues = popupAttribute.Values; 14 | if (popupValues == null || popupValues.Length <= 0) 15 | EditorGUI.PropertyField(position, property, label); 16 | else 17 | { 18 | var popupLabels = popupValues.Select(pair => new GUIContent(pair.ToString())).ToArray(); 19 | EditorGUI.IntPopup(position, property, popupLabels, popupValues, label); 20 | } 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/ScriptOrderManager.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEditor; 3 | 4 | namespace UnityCommon 5 | { 6 | [InitializeOnLoad] 7 | public class ScriptOrderManager 8 | { 9 | static ScriptOrderManager () 10 | { 11 | foreach (var monoScript in MonoImporter.GetAllRuntimeMonoScripts()) 12 | { 13 | if (monoScript.GetClass() == null) continue; 14 | 15 | foreach (var attribute in Attribute.GetCustomAttributes(monoScript.GetClass(), typeof(ScriptOrderAttribute), true)) 16 | { 17 | var currentOrder = MonoImporter.GetExecutionOrder(monoScript); 18 | var newOrder = ((ScriptOrderAttribute)attribute).ExecutionOrder; 19 | if (currentOrder != newOrder) 20 | MonoImporter.SetExecutionOrder(monoScript, newOrder); 21 | } 22 | } 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Tween/ITweenValue.cs: -------------------------------------------------------------------------------- 1 | 2 | namespace UnityCommon 3 | { 4 | /// 5 | /// Implementation is able to represent a value used by . 6 | /// 7 | public interface ITweenValue 8 | { 9 | /// 10 | /// Whether Unity's time scale should be ignored when tweening the value. 11 | /// 12 | bool TimeScaleIgnored { get; } 13 | /// 14 | /// Duration of the tween, in seconds. 15 | /// 16 | float TweenDuration { get; } 17 | /// 18 | /// Type of animation easing function the tweener uses. 19 | /// 20 | EasingType EasingType { get; } 21 | 22 | /// 23 | /// Perform the value tween over specified ratio, in 0.0 to 1.0 range. 24 | /// 25 | void TweenValue (float tweenRatio); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/MaskUtils.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace UnityCommon 4 | { 5 | public static class MaskUtils 6 | { 7 | public static int SetLayer (int mask, int layer, bool enabled) 8 | { 9 | if (enabled) return mask |= 1 << layer; 10 | return mask &= ~(1 << layer); 11 | } 12 | 13 | public static bool GetLayer (int mask, int layer) 14 | { 15 | return mask == (mask | (1 << layer)); 16 | } 17 | 18 | public static int SetLayer (int mask, string layerName, bool enabled) 19 | { 20 | var layer = LayerMask.NameToLayer(layerName); 21 | return SetLayer(mask, layer, enabled); 22 | } 23 | 24 | public static bool GetLayer (int mask, string layerName) 25 | { 26 | var layer = LayerMask.NameToLayer(layerName); 27 | return GetLayer(mask, layer); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Assets/Scripts/TestUpdater.cs: -------------------------------------------------------------------------------- 1 | using UnityCommon; 2 | using UnityEngine; 3 | 4 | [RequireComponent(typeof(Updater))] 5 | public class TestUpdater : MonoBehaviour 6 | { 7 | private Updater updater; 8 | 9 | private void Awake () 10 | { 11 | updater = GetComponent(); 12 | } 13 | 14 | private void OnEnable () 15 | { 16 | updater.AddAction(Action1); 17 | updater.AddAction(Action2); 18 | updater.AddAction(Action3); 19 | updater.AddAction(Action4); 20 | } 21 | 22 | private void OnDisable () 23 | { 24 | updater.RemoveAction(Action1); 25 | updater.RemoveAction(Action2); 26 | updater.RemoveAction(Action3); 27 | updater.RemoveAction(Action4); 28 | } 29 | 30 | private void Action1 () => print("Action1"); 31 | private void Action2 () => print("Action2"); 32 | private void Action3 () => print("Action3"); 33 | private void Action4 () => print("Action4"); 34 | } 35 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Converters/TxtToTextAssetConverter.cs: -------------------------------------------------------------------------------- 1 | using System.Text; 2 | using UnityEngine; 3 | 4 | namespace UnityCommon 5 | { 6 | public class TxtToTextAssetConverter : IRawConverter 7 | { 8 | public RawDataRepresentation[] Representations { get; } = { 9 | new RawDataRepresentation(".txt", "text/plain") 10 | }; 11 | 12 | public TextAsset Convert (byte[] obj, string name) 13 | { 14 | var textAsset = new TextAsset(Encoding.UTF8.GetString(obj)); 15 | textAsset.name = name; 16 | return textAsset; 17 | } 18 | 19 | public UniTask ConvertAsync (byte[] obj, string name) => UniTask.FromResult(Convert(obj, name)); 20 | 21 | public object Convert (object obj, string name) => Convert(obj as byte[], name); 22 | 23 | public async UniTask ConvertAsync (object obj, string name) => await ConvertAsync(obj as byte[], name); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/DrawAsEulerPropertyDrawer.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | using UnityEngine; 3 | 4 | namespace UnityCommon 5 | { 6 | [CustomPropertyDrawer(typeof(DrawAsEulerAttribute))] 7 | public class DrawAsEulerPropertyDrawer : PropertyDrawer 8 | { 9 | public override void OnGUI (Rect rect, SerializedProperty property, GUIContent label) 10 | { 11 | var euler = property.quaternionValue.eulerAngles; 12 | EditorGUI.BeginProperty(rect, label, property); 13 | EditorGUI.BeginChangeCheck(); 14 | euler = EditorGUI.Vector3Field(rect, label, euler); 15 | if (EditorGUI.EndChangeCheck()) 16 | property.quaternionValue = Quaternion.Euler(euler); 17 | EditorGUI.EndProperty(); 18 | } 19 | 20 | public override float GetPropertyHeight (SerializedProperty property, GUIContent label) 21 | { 22 | return EditorGUIUtility.singleLineHeight; 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ScriptableUI/ScriptableSlider.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine.UI; 3 | 4 | namespace UnityCommon 5 | { 6 | public class ScriptableSlider : ScriptableUIControl 7 | { 8 | public event Action OnSliderValueChanged; 9 | 10 | protected override void BindUIEvents () 11 | { 12 | UIComponent.onValueChanged.AddListener(OnValueChanged); 13 | UIComponent.onValueChanged.AddListener(InvokeOnSliderValueChanged); 14 | } 15 | 16 | protected override void UnbindUIEvents () 17 | { 18 | UIComponent.onValueChanged.RemoveListener(OnValueChanged); 19 | UIComponent.onValueChanged.RemoveListener(InvokeOnSliderValueChanged); 20 | } 21 | 22 | protected virtual void OnValueChanged (float value) { } 23 | 24 | private void InvokeOnSliderValueChanged (float value) 25 | { 26 | OnSliderValueChanged?.Invoke(value); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/SyncContextUtils.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Threading; 3 | using UnityEngine; 4 | 5 | namespace UnityCommon 6 | { 7 | public static class SyncContextUtils 8 | { 9 | public static SynchronizationContext UnitySynchronizationContext { get; private set; } 10 | 11 | /// 12 | /// Provided action will be invoked on the main thread no matter from which thread this is used. 13 | /// 14 | public static void InvokeOnUnityThread (Action action) 15 | { 16 | if (SynchronizationContext.Current == UnitySynchronizationContext) action?.Invoke(); 17 | else UnitySynchronizationContext.Post(_ => action(), null); 18 | } 19 | 20 | [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] 21 | private static void Initialize () 22 | { 23 | UnitySynchronizationContext = SynchronizationContext.Current; 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ScriptableUI/ScriptableDropdown.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using TMPro; 3 | 4 | namespace UnityCommon 5 | { 6 | public class ScriptableDropdown : ScriptableUIControl 7 | { 8 | public event Action OnDropdownValueChanged; 9 | 10 | protected override void BindUIEvents () 11 | { 12 | UIComponent.onValueChanged.AddListener(OnValueChanged); 13 | UIComponent.onValueChanged.AddListener(InvokeOnDropdownValueChanged); 14 | } 15 | 16 | protected override void UnbindUIEvents () 17 | { 18 | UIComponent.onValueChanged.RemoveListener(OnValueChanged); 19 | UIComponent.onValueChanged.RemoveListener(InvokeOnDropdownValueChanged); 20 | } 21 | 22 | protected virtual void OnValueChanged (int value) { } 23 | 24 | private void InvokeOnDropdownValueChanged (int value) 25 | { 26 | OnDropdownValueChanged?.Invoke(value); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/AutoSave.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | using UnityEditor.SceneManagement; 3 | using UnityEngine.SceneManagement; 4 | 5 | namespace UnityCommon 6 | { 7 | /// 8 | /// Automatically saves active scene and all the assets on entering play mode. 9 | /// 10 | [InitializeOnLoad] 11 | public class AutoSave 12 | { 13 | static AutoSave () 14 | { 15 | #if UNITY_2017_3_OR_NEWER 16 | EditorApplication.playModeStateChanged += _ => { 17 | #else 18 | EditorApplication.playmodeStateChanged = () => { 19 | #endif 20 | if (EditorApplication.isPlayingOrWillChangePlaymode && !EditorApplication.isPlaying) 21 | { 22 | var activeScene = SceneManager.GetActiveScene(); 23 | EditorSceneManager.SaveScene(activeScene); 24 | AssetDatabase.SaveAssets(); 25 | } 26 | }; 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/CaptureScreenshot.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | using UnityEditor; 3 | using UnityEngine; 4 | 5 | namespace UnityCommon 6 | { 7 | public static class CaptureScreenshot 8 | { 9 | private const string fileName = "EditorScreenshot#"; 10 | private const int startIndex = 0; 11 | 12 | [MenuItem("Tools/Capture Screenshot")] 13 | private static void CountLines () 14 | { 15 | var index = startIndex; 16 | var projectPath = Application.dataPath.Replace("/Assets", string.Empty); 17 | var dirPath = Path.Combine(projectPath, "Screenshots"); 18 | var filePath = string.Empty; 19 | Directory.CreateDirectory(dirPath); 20 | 21 | do 22 | { 23 | index++; 24 | filePath = Path.Combine(dirPath, $"{fileName}{index:000}.png"); 25 | } 26 | while (File.Exists(filePath)); 27 | 28 | ScreenCapture.CaptureScreenshot(filePath); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Collections/LiteralMap.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace UnityCommon 5 | { 6 | /// 7 | /// Dictionary with case-insensitive string keys. 8 | /// 9 | public class LiteralMap : Dictionary 10 | { 11 | public LiteralMap () : base(StringComparer.OrdinalIgnoreCase) { } 12 | public LiteralMap (IDictionary dictionary) : base(dictionary, StringComparer.OrdinalIgnoreCase) { } 13 | } 14 | 15 | /// 16 | /// A serializable version of with values. 17 | /// 18 | [Serializable] 19 | public class SerializableLiteralStringMap : SerializableMap 20 | { 21 | public SerializableLiteralStringMap () : base(StringComparer.OrdinalIgnoreCase) { } 22 | public SerializableLiteralStringMap (IDictionary dictionary) : base(dictionary, StringComparer.OrdinalIgnoreCase) { } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /ProjectSettings/PackageManagerSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &1 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 61 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0} 13 | m_Name: 14 | m_EditorClassIdentifier: 15 | m_ScopedRegistriesSettingsExpanded: 1 16 | oneTimeWarningShown: 0 17 | m_Registries: 18 | - m_Id: main 19 | m_Name: 20 | m_Url: https://packages.unity.com 21 | m_Scopes: [] 22 | m_IsDefault: 1 23 | m_UserSelectedRegistryName: 24 | m_UserAddingNewScopedRegistry: 0 25 | m_RegistryInfoDraft: 26 | m_ErrorMessage: 27 | m_Original: 28 | m_Id: 29 | m_Name: 30 | m_Url: 31 | m_Scopes: [] 32 | m_IsDefault: 0 33 | m_Modified: 0 34 | m_Name: 35 | m_Url: 36 | m_Scopes: 37 | - 38 | m_SelectedScopeIndex: 0 39 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ScriptableUI/ScriptableScrollRect.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | using UnityEngine.UI; 4 | 5 | namespace UnityCommon 6 | { 7 | public class ScriptableScrollRect : ScriptableUIControl 8 | { 9 | public event Action OnPositionChanged; 10 | 11 | protected override void BindUIEvents () 12 | { 13 | UIComponent.onValueChanged.AddListener(OnScrollPositionChanged); 14 | UIComponent.onValueChanged.AddListener(InvokeOnPositionChanged); 15 | } 16 | 17 | protected override void UnbindUIEvents () 18 | { 19 | UIComponent.onValueChanged.RemoveListener(OnScrollPositionChanged); 20 | UIComponent.onValueChanged.RemoveListener(InvokeOnPositionChanged); 21 | } 22 | 23 | protected virtual void OnScrollPositionChanged (Vector2 scrollPosition) { } 24 | 25 | private void InvokeOnPositionChanged (Vector2 value) 26 | { 27 | OnPositionChanged?.Invoke(value); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ApplicationBehaviour.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace UnityCommon 4 | { 5 | public class ApplicationBehaviour : MonoBehaviour 6 | { 7 | public static ApplicationBehaviour Instance => ObjectUtils.IsValid(instanceCache) ? instanceCache : CreateSingleton(); 8 | 9 | private static ApplicationBehaviour instanceCache; 10 | 11 | private static ApplicationBehaviour CreateSingleton () 12 | { 13 | if (!Application.isPlaying) 14 | { 15 | Debug.LogWarning("ApplicationBehaviour doesn't work at edit time."); 16 | return null; 17 | } 18 | 19 | instanceCache = new GameObject("ApplicationBehaviour").AddComponent(); 20 | instanceCache.gameObject.hideFlags = HideFlags.DontSave; 21 | DontDestroyOnLoad(instanceCache.gameObject); 22 | return instanceCache; 23 | } 24 | 25 | private void OnDestroy () 26 | { 27 | instanceCache = null; 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Converters/GDocToTextAssetConverter.cs: -------------------------------------------------------------------------------- 1 | using System.Text; 2 | using UnityEngine; 3 | 4 | namespace UnityCommon 5 | { 6 | public class GDocToTextAssetConverter : IGoogleDriveConverter 7 | { 8 | public RawDataRepresentation[] Representations { get; } = { 9 | new RawDataRepresentation(null, "application/vnd.google-apps.document") 10 | }; 11 | 12 | public string ExportMimeType => "text/plain"; 13 | 14 | public TextAsset Convert (byte[] obj, string name) 15 | { 16 | var textAsset = new TextAsset(Encoding.UTF8.GetString(obj)); 17 | textAsset.name = name; 18 | return textAsset; 19 | } 20 | 21 | public UniTask ConvertAsync (byte[] obj, string name) => UniTask.FromResult(Convert(obj, name)); 22 | 23 | public object Convert (object obj, string name) => Convert(obj as byte[], name); 24 | 25 | public async UniTask ConvertAsync (object obj, string name) => await ConvertAsync(obj as byte[], name); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Tween/EasingType.cs: -------------------------------------------------------------------------------- 1 | namespace UnityCommon 2 | { 3 | /// 4 | /// Represents an animation easing function type. 5 | /// 6 | public enum EasingType 7 | { 8 | Linear = 0, 9 | SmoothStep, 10 | Spring, 11 | EaseInQuad, 12 | EaseOutQuad, 13 | EaseInOutQuad, 14 | EaseInCubic, 15 | EaseOutCubic, 16 | EaseInOutCubic, 17 | EaseInQuart, 18 | EaseOutQuart, 19 | EaseInOutQuart, 20 | EaseInQuint, 21 | EaseOutQuint, 22 | EaseInOutQuint, 23 | EaseInSine, 24 | EaseOutSine, 25 | EaseInOutSine, 26 | EaseInExpo, 27 | EaseOutExpo, 28 | EaseInOutExpo, 29 | EaseInCirc, 30 | EaseOutCirc, 31 | EaseInOutCirc, 32 | EaseInBounce, 33 | EaseOutBounce, 34 | EaseInOutBounce, 35 | EaseInBack, 36 | EaseOutBack, 37 | EaseInOutBack, 38 | EaseInElastic, 39 | EaseOutElastic, 40 | EaseInOutElastic 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/SceneSwitcher.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | using UnityEngine; 3 | using UnityEngine.SceneManagement; 4 | 5 | namespace UnityCommon 6 | { 7 | public class SceneSwitcher : MonoBehaviour 8 | { 9 | private const int buttonHeight = 50; 10 | private const int buttonWidth = 150; 11 | 12 | private void OnGUI () 13 | { 14 | for (int i = 0; i < SceneManager.sceneCountInBuildSettings; i++) 15 | if (GUI.Button(GetRectForSceneAt(i), GetNameForSceneAt(i))) 16 | SceneManager.LoadScene(i); 17 | } 18 | 19 | private static Rect GetRectForSceneAt (int index) 20 | { 21 | var yPos = Screen.height - (buttonHeight + buttonHeight * index); 22 | return new Rect(0, yPos, buttonWidth, buttonHeight); 23 | } 24 | 25 | private static string GetNameForSceneAt (int index) 26 | { 27 | var scenePath = SceneUtility.GetScenePathByBuildIndex(index); 28 | return Path.GetFileNameWithoutExtension(scenePath); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Gameplay/ParallaxLayer.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace UnityCommon 4 | { 5 | public class ParallaxLayer : MonoBehaviour 6 | { 7 | public Camera Camera { get { return cameraComponent; } } 8 | public float ParallaxFactor { get { return parallaxFactor; } } 9 | 10 | private Transform cameraTrs; 11 | private float initialOffset; 12 | 13 | [SerializeField] private Camera cameraComponent; 14 | [Range(0f, 1f)] 15 | [SerializeField] private float parallaxFactor = 1f; 16 | 17 | private void Awake () 18 | { 19 | cameraTrs = Camera ? Camera.transform : Camera.main.transform; 20 | Debug.Assert(cameraTrs, "Assign required objects to ParallaxLayer."); 21 | initialOffset = (transform.position.x - cameraTrs.position.x) / ParallaxFactor; 22 | } 23 | 24 | private void Update () 25 | { 26 | var targetPosX = cameraTrs.position.x + initialOffset; 27 | transform.SetPosX(targetPosX * ParallaxFactor); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/ProjectResourcesBuildProcessor.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | using UnityEditor.Build; 3 | using UnityEditor.Build.Reporting; 4 | 5 | namespace UnityCommon 6 | { 7 | public class ProjectResourcesBuildProcessor : IPreprocessBuildWithReport, IPostprocessBuildWithReport 8 | { 9 | public static string TempFolderPath = "Assets/TEMP_UNITY_COMMON/Resources"; 10 | 11 | public int callbackOrder => 100; 12 | 13 | private static string assetPath => $"{TempFolderPath}/{ProjectResources.ResourcePath}.asset"; 14 | 15 | public void OnPreprocessBuild (BuildReport report) 16 | { 17 | var asset = ProjectResources.Get(); 18 | EditorUtils.CreateFolderAsset(assetPath.GetBeforeLast("/")); 19 | AssetDatabase.CreateAsset(asset, assetPath); 20 | AssetDatabase.SaveAssets(); 21 | } 22 | 23 | public void OnPostprocessBuild (BuildReport report) 24 | { 25 | AssetDatabase.DeleteAsset(TempFolderPath.GetBeforeLast("/")); 26 | AssetDatabase.SaveAssets(); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Converters/PngToTextureConverter.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace UnityCommon 4 | { 5 | /// 6 | /// Converts raw data of a .png image to . 7 | /// 8 | public class PngToTextureConverter : IRawConverter 9 | { 10 | public RawDataRepresentation[] Representations { get; } = { 11 | new RawDataRepresentation(".png", "image/png") 12 | }; 13 | 14 | public Texture2D Convert (byte[] obj, string name) 15 | { 16 | var texture = new Texture2D(2, 2); 17 | texture.name = name; 18 | texture.LoadImage(obj, true); 19 | return texture; 20 | } 21 | 22 | public UniTask ConvertAsync (byte[] obj, string name) => UniTask.FromResult(Convert(obj, name)); 23 | 24 | public object Convert (object obj, string name) => Convert(obj as byte[], name); 25 | 26 | public async UniTask ConvertAsync (object obj, string name) => await ConvertAsync(obj as byte[], name); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/AddressableFolderLocator.cs: -------------------------------------------------------------------------------- 1 | #if ADDRESSABLES_AVAILABLE 2 | 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using UnityEngine.ResourceManagement.ResourceLocations; 6 | 7 | namespace UnityCommon 8 | { 9 | public class AddressableFolderLocator : LocateFoldersRunner 10 | { 11 | private readonly List locations; 12 | 13 | public AddressableFolderLocator (AddressableResourceProvider provider, string resourcePath, List locations) 14 | : base(provider, resourcePath) 15 | { 16 | this.locations = locations; 17 | } 18 | 19 | public override UniTask RunAsync () 20 | { 21 | var locatedResourcePaths = locations 22 | .Select(l => l.PrimaryKey.GetAfterFirst("/")) // Remove the addressables prefix. 23 | .LocateFolderPathsAtFolder(Path) 24 | .Select(p => new Folder(p)).ToArray(); 25 | SetResult(locatedResourcePaths); 26 | 27 | return UniTask.CompletedTask; 28 | } 29 | } 30 | } 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Collections/Pair.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace UnityCommon 4 | { 5 | /// 6 | /// Represents a container for two generic items. 7 | /// 8 | /// First item type. 9 | /// Second item type. 10 | [System.Serializable] 11 | public class Pair 12 | { 13 | public T1 Item1 { get; set; } 14 | public T2 Item2 { get; set; } 15 | 16 | private static readonly IEqualityComparer item1Comparer = EqualityComparer.Default; 17 | private static readonly IEqualityComparer item2Comparer = EqualityComparer.Default; 18 | 19 | public Pair (T1 item1, T2 item2) 20 | { 21 | Item1 = item1; 22 | Item2 = item2; 23 | } 24 | 25 | public override string ToString () 26 | { 27 | return $"<{Item1}, {Item2}>"; 28 | } 29 | 30 | private static bool IsNull (object obj) 31 | { 32 | return ReferenceEquals(obj, null); 33 | } 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/ResourceProvider/EditorFolderLocator.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | 4 | namespace UnityCommon 5 | { 6 | public class EditorFolderLocator : LocateFoldersRunner 7 | { 8 | private readonly IReadOnlyCollection editorResourcePaths; 9 | 10 | public EditorFolderLocator (IResourceProvider provider, string resourcesPath, IReadOnlyCollection editorResourcePaths) 11 | : base (provider, resourcesPath ?? string.Empty) 12 | { 13 | this.editorResourcePaths = editorResourcePaths; 14 | } 15 | 16 | public override UniTask RunAsync () 17 | { 18 | var locatedFolders = LocateEditorFolders(Path, editorResourcePaths); 19 | SetResult(locatedFolders); 20 | return UniTask.CompletedTask; 21 | } 22 | 23 | public static IReadOnlyCollection LocateEditorFolders (string path, IReadOnlyCollection editorResourcePaths) 24 | { 25 | return editorResourcePaths.LocateFolderPathsAtFolder(path).Select(p => new Folder(p)).ToArray(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2012 Artyom Sovetnikov (Elringus) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/MinMaxRangePropertyDrawer.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | using UnityEngine; 3 | 4 | namespace UnityCommon 5 | { 6 | [CustomPropertyDrawer(typeof(MinMaxRangeAttribute))] 7 | public class MinMaxRangePropertyDrawer : PropertyDrawer 8 | { 9 | public override void OnGUI (Rect position, SerializedProperty property, GUIContent label) 10 | { 11 | if (property.propertyType == SerializedPropertyType.Vector2) 12 | { 13 | var attr = attribute as MinMaxRangeAttribute; 14 | var range = property.vector2Value; 15 | var min = range.x; 16 | var max = range.y; 17 | EditorGUI.BeginChangeCheck(); 18 | EditorGUI.MinMaxSlider(position, label, ref min, ref max, attr.Min, attr.Max); 19 | if (EditorGUI.EndChangeCheck()) 20 | { 21 | range.x = min; 22 | range.y = max; 23 | property.vector2Value = range; 24 | } 25 | } 26 | else EditorGUI.LabelField(position, label, "Use only with Vector2"); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Converters/JpgOrPngToTextureConverter.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace UnityCommon 4 | { 5 | /// 6 | /// Converts raw data of a .png or .jpg image to . 7 | /// 8 | public class JpgOrPngToTextureConverter : IRawConverter 9 | { 10 | public RawDataRepresentation[] Representations { get; } = { 11 | new RawDataRepresentation(".png", "image/png"), 12 | new RawDataRepresentation(".jpg", "image/jpeg") 13 | }; 14 | 15 | public Texture2D Convert (byte[] obj, string name) 16 | { 17 | var texture = new Texture2D(2, 2); 18 | texture.name = name; 19 | texture.LoadImage(obj, true); 20 | return texture; 21 | } 22 | 23 | public UniTask ConvertAsync (byte[] obj, string name) => UniTask.FromResult(Convert(obj, name)); 24 | 25 | public object Convert (object obj, string name) => Convert(obj as byte[], name); 26 | 27 | public async UniTask ConvertAsync (object obj, string name) => await ConvertAsync(obj as byte[], name); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ProxyBehaviour.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace UnityCommon 5 | { 6 | public class ProxyBehaviour : MonoBehaviour 7 | { 8 | public event Action OnBehaviourAwake; 9 | public event Action OnBehaviourEnable; 10 | public event Action OnBehaviourStart; 11 | public event Action OnBehaviourUpdate; 12 | public event Action OnBehaviourDisable; 13 | public event Action OnBehaviourDestroy; 14 | 15 | private void Awake () 16 | { 17 | OnBehaviourAwake?.Invoke(); 18 | } 19 | 20 | private void OnEnable () 21 | { 22 | OnBehaviourEnable?.Invoke(); 23 | } 24 | 25 | private void Start () 26 | { 27 | OnBehaviourStart?.Invoke(); 28 | } 29 | 30 | private void Update () 31 | { 32 | OnBehaviourUpdate?.Invoke(); 33 | } 34 | 35 | private void OnDisable () 36 | { 37 | OnBehaviourDisable?.Invoke(); 38 | } 39 | 40 | private void OnDestroy () 41 | { 42 | OnBehaviourDestroy?.Invoke(); 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Utilities/AsyncUtils.cs: -------------------------------------------------------------------------------- 1 | namespace UnityCommon 2 | { 3 | public static class AsyncUtils 4 | { 5 | public static UniTask.Awaiter GetAwaiter (this UniTask? task) 6 | { 7 | return task?.GetAwaiter() ?? UniTask.CompletedTask.GetAwaiter(); 8 | } 9 | 10 | public static UniTask.Awaiter GetAwaiter (this UniTask? task) 11 | { 12 | return task?.GetAwaiter() ?? UniTask.FromResult(default).GetAwaiter(); 13 | } 14 | 15 | /// 16 | /// Waits till the end of the current update loop. Doesn't allocate on heap. 17 | /// 18 | public static YieldAwaitable WaitEndOfFrameAsync (AsyncToken asyncToken = default) 19 | { 20 | // "LastPostLateUpdate" causes issues with rendering, using the one before. 21 | return UniTask.Yield(PlayerLoopTiming.PostLateUpdate, asyncToken); 22 | } 23 | 24 | public static async UniTask DelayFrameAsync (int frameCount, AsyncToken asyncToken = default) 25 | { 26 | await UniTask.DelayFrame(frameCount); 27 | asyncToken.ThrowIfCanceled(); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/LICENSE.txt: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2019 Yoshifumi Kawai / Cysharp, Inc. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Async/UniTask/Public/UniTaskVoid.cs: -------------------------------------------------------------------------------- 1 | #pragma warning disable CS0436 2 | 3 | using System; 4 | using System.Diagnostics; 5 | using System.Runtime.CompilerServices; 6 | using UnityCommon.Async.CompilerServices; 7 | 8 | namespace UnityCommon 9 | { 10 | [AsyncMethodBuilder(typeof(AsyncUniTaskVoidMethodBuilder))] 11 | public struct UniTaskVoid 12 | { 13 | public void Forget () { } 14 | 15 | [DebuggerHidden] 16 | public Awaiter GetAwaiter () 17 | { 18 | return new Awaiter(); 19 | } 20 | 21 | public struct Awaiter : ICriticalNotifyCompletion 22 | { 23 | [DebuggerHidden] 24 | public bool IsCompleted => true; 25 | 26 | [DebuggerHidden] 27 | public void GetResult () 28 | { 29 | UnityEngine.Debug.LogWarning("UniTaskVoid can't await, always fire-and-forget. use Forget instead of await."); 30 | } 31 | 32 | [DebuggerHidden] 33 | public void OnCompleted (Action continuation) { } 34 | 35 | [DebuggerHidden] 36 | public void UnsafeOnCompleted (Action continuation) { } 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/ProjectFolderLocator.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | 5 | namespace UnityCommon 6 | { 7 | public class ProjectFolderLocator : LocateFoldersRunner 8 | { 9 | private readonly IReadOnlyDictionary projectResources; 10 | 11 | public ProjectFolderLocator (IResourceProvider provider, string resourcesPath, IReadOnlyDictionary projectResources) 12 | : base(provider, resourcesPath ?? string.Empty) 13 | { 14 | this.projectResources = projectResources; 15 | } 16 | 17 | public override UniTask RunAsync () 18 | { 19 | var locatedFolders = LocateProjectFolders(Path, projectResources); 20 | SetResult(locatedFolders); 21 | return UniTask.CompletedTask; 22 | } 23 | 24 | public static IReadOnlyCollection LocateProjectFolders (string resourcesPath, IReadOnlyDictionary projectResources) 25 | { 26 | return projectResources.Keys.LocateFolderPathsAtFolder(resourcesPath) 27 | .Select(p => new Folder(p)).ToList(); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/ResourceProvider/EditorResourceLocator.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | 4 | namespace UnityCommon 5 | { 6 | public class EditorResourceLocator : LocateResourcesRunner 7 | where TResource : UnityEngine.Object 8 | { 9 | private readonly IReadOnlyCollection editorResourcePaths; 10 | 11 | public EditorResourceLocator (IResourceProvider provider, string resourcesPath, 12 | IReadOnlyCollection editorResourcePaths) : base(provider, resourcesPath ?? string.Empty) 13 | { 14 | this.editorResourcePaths = editorResourcePaths; 15 | } 16 | 17 | public override UniTask RunAsync () 18 | { 19 | var locatedResourcePaths = LocateProjectResources(Path, editorResourcePaths); 20 | SetResult(locatedResourcePaths); 21 | return UniTask.CompletedTask; 22 | } 23 | 24 | public static IReadOnlyCollection LocateProjectResources (string path, IReadOnlyCollection editorResourcePaths) 25 | { 26 | return editorResourcePaths.LocateResourcePathsAtFolder(path).ToArray(); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ResourceProvider/AddressableResourceLocator.cs: -------------------------------------------------------------------------------- 1 | #if ADDRESSABLES_AVAILABLE 2 | 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using UnityEngine.ResourceManagement.ResourceLocations; 6 | 7 | namespace UnityCommon 8 | { 9 | public class AddressableResourceLocator : LocateResourcesRunner 10 | where TResource : UnityEngine.Object 11 | { 12 | private readonly List locations; 13 | 14 | public AddressableResourceLocator (AddressableResourceProvider provider, string resourcePath, List locations) 15 | : base(provider, resourcePath) 16 | { 17 | this.locations = locations; 18 | } 19 | 20 | public override UniTask RunAsync () 21 | { 22 | var locatedResourcePaths = locations 23 | .Where(l => l.ResourceType == typeof(TResource)) 24 | .Select(l => l.PrimaryKey.GetAfterFirst("/")) // Remove the addressables prefix. 25 | .LocateResourcePathsAtFolder(Path); 26 | SetResult(locatedResourcePaths); 27 | 28 | return UniTask.CompletedTask; 29 | } 30 | } 31 | } 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Updater.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace UnityCommon 5 | { 6 | public class Updater : MonoBehaviour 7 | { 8 | public float UpdateDelay { get => updateDelay; set => updateDelay = value; } 9 | 10 | [SerializeField] private float updateDelay; 11 | 12 | private Action[] actions = Array.Empty(); 13 | private float lastUpdateTime; 14 | 15 | private void Update () 16 | { 17 | var timeSinceLastUpdate = Time.time - lastUpdateTime; 18 | if (timeSinceLastUpdate < UpdateDelay) return; 19 | 20 | var length = actions.Length; 21 | for (int i = 0; i < length; i++) 22 | actions[i].Invoke(); 23 | 24 | lastUpdateTime = Time.time; 25 | } 26 | 27 | private void OnDestroy () 28 | { 29 | actions = Array.Empty(); 30 | } 31 | 32 | public void AddAction (Action action) 33 | { 34 | ArrayUtils.Add(ref actions, action); 35 | } 36 | 37 | public void RemoveAction (Action action) 38 | { 39 | ArrayUtils.Remove(ref actions, action); 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Editor/LabeledButtonEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | using UnityEditor.UI; 3 | 4 | namespace UnityCommon 5 | { 6 | [CustomEditor(typeof(LabeledButton), true), CanEditMultipleObjects] 7 | public class LabeledButtonEditor : ButtonEditor 8 | { 9 | private SerializedProperty labelTextProperty; 10 | private SerializedProperty labelColorsProperty; 11 | 12 | protected override void OnEnable () 13 | { 14 | base.OnEnable(); 15 | 16 | labelTextProperty = serializedObject.FindProperty("labelText"); 17 | labelColorsProperty = serializedObject.FindProperty("labelColors"); 18 | } 19 | 20 | public override void OnInspectorGUI () 21 | { 22 | base.OnInspectorGUI(); 23 | 24 | serializedObject.Update(); 25 | 26 | EditorGUILayout.PropertyField(labelTextProperty); 27 | 28 | ++EditorGUI.indentLevel; 29 | { 30 | EditorGUILayout.PropertyField(labelColorsProperty); 31 | } 32 | --EditorGUI.indentLevel; 33 | 34 | EditorGUILayout.Space(); 35 | 36 | serializedObject.ApplyModifiedProperties(); 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/FpsDisplay.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using UnityEngine; 3 | using UnityEngine.UI; 4 | 5 | namespace UnityCommon 6 | { 7 | [RequireComponent(typeof(Text))] 8 | public class FpsDisplay : MonoBehaviour 9 | { 10 | [SerializeField] private float updateFrequency = 1f; 11 | 12 | private Text text; 13 | 14 | private void Awake () 15 | { 16 | text = GetComponent(); 17 | } 18 | 19 | private void Start () 20 | { 21 | StartCoroutine(UpdateCounter()); 22 | } 23 | 24 | private IEnumerator UpdateCounter () 25 | { 26 | var waitForDelay = new WaitForSeconds(updateFrequency); 27 | 28 | while (Application.isPlaying) 29 | { 30 | var lastFrameCount = Time.frameCount; 31 | var lastTime = Time.realtimeSinceStartup; 32 | 33 | yield return waitForDelay; 34 | 35 | var timeDelta = Time.realtimeSinceStartup - lastTime; 36 | var frameDelta = Time.frameCount - lastFrameCount; 37 | 38 | text.text = $"{frameDelta / timeDelta:0.} FPS"; 39 | } 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Collections/AsyncQueue.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Concurrent; 4 | using System.Collections.Generic; 5 | 6 | namespace UnityCommon 7 | { 8 | public class AsyncQueue : IReadOnlyCollection, IDisposable 9 | { 10 | public int Count => queue.Count; 11 | 12 | private readonly ConcurrentQueue queue = new ConcurrentQueue(); 13 | private readonly Semaphore semaphore = new Semaphore(0); 14 | 15 | public void Enqueue (T item) 16 | { 17 | queue.Enqueue(item); 18 | semaphore.Release(); 19 | } 20 | 21 | public async UniTask WaitAsync (AsyncToken token) 22 | { 23 | while (!token.Canceled) 24 | { 25 | await semaphore.WaitAsync(token.CancellationToken); 26 | if (queue.TryDequeue(out var message)) return message; 27 | } 28 | throw new OperationCanceledException(); 29 | } 30 | 31 | public void Dispose () => semaphore.Dispose(); 32 | public IEnumerator GetEnumerator () => queue.GetEnumerator(); 33 | IEnumerator IEnumerable.GetEnumerator () => GetEnumerator(); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Converters/JpgToSpriteConverter.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace UnityCommon 4 | { 5 | /// 6 | /// Converts raw data of a .jpg image to . 7 | /// 8 | public class JpgToSpriteConverter : IRawConverter 9 | { 10 | public RawDataRepresentation[] Representations { get; } = { 11 | new RawDataRepresentation(".jpg", "image/jpeg") 12 | }; 13 | 14 | public Sprite Convert (byte[] obj, string name) 15 | { 16 | var texture = new Texture2D(2, 2); 17 | texture.name = name; 18 | texture.LoadImage(obj, true); 19 | var rect = new Rect(0, 0, texture.width, texture.height); 20 | var sprite = Sprite.Create(texture, rect, Vector2.one * .5f); 21 | return sprite; 22 | } 23 | 24 | public UniTask ConvertAsync (byte[] obj, string name) => UniTask.FromResult(Convert(obj, name)); 25 | 26 | public object Convert (object obj, string name) => Convert(obj as byte[], name); 27 | 28 | public async UniTask ConvertAsync (object obj, string name) => await ConvertAsync(obj as byte[], name); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/Converters/PngToSpriteConverter.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace UnityCommon 4 | { 5 | /// 6 | /// Converts raw data of a .png image to . 7 | /// 8 | public class PngToSpriteConverter : IRawConverter 9 | { 10 | public RawDataRepresentation[] Representations { get; } = { 11 | new RawDataRepresentation(".png", "image/png") 12 | }; 13 | 14 | public Sprite Convert (byte[] obj, string name) 15 | { 16 | var texture = new Texture2D(2, 2); 17 | texture.name = name; 18 | texture.LoadImage(obj, true); 19 | var rect = new Rect(0, 0, texture.width, texture.height); 20 | var sprite = Sprite.Create(texture, rect, Vector2.one * .5f); 21 | return sprite; 22 | } 23 | 24 | public UniTask ConvertAsync (byte[] obj, string name) => UniTask.FromResult(Convert(obj, name)); 25 | 26 | public object Convert (object obj, string name) => Convert(obj as byte[], name); 27 | 28 | public async UniTask ConvertAsync (object obj, string name) => await ConvertAsync(obj as byte[], name); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ScriptableUI/ScriptableLabeledButton.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnityCommon 4 | { 5 | public class ScriptableLabeledButton : ScriptableUIControl 6 | { 7 | public event Action OnButtonClicked; 8 | 9 | public override bool Interactable => CanvasGroup ? base.Interactable : UIComponent.interactable; 10 | 11 | public override void SetInteractable (bool interactable) 12 | { 13 | if (CanvasGroup) base.SetInteractable(interactable); 14 | else UIComponent.interactable = interactable; 15 | } 16 | 17 | protected override void BindUIEvents () 18 | { 19 | UIComponent.onClick.AddListener(OnButtonClick); 20 | UIComponent.onClick.AddListener(InvokeOnButtonClicked); 21 | } 22 | 23 | protected override void UnbindUIEvents () 24 | { 25 | UIComponent.onClick.RemoveListener(OnButtonClick); 26 | UIComponent.onClick.RemoveListener(InvokeOnButtonClicked); 27 | } 28 | 29 | protected virtual void OnButtonClick () { } 30 | 31 | private void InvokeOnButtonClicked () 32 | { 33 | OnButtonClicked?.Invoke(); 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Assets/UnityCommon/Runtime/ScriptableUI/ScriptableButton.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine.UI; 3 | 4 | namespace UnityCommon 5 | { 6 | public class ScriptableButton : ScriptableUIControl