Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c0f4fc6ab7 |
No files matched your search
@@ -1,115 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!114 &11400000
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 0}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 468a46d0ae32c3544b7d98094e6448a9, type: 3}
|
|
||||||
m_Name: AddressableAssetSettings
|
|
||||||
m_EditorClassIdentifier: Unity.Addressables.Editor::UnityEditor.AddressableAssets.Settings.AddressableAssetSettings
|
|
||||||
m_DefaultGroup: d447fc60305c17a17bf20948ab295a45
|
|
||||||
m_currentHash:
|
|
||||||
serializedVersion: 2
|
|
||||||
Hash: 44f191e9f235d5420c20a51f93ead7da
|
|
||||||
m_OptimizeCatalogSize: 0
|
|
||||||
m_BuildRemoteCatalog: 0
|
|
||||||
m_CatalogRequestsTimeout: 0
|
|
||||||
m_DisableCatalogUpdateOnStart: 0
|
|
||||||
m_InternalIdNamingMode: 0
|
|
||||||
m_InternalBundleIdMode: 1
|
|
||||||
m_AssetLoadMode: 0
|
|
||||||
m_BundledAssetProviderType:
|
|
||||||
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
|
||||||
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.BundledAssetProvider
|
|
||||||
m_AssetBundleProviderType:
|
|
||||||
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
|
||||||
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleProvider
|
|
||||||
m_IgnoreUnsupportedFilesInBuild: 0
|
|
||||||
m_UniqueBundleIds: 0
|
|
||||||
m_EnableJsonCatalog: 0
|
|
||||||
m_NonRecursiveBuilding: 1
|
|
||||||
m_AllowNestedBundleFolders: 0
|
|
||||||
m_CCDEnabled: 0
|
|
||||||
m_maxConcurrentWebRequests: 3
|
|
||||||
m_UseUWRForLocalBundles: 0
|
|
||||||
m_BundleTimeout: 0
|
|
||||||
m_BundleRetryCount: 0
|
|
||||||
m_BundleRedirectLimit: -1
|
|
||||||
m_SharedBundleSettings: 0
|
|
||||||
m_SharedBundleSettingsCustomGroupIndex: 0
|
|
||||||
m_ContiguousBundles: 1
|
|
||||||
m_StripUnityVersionFromBundleBuild: 0
|
|
||||||
m_DisableVisibleSubAssetRepresentations: 0
|
|
||||||
m_BuiltInBundleNaming: 0
|
|
||||||
mBuiltInBundleCustomNaming:
|
|
||||||
m_MonoScriptBundleNaming: 0
|
|
||||||
m_CheckForContentUpdateRestrictionsOption: 0
|
|
||||||
m_MonoScriptBundleCustomNaming:
|
|
||||||
m_RemoteCatalogBuildPath:
|
|
||||||
m_Id:
|
|
||||||
m_RemoteCatalogLoadPath:
|
|
||||||
m_Id:
|
|
||||||
m_ContentStateBuildPathProfileVariableName:
|
|
||||||
m_CustomContentStateBuildPath:
|
|
||||||
m_ContentStateBuildPath:
|
|
||||||
m_BuildAddressablesWithPlayerBuild: 0
|
|
||||||
m_overridePlayerVersion: '[UnityEditor.PlayerSettings.bundleVersion]'
|
|
||||||
m_GroupAssets:
|
|
||||||
- {fileID: 11400000, guid: 7c592a6445170e8379910601b962cb30, type: 2}
|
|
||||||
m_BuildSettings:
|
|
||||||
m_LogResourceManagerExceptions: 1
|
|
||||||
m_BundleBuildPath: Temp/com.unity.addressables/AssetBundles
|
|
||||||
m_ProfileSettings:
|
|
||||||
m_Profiles:
|
|
||||||
- m_InheritedParent:
|
|
||||||
m_Id: 27da1d7d9f959ba49a362cf69a3fd39a
|
|
||||||
m_ProfileName: Default
|
|
||||||
m_Values:
|
|
||||||
- m_Id: 1c16dd3f2d89b2375b66c8f065c7a694
|
|
||||||
m_Value: '[UnityEditor.EditorUserBuildSettings.activeBuildTarget]'
|
|
||||||
- m_Id: 3dfc1a15d30236e7a8856b2164e14280
|
|
||||||
m_Value: '[UnityEngine.AddressableAssets.Addressables.BuildPath]/[BuildTarget]'
|
|
||||||
- m_Id: 6c794a757c731a0319b43709731ad88b
|
|
||||||
m_Value: '{UnityEngine.AddressableAssets.Addressables.RuntimePath}/[BuildTarget]'
|
|
||||||
- m_Id: 74b04ebc3f202c2f9b6f1e8fb0470bd2
|
|
||||||
m_Value: 'ServerData/[BuildTarget]'
|
|
||||||
- m_Id: 9ccf5e6cc7ba2d421a1c573d8a7ebcd7
|
|
||||||
m_Value: <undefined>
|
|
||||||
m_ProfileEntryNames:
|
|
||||||
- m_Id: 1c16dd3f2d89b2375b66c8f065c7a694
|
|
||||||
m_Name: BuildTarget
|
|
||||||
m_InlineUsage: 0
|
|
||||||
- m_Id: 3dfc1a15d30236e7a8856b2164e14280
|
|
||||||
m_Name: Local.BuildPath
|
|
||||||
m_InlineUsage: 0
|
|
||||||
- m_Id: 6c794a757c731a0319b43709731ad88b
|
|
||||||
m_Name: Local.LoadPath
|
|
||||||
m_InlineUsage: 0
|
|
||||||
- m_Id: 74b04ebc3f202c2f9b6f1e8fb0470bd2
|
|
||||||
m_Name: Remote.BuildPath
|
|
||||||
m_InlineUsage: 0
|
|
||||||
- m_Id: 9ccf5e6cc7ba2d421a1c573d8a7ebcd7
|
|
||||||
m_Name: Remote.LoadPath
|
|
||||||
m_InlineUsage: 0
|
|
||||||
m_ProfileVersion: 1
|
|
||||||
m_LabelTable:
|
|
||||||
m_LabelNames:
|
|
||||||
- default
|
|
||||||
m_SchemaTemplates: []
|
|
||||||
m_GroupTemplateObjects:
|
|
||||||
- {fileID: 11400000, guid: 14909e654d6c7bd958ff44091773bd40, type: 2}
|
|
||||||
m_InitializationObjects: []
|
|
||||||
m_CertificateHandlerType:
|
|
||||||
m_AssemblyName:
|
|
||||||
m_ClassName:
|
|
||||||
m_ActivePlayerDataBuilderIndex: 2
|
|
||||||
m_DataBuilders:
|
|
||||||
- {fileID: 11400000, guid: 1ac723026a19cb90d8d5dd77ce8c384b, type: 2}
|
|
||||||
- {fileID: 11400000, guid: e628a9e942e45e1ca94ad90d02e9acdf, type: 2}
|
|
||||||
- {fileID: 11400000, guid: 1d3143f4a67a990fc9532b22a020137d, type: 2}
|
|
||||||
m_ActiveProfileId: 27da1d7d9f959ba49a362cf69a3fd39a
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 2588e84eb64800d0781c574a37fa48d8
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 11400000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,79 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!114 &11400000
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 0}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 1a3c5d64ac83548c09dd1678b9f6f1cd, type: 3}
|
|
||||||
m_Name: Packed Assets
|
|
||||||
m_EditorClassIdentifier: Unity.Addressables.Editor::UnityEditor.AddressableAssets.Settings.AddressableAssetGroupTemplate
|
|
||||||
m_SchemaObjects:
|
|
||||||
- {fileID: 8850813396489121111}
|
|
||||||
- {fileID: 3451013361182384685}
|
|
||||||
m_Description: Pack assets into asset bundles.
|
|
||||||
m_Settings: {fileID: 11400000, guid: 2588e84eb64800d0781c574a37fa48d8, type: 2}
|
|
||||||
--- !u!114 &3451013361182384685
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 0}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 5834b5087d578d24c926ce20cd31e6d6, type: 3}
|
|
||||||
m_Name: ContentUpdateGroupSchema
|
|
||||||
m_EditorClassIdentifier: Unity.Addressables.Editor::UnityEditor.AddressableAssets.Settings.GroupSchemas.ContentUpdateGroupSchema
|
|
||||||
m_Group: {fileID: 0}
|
|
||||||
m_StaticContent: 0
|
|
||||||
--- !u!114 &8850813396489121111
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 0}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: e5d17a21594effb4e9591490b009e7aa, type: 3}
|
|
||||||
m_Name: BundledAssetGroupSchema
|
|
||||||
m_EditorClassIdentifier: Unity.Addressables.Editor::UnityEditor.AddressableAssets.Settings.GroupSchemas.BundledAssetGroupSchema
|
|
||||||
m_Group: {fileID: 0}
|
|
||||||
m_InternalBundleIdMode: 1
|
|
||||||
m_Compression: 1
|
|
||||||
m_IncludeAddressInCatalog: 1
|
|
||||||
m_IncludeGUIDInCatalog: 1
|
|
||||||
m_IncludeLabelsInCatalog: 1
|
|
||||||
m_InternalIdNamingMode: 0
|
|
||||||
m_CacheClearBehavior: 0
|
|
||||||
m_IncludeInBuild: 1
|
|
||||||
m_BundledAssetProviderType:
|
|
||||||
m_AssemblyName:
|
|
||||||
m_ClassName:
|
|
||||||
m_StripDownloadOptions: 0
|
|
||||||
m_ForceUniqueProvider: 0
|
|
||||||
m_UseAssetBundleCache: 1
|
|
||||||
m_UseAssetBundleCrc: 1
|
|
||||||
m_UseAssetBundleCrcForCachedBundles: 1
|
|
||||||
m_UseUWRForLocalBundles: 0
|
|
||||||
m_Timeout: 0
|
|
||||||
m_ChunkedTransfer: 0
|
|
||||||
m_RedirectLimit: -1
|
|
||||||
m_RetryCount: 0
|
|
||||||
m_BuildPath:
|
|
||||||
m_Id:
|
|
||||||
m_LoadPath:
|
|
||||||
m_Id:
|
|
||||||
m_BundleMode: 0
|
|
||||||
m_AssetBundleProviderType:
|
|
||||||
m_AssemblyName:
|
|
||||||
m_ClassName:
|
|
||||||
m_UseDefaultSchemaSettings: 0
|
|
||||||
m_SelectedPathPairIndex: 0
|
|
||||||
m_BundleNaming: 0
|
|
||||||
m_AssetLoadMode: 0
|
|
||||||
-8
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 14909e654d6c7bd958ff44091773bd40
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 11400000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!114 &11400000
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 0}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: bbb281ee3bf0b054c82ac2347e9e782c, type: 3}
|
|
||||||
m_Name: Default Local Group
|
|
||||||
m_EditorClassIdentifier: Unity.Addressables.Editor::UnityEditor.AddressableAssets.Settings.AddressableAssetGroup
|
|
||||||
m_GroupName: Default Local Group
|
|
||||||
m_GUID: d447fc60305c17a17bf20948ab295a45
|
|
||||||
m_SerializeEntries: []
|
|
||||||
m_ReadOnly: 0
|
|
||||||
m_Settings: {fileID: 11400000, guid: 2588e84eb64800d0781c574a37fa48d8, type: 2}
|
|
||||||
m_SchemaSet:
|
|
||||||
m_Schemas:
|
|
||||||
- {fileID: 11400000, guid: 75ffac7db08d9615c994048949431551, type: 2}
|
|
||||||
- {fileID: 11400000, guid: 6d6fed27b8c8a3eebb9bc5289b7a6956, type: 2}
|
|
||||||
-8
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 7c592a6445170e8379910601b962cb30
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 11400000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
-48
@@ -1,48 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!114 &11400000
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 0}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: e5d17a21594effb4e9591490b009e7aa, type: 3}
|
|
||||||
m_Name: Default Local Group_BundledAssetGroupSchema
|
|
||||||
m_EditorClassIdentifier: Unity.Addressables.Editor::UnityEditor.AddressableAssets.Settings.GroupSchemas.BundledAssetGroupSchema
|
|
||||||
m_Group: {fileID: 11400000, guid: 7c592a6445170e8379910601b962cb30, type: 2}
|
|
||||||
m_InternalBundleIdMode: 1
|
|
||||||
m_Compression: 1
|
|
||||||
m_IncludeAddressInCatalog: 1
|
|
||||||
m_IncludeGUIDInCatalog: 1
|
|
||||||
m_IncludeLabelsInCatalog: 1
|
|
||||||
m_InternalIdNamingMode: 0
|
|
||||||
m_CacheClearBehavior: 0
|
|
||||||
m_IncludeInBuild: 1
|
|
||||||
m_BundledAssetProviderType:
|
|
||||||
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
|
||||||
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.BundledAssetProvider
|
|
||||||
m_StripDownloadOptions: 0
|
|
||||||
m_ForceUniqueProvider: 0
|
|
||||||
m_UseAssetBundleCache: 1
|
|
||||||
m_UseAssetBundleCrc: 1
|
|
||||||
m_UseAssetBundleCrcForCachedBundles: 1
|
|
||||||
m_UseUWRForLocalBundles: 0
|
|
||||||
m_Timeout: 0
|
|
||||||
m_ChunkedTransfer: 0
|
|
||||||
m_RedirectLimit: -1
|
|
||||||
m_RetryCount: 0
|
|
||||||
m_BuildPath:
|
|
||||||
m_Id: 3dfc1a15d30236e7a8856b2164e14280
|
|
||||||
m_LoadPath:
|
|
||||||
m_Id: 6c794a757c731a0319b43709731ad88b
|
|
||||||
m_BundleMode: 0
|
|
||||||
m_AssetBundleProviderType:
|
|
||||||
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
|
||||||
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleProvider
|
|
||||||
m_UseDefaultSchemaSettings: 0
|
|
||||||
m_SelectedPathPairIndex: 0
|
|
||||||
m_BundleNaming: 0
|
|
||||||
m_AssetLoadMode: 0
|
|
||||||
-8
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 75ffac7db08d9615c994048949431551
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 11400000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
-16
@@ -1,16 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!114 &11400000
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 0}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 5834b5087d578d24c926ce20cd31e6d6, type: 3}
|
|
||||||
m_Name: Default Local Group_ContentUpdateGroupSchema
|
|
||||||
m_EditorClassIdentifier: Unity.Addressables.Editor::UnityEditor.AddressableAssets.Settings.GroupSchemas.ContentUpdateGroupSchema
|
|
||||||
m_Group: {fileID: 11400000, guid: 7c592a6445170e8379910601b962cb30, type: 2}
|
|
||||||
m_StaticContent: 0
|
|
||||||
-8
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 6d6fed27b8c8a3eebb9bc5289b7a6956
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 11400000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: d870ba11c395ba2d6b17a441e8e68cef
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!114 &11400000
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 0}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 88d21199f5d473f4db36845f2318f180, type: 3}
|
|
||||||
m_Name: BuildScriptFastMode
|
|
||||||
m_EditorClassIdentifier: Unity.Addressables.Editor::UnityEditor.AddressableAssets.Build.DataBuilders.BuildScriptFastMode
|
|
||||||
instanceProviderType:
|
|
||||||
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
|
||||||
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.InstanceProvider
|
|
||||||
sceneProviderType:
|
|
||||||
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
|
||||||
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider
|
|
||||||
-8
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 1ac723026a19cb90d8d5dd77ce8c384b
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 11400000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!114 &11400000
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 0}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 3e2e0ffa088c91d41a086d0b8cb16bdc, type: 3}
|
|
||||||
m_Name: BuildScriptPackedMode
|
|
||||||
m_EditorClassIdentifier: Unity.Addressables.Editor::UnityEditor.AddressableAssets.Build.DataBuilders.BuildScriptPackedMode
|
|
||||||
instanceProviderType:
|
|
||||||
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
|
||||||
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.InstanceProvider
|
|
||||||
sceneProviderType:
|
|
||||||
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
|
||||||
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider
|
|
||||||
-8
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 1d3143f4a67a990fc9532b22a020137d
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 11400000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
-20
@@ -1,20 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!114 &11400000
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 0}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: ad8c280d42ee0ed41a27db23b43dd2bf, type: 3}
|
|
||||||
m_Name: BuildScriptPackedPlayMode
|
|
||||||
m_EditorClassIdentifier: Unity.Addressables.Editor::UnityEditor.AddressableAssets.Build.DataBuilders.BuildScriptPackedPlayMode
|
|
||||||
instanceProviderType:
|
|
||||||
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
|
||||||
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.InstanceProvider
|
|
||||||
sceneProviderType:
|
|
||||||
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
|
||||||
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.SceneProvider
|
|
||||||
-8
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: e628a9e942e45e1ca94ad90d02e9acdf
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 11400000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!114 &11400000
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 0}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 3a189bb168d8d90478a09ea08c2f3d72, type: 3}
|
|
||||||
m_Name: DefaultObject
|
|
||||||
m_EditorClassIdentifier: Unity.Addressables.Editor::UnityEditor.AddressableAssets.AddressableAssetSettingsDefaultObject
|
|
||||||
m_AddressableAssetSettingsGuid: 2588e84eb64800d0781c574a37fa48d8
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 9338e51d1f2239ddbb8f2c6232a2b678
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 11400000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,24 +1,21 @@
|
|||||||
using Code.App.StateMachine;
|
using Code.App.StateMachine;
|
||||||
using Code.Gameplay.Camera;
|
|
||||||
using Code.Input;
|
using Code.Input;
|
||||||
using Code.Scenes;
|
using Code.Scenes;
|
||||||
using Code.StateMachine;
|
using Code.StateMachine;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Code.App.AppStates
|
namespace Code.App.AppStates
|
||||||
{
|
{
|
||||||
public class GameplayState : BaseState<AppStateMachineContext>
|
public class GameplayState : BaseState<AppStateMachineContext>
|
||||||
{
|
{
|
||||||
|
|
||||||
public GameplayState(AppStateMachineContext context) : base(context)
|
public GameplayState(AppStateMachineContext context) : base(context)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void EnterState()
|
public override void EnterState()
|
||||||
{
|
{
|
||||||
Context.SceneLoaderService.LoadScene((int)SceneIds.MovementDev, SceneLoaded);
|
Context.SceneLoaderService.LoadScene((int)SceneIds.Gameplay, SceneLoaded);
|
||||||
Context.InputService.EnableMap(ActionMappings.Gameplay);
|
Context.InputService.EnableMap(ActionMappings.Gameplay);
|
||||||
|
|
||||||
Context.CameraStateMachine.SwitchState(CameraMode.FirstPerson);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SceneLoaded()
|
private void SceneLoaded()
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using Code.App.StateMachine;
|
using Code.App.StateMachine;
|
||||||
using Code.Gameplay.Camera;
|
|
||||||
using Code.Input;
|
using Code.Input;
|
||||||
using Code.Scenes;
|
using Code.Scenes;
|
||||||
using Code.StateMachine;
|
using Code.StateMachine;
|
||||||
@@ -15,13 +14,12 @@ namespace Code.App.AppStates
|
|||||||
{
|
{
|
||||||
Context.SceneLoaderService.LoadScene((int)SceneIds.MainMenu, SceneLoaded);
|
Context.SceneLoaderService.LoadScene((int)SceneIds.MainMenu, SceneLoaded);
|
||||||
Context.InputService.EnableMap(ActionMappings.MainMenu);
|
Context.InputService.EnableMap(ActionMappings.MainMenu);
|
||||||
|
|
||||||
Context.CameraStateMachine.SwitchState(CameraMode.Static);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SceneLoaded()
|
private void SceneLoaded()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
base.EnterState();
|
base.EnterState();
|
||||||
}
|
}
|
||||||
public override void Tick()
|
public override void Tick()
|
||||||
|
|||||||
@@ -1,41 +0,0 @@
|
|||||||
using Code.App.StateMachine;
|
|
||||||
using Code.Gameplay.Camera;
|
|
||||||
using Code.Input;
|
|
||||||
using Code.Scenes;
|
|
||||||
using Code.StateMachine;
|
|
||||||
|
|
||||||
namespace Code.App.AppStates
|
|
||||||
{
|
|
||||||
//TODO: поменяно для теста
|
|
||||||
public class MovementDevState: BaseState<AppStateMachineContext>
|
|
||||||
{
|
|
||||||
public MovementDevState(AppStateMachineContext context) : base(context)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void EnterState()
|
|
||||||
{
|
|
||||||
Context.SceneLoaderService.LoadScene((int)SceneIds.MovementDev, SceneLoaded);
|
|
||||||
Context.InputService.EnableMap(ActionMappings.Gameplay);
|
|
||||||
|
|
||||||
Context.CameraStateMachine.SwitchState(CameraMode.FirstPerson);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void SceneLoaded()
|
|
||||||
{
|
|
||||||
|
|
||||||
base.EnterState();
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Tick()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void ExitState()
|
|
||||||
{
|
|
||||||
Context.InputService.DisableMap(ActionMappings.Gameplay);
|
|
||||||
|
|
||||||
base.ExitState();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 395d8d3979124f10897c28bae62b288a
|
|
||||||
timeCreated: 1760638654
|
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
using Code.App.StateMachine;
|
using Code.App.StateMachine;
|
||||||
using Code.Configs;
|
using Code.Configs;
|
||||||
using Code.Gameplay.Camera;
|
|
||||||
using Code.Input;
|
using Code.Input;
|
||||||
using Code.Scenes;
|
using Code.Scenes;
|
||||||
using Code.StaticData;
|
using Configs;
|
||||||
using Reflex.Core;
|
using Reflex.Core;
|
||||||
using Reflex.Injectors;
|
using Reflex.Injectors;
|
||||||
|
using StaticData;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.InputSystem;
|
using UnityEngine.InputSystem;
|
||||||
|
|
||||||
@@ -21,35 +21,20 @@ namespace Code.App
|
|||||||
InstallInfrastructureUnit(containerBuilder, staticDataService);
|
InstallInfrastructureUnit(containerBuilder, staticDataService);
|
||||||
|
|
||||||
containerBuilder.AddSingleton(typeof(InputService), typeof(IInputService));
|
containerBuilder.AddSingleton(typeof(InputService), typeof(IInputService));
|
||||||
|
|
||||||
InitializeCamera(containerBuilder, staticDataService);
|
|
||||||
|
|
||||||
containerBuilder.AddSingleton(typeof(SceneLoaderService), typeof(ISceneLoaderService));
|
containerBuilder.AddSingleton(typeof(SceneLoaderService), typeof(ISceneLoaderService));
|
||||||
|
|
||||||
containerBuilder.OnContainerBuilt += Bootstrap;
|
containerBuilder.OnContainerBuilt += Bootstrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void InitializeCamera(ContainerBuilder containerBuilder, IStaticDataService staticDataService)
|
|
||||||
{
|
|
||||||
// CameraService cameraService = Instantiate(staticDataService.CameraConfig.cameraPrefab);
|
|
||||||
// containerBuilder.AddSingleton(cameraService);
|
|
||||||
// DontDestroyOnLoad(cameraService);
|
|
||||||
|
|
||||||
Camera camera = Instantiate(staticDataService.CameraConfig.cameraPrefab);
|
|
||||||
DontDestroyOnLoad(camera);
|
|
||||||
containerBuilder.AddSingleton(camera);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void InstallInfrastructureUnit(ContainerBuilder containerBuilder, IStaticDataService staticDataService)
|
private void InstallInfrastructureUnit(ContainerBuilder containerBuilder, IStaticDataService staticDataService)
|
||||||
{
|
{
|
||||||
GameObject infrastructureUnit = Instantiate(staticDataService.AppConfig.infrastructureUnitPrefab);
|
GameObject infrastructureUnit = Instantiate(staticDataService.AppConfig.infrastructureUnitPrefab);
|
||||||
DontDestroyOnLoad(infrastructureUnit);
|
DontDestroyOnLoad(infrastructureUnit);
|
||||||
|
AppConfig a;
|
||||||
containerBuilder.AddSingleton(infrastructureUnit);
|
containerBuilder.AddSingleton(infrastructureUnit);
|
||||||
containerBuilder.AddSingleton(infrastructureUnit.GetComponent<ICoroutineRunner>(),
|
containerBuilder.AddSingleton(infrastructureUnit.GetComponent<ICoroutineRunner>(),
|
||||||
typeof(ICoroutineRunner));
|
typeof(ICoroutineRunner));
|
||||||
containerBuilder.AddSingleton(infrastructureUnit.AddComponent<AppStateMachine>());
|
containerBuilder.AddSingleton(infrastructureUnit.AddComponent<AppStateMachine>());
|
||||||
containerBuilder.AddSingleton(infrastructureUnit.AddComponent<CameraStateMachine>());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void InstallStaticData(ContainerBuilder containerBuilder, out IStaticDataService staticDataService)
|
private void InstallStaticData(ContainerBuilder containerBuilder, out IStaticDataService staticDataService)
|
||||||
@@ -59,7 +44,6 @@ namespace Code.App
|
|||||||
|
|
||||||
containerBuilder.AddSingleton(staticDataService, typeof(IStaticDataService));
|
containerBuilder.AddSingleton(staticDataService, typeof(IStaticDataService));
|
||||||
containerBuilder.AddSingleton(staticDataService.InputConfig.inputActionAsset, typeof(InputActionAsset));
|
containerBuilder.AddSingleton(staticDataService.InputConfig.inputActionAsset, typeof(InputActionAsset));
|
||||||
containerBuilder.AddSingleton(staticDataService.CameraConfig, typeof(CameraConfig));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Bootstrap(Container container)
|
private void Bootstrap(Container container)
|
||||||
@@ -68,15 +52,10 @@ namespace Code.App
|
|||||||
appStateMachine.Initialize();
|
appStateMachine.Initialize();
|
||||||
|
|
||||||
AttributeInjector.Inject(appStateMachine.StateMachineContext, container);
|
AttributeInjector.Inject(appStateMachine.StateMachineContext, container);
|
||||||
|
|
||||||
CameraStateMachine cameraStateMachine = container.Resolve<CameraStateMachine>();
|
|
||||||
AttributeInjector.Inject(cameraStateMachine.StateMachineContext, container);
|
|
||||||
|
|
||||||
cameraStateMachine.Initialize();
|
|
||||||
|
|
||||||
// TODO: поменяно для теста
|
|
||||||
appStateMachine
|
appStateMachine
|
||||||
.SwitchState(AppState.MovementDev);
|
.SwitchState(AppState.MainMenu)
|
||||||
|
.AllowStateTransition(AppState.Gameplay);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -8,8 +8,6 @@ namespace Code.App.StateMachine
|
|||||||
Bootstrap = 1,
|
Bootstrap = 1,
|
||||||
MainMenu = 2,
|
MainMenu = 2,
|
||||||
Gameplay = 4,
|
Gameplay = 4,
|
||||||
GameOver = 8,
|
GameOver = 8
|
||||||
// TODO: поменяно для теста
|
|
||||||
MovementDev = 52
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -10,12 +10,9 @@ namespace Code.App.StateMachine
|
|||||||
States.Add(AppState.MainMenu, new MainMenuState(StateMachineContext));
|
States.Add(AppState.MainMenu, new MainMenuState(StateMachineContext));
|
||||||
States.Add(AppState.Gameplay, new GameplayState(StateMachineContext));
|
States.Add(AppState.Gameplay, new GameplayState(StateMachineContext));
|
||||||
States.Add(AppState.GameOver, new GameOverState(StateMachineContext));
|
States.Add(AppState.GameOver, new GameOverState(StateMachineContext));
|
||||||
//TODO: Для теста
|
|
||||||
States.Add(AppState.MovementDev, new MovementDevState(StateMachineContext));
|
|
||||||
|
|
||||||
AllowedStates |= AppState.MainMenu;
|
AllowedStates |= AppState.MainMenu;
|
||||||
AllowedStates |= AppState.Gameplay;
|
AllowedStates |= AppState.Gameplay;
|
||||||
AllowedStates |= AppState.MovementDev;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool CheckTransitionAllowed(AppState nextState) => AllowedStates.HasFlag(nextState);
|
protected override bool CheckTransitionAllowed(AppState nextState) => AllowedStates.HasFlag(nextState);
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
using Code.Gameplay.Camera;
|
|
||||||
using Code.Input;
|
using Code.Input;
|
||||||
using Code.Scenes;
|
using Code.Scenes;
|
||||||
using Reflex.Attributes;
|
using Reflex.Attributes;
|
||||||
@@ -9,7 +8,5 @@ namespace Code.App.StateMachine
|
|||||||
{
|
{
|
||||||
[Inject] public ISceneLoaderService SceneLoaderService;
|
[Inject] public ISceneLoaderService SceneLoaderService;
|
||||||
[Inject] public IInputService InputService;
|
[Inject] public IInputService InputService;
|
||||||
[Inject] public AppStateMachine StateMachine;
|
|
||||||
[Inject] public CameraStateMachine CameraStateMachine;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
using Generators;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace Code.Configs
|
||||||
|
{
|
||||||
|
[SingleConfig]
|
||||||
|
public class App
|
||||||
|
{
|
||||||
|
[ToConfig] public GameObject infrastructureUnitPrefab;
|
||||||
|
}
|
||||||
|
}
|
||||||
File renamed without changes.
@@ -1,10 +0,0 @@
|
|||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace Code.Configs
|
|
||||||
{
|
|
||||||
[CreateAssetMenu(menuName = "Config/AppConfig", fileName = "AppConfig")]
|
|
||||||
public class AppConfig : ScriptableObject
|
|
||||||
{
|
|
||||||
public GameObject infrastructureUnitPrefab;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace Code.Configs
|
|
||||||
{
|
|
||||||
[CreateAssetMenu(fileName = "CameraConfig", menuName = "Config/CameraConfig")]
|
|
||||||
public class CameraConfig : ScriptableObject
|
|
||||||
{
|
|
||||||
public float
|
|
||||||
// Расстояния от персонажа до камеры
|
|
||||||
defaultDistance = 6f, // Стандартное расстояние камеры от цели
|
|
||||||
minDistance = 3f, // Минимальное расстояние при зуме
|
|
||||||
maxDistance = 10f, // Максимальное расстояние при зуме
|
|
||||||
|
|
||||||
// Скорость зума камеры
|
|
||||||
distanceMovementSpeed = 5f, // Множитель скорости изменения дистанции при зуме
|
|
||||||
|
|
||||||
// Скорость поворота камеры
|
|
||||||
rotationSpeed = 0.3f, // Множитель скорости вращения камеры
|
|
||||||
|
|
||||||
// Скорость интерполяции текущее -> целевое вращение
|
|
||||||
rotationSharpness = 100f, // Коэффициент плавности вращения камеры (чем выше - тем резче)
|
|
||||||
|
|
||||||
// Резкость следования камеры за целью
|
|
||||||
followSharpness = 100f, // Коэффициент плавности следования за движущейся целью (чем выше - тем резче)
|
|
||||||
|
|
||||||
// Углы наклона камеры
|
|
||||||
minVerticalAngle = -70f, // Минимальный угол наклона камеры (вниз)
|
|
||||||
maxVerticalAngle = 70f, // Максимальный угол наклона камеры (вверх)
|
|
||||||
defaultVerticalAngle = 10f; // Стандартный угол наклона камеры
|
|
||||||
|
|
||||||
// Позиция следования по умолчанию
|
|
||||||
public Vector3 defaultFollowPosition = Vector3.zero;
|
|
||||||
|
|
||||||
// Префаб камеры
|
|
||||||
public Camera cameraPrefab;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 72fbf590e5fd4747acfdd32eb26bba3a
|
|
||||||
timeCreated: 1761637489
|
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
using Generators;
|
||||||
|
using UnityEngine.InputSystem;
|
||||||
|
|
||||||
|
namespace Code.Configs
|
||||||
|
{
|
||||||
|
[SingleConfig]
|
||||||
|
public class Input
|
||||||
|
{
|
||||||
|
[ToConfig] public InputActionAsset inputActionAsset;
|
||||||
|
}
|
||||||
|
}
|
||||||
File renamed without changes.
@@ -1,11 +0,0 @@
|
|||||||
using UnityEngine;
|
|
||||||
using UnityEngine.InputSystem;
|
|
||||||
|
|
||||||
namespace Code.Configs
|
|
||||||
{
|
|
||||||
[CreateAssetMenu(fileName = "InputConfig", menuName = "Config/InputConfig")]
|
|
||||||
public class InputConfig : ScriptableObject
|
|
||||||
{
|
|
||||||
public InputActionAsset inputActionAsset;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: e4901b413afd4d7da914edf2a1e51f8f
|
|
||||||
timeCreated: 1760627936
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 0fae52abe6b44ad5bdd6e67876fe940a
|
|
||||||
timeCreated: 1761671702
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
namespace Code.Gameplay.Camera
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
* Перечисление режимов работы камеры
|
|
||||||
* MainMenu - статичная камера, смотрит на заданную позицию (то что надо в главном меню)
|
|
||||||
* Static - статичная камера без следования за целью
|
|
||||||
* FirstPerson - камера от первого лица (встроена в модель персонажа)
|
|
||||||
* ThirdPerson - камера от третьего лица (следует за персонажем на расстоянии)
|
|
||||||
* Cinematic - кинематографическая камера для скриптовых сцен
|
|
||||||
*/
|
|
||||||
public enum CameraMode
|
|
||||||
{
|
|
||||||
Bogdan,
|
|
||||||
Static,
|
|
||||||
FirstPerson,
|
|
||||||
ThirdPerson,
|
|
||||||
Cinematic
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 5a49105845a7435b9179e402fa7b8e30
|
|
||||||
timeCreated: 1761570884
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
using Code.Configs;
|
|
||||||
using Code.Gameplay.Camera.CameraStates;
|
|
||||||
using Code.StateMachine;
|
|
||||||
|
|
||||||
namespace Code.Gameplay.Camera
|
|
||||||
{
|
|
||||||
public class CameraStateMachine : AbstractStateMachine<CameraMode, CameraStateMachineContext>
|
|
||||||
{
|
|
||||||
// Текущий режим работы камеры
|
|
||||||
public override void Initialize()
|
|
||||||
{
|
|
||||||
States.Add(CameraMode.Static, new StaticState(StateMachineContext));
|
|
||||||
States.Add(CameraMode.FirstPerson, new FirstPersonState(StateMachineContext));
|
|
||||||
States.Add(CameraMode.ThirdPerson, new ThirdPersonState(StateMachineContext));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
protected override bool CheckTransitionAllowed(CameraMode nextState) => true;
|
|
||||||
|
|
||||||
protected override void ResetAllowedTransitions()
|
|
||||||
{ }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: b220b02510c34ea08257cc951d949fd7
|
|
||||||
timeCreated: 1761671720
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
using Code.Configs;
|
|
||||||
using Code.Input;
|
|
||||||
using Reflex.Attributes;
|
|
||||||
|
|
||||||
namespace Code.Gameplay.Camera
|
|
||||||
{
|
|
||||||
public class CameraStateMachineContext
|
|
||||||
{
|
|
||||||
[Inject] public UnityEngine.Camera Camera;
|
|
||||||
[Inject] public CameraConfig Config;
|
|
||||||
[Inject] public IInputService InputService;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 4f18a74bdb8947bebec56115659e5af3
|
|
||||||
timeCreated: 1761671752
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: d7399e433dff42a185f62d79b546b059
|
|
||||||
timeCreated: 1761671908
|
|
||||||
@@ -1,151 +0,0 @@
|
|||||||
using Code.Configs;
|
|
||||||
using Code.Input;
|
|
||||||
using Code.StateMachine;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace Code.Gameplay.Camera.CameraStates
|
|
||||||
{
|
|
||||||
public abstract class BaseCameraState : BaseState<CameraStateMachineContext>
|
|
||||||
{
|
|
||||||
// DI сервиса ввода
|
|
||||||
private readonly IInputService _inputService;
|
|
||||||
|
|
||||||
// Конфиг камеры
|
|
||||||
private readonly CameraConfig _config;
|
|
||||||
|
|
||||||
// Используемая камера
|
|
||||||
protected UnityEngine.Camera Camera { get; private set; }
|
|
||||||
|
|
||||||
// Трансформ объекта, за которым следует камера
|
|
||||||
protected Transform FollowTransform;
|
|
||||||
|
|
||||||
// Позиция следования: текущая сглаженная позиция и горизонтальное направление камеры
|
|
||||||
protected Vector3 CurrentFollowPosition;
|
|
||||||
|
|
||||||
// Fallback-позиция для режимов без цели
|
|
||||||
private Vector3 _defaultFollowPosition;
|
|
||||||
|
|
||||||
// Целевой вертикальный угол камеры (наклон вверх/вниз)
|
|
||||||
private float _targetVerticalAngle;
|
|
||||||
|
|
||||||
// Текущая и целевая дистанция камеры от цели
|
|
||||||
protected float CurrentDistance, TargetDistance;
|
|
||||||
|
|
||||||
// Исходные значения дистанции для восстановления
|
|
||||||
protected float OriginalDefaultDistance, OriginalMinDistance, OriginalMaxDistance;
|
|
||||||
|
|
||||||
// Горизонтальное направление камеры (проекция forward на плоскость)
|
|
||||||
private Vector3 PlanarDirection { get; set; }
|
|
||||||
|
|
||||||
// Параметры загружаются из CameraConfig
|
|
||||||
protected float
|
|
||||||
DefaultDistance,
|
|
||||||
MinDistance,
|
|
||||||
MaxDistance,
|
|
||||||
DistanceMovementSpeed,
|
|
||||||
RotationSpeed,
|
|
||||||
RotationSharpness,
|
|
||||||
FollowSharpness,
|
|
||||||
MinVerticalAngle,
|
|
||||||
MaxVerticalAngle,
|
|
||||||
DefaultVerticalAngle;
|
|
||||||
|
|
||||||
// Свойства для доступа к важным данным камеры извне
|
|
||||||
public Vector3 GetPlanarDirection() => PlanarDirection; // Горизонтальное направление камеры
|
|
||||||
public Quaternion GetCameraRotation() => Camera.transform.rotation; // Текущее вращение камеры
|
|
||||||
|
|
||||||
// Конструктор базового состояния
|
|
||||||
protected BaseCameraState(CameraStateMachineContext context) : base(context)
|
|
||||||
{
|
|
||||||
_inputService = context.InputService;
|
|
||||||
_config = context.Config;
|
|
||||||
LoadConfig();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Загрузка конфига для камеры
|
|
||||||
private void LoadConfig()
|
|
||||||
{
|
|
||||||
// Загрузка значений из конфигов
|
|
||||||
DefaultDistance = _config.defaultDistance;
|
|
||||||
MinDistance = _config.minDistance;
|
|
||||||
MaxDistance = _config.maxDistance;
|
|
||||||
DistanceMovementSpeed = _config.distanceMovementSpeed;
|
|
||||||
RotationSpeed = _config.rotationSpeed;
|
|
||||||
RotationSharpness = _config.rotationSharpness;
|
|
||||||
FollowSharpness = _config.followSharpness;
|
|
||||||
MinVerticalAngle = _config.minVerticalAngle;
|
|
||||||
MaxVerticalAngle = _config.maxVerticalAngle;
|
|
||||||
DefaultVerticalAngle = _config.defaultVerticalAngle;
|
|
||||||
_defaultFollowPosition = _config.defaultFollowPosition;
|
|
||||||
|
|
||||||
// Обеспечиваем корректные значения дистанции и угла
|
|
||||||
DefaultDistance = Mathf.Clamp(DefaultDistance, MinDistance, MaxDistance);
|
|
||||||
DefaultVerticalAngle = Mathf.Clamp(DefaultVerticalAngle, MinVerticalAngle, MaxVerticalAngle);
|
|
||||||
|
|
||||||
// Сохраняем оригинальные значения для восстановления
|
|
||||||
OriginalDefaultDistance = DefaultDistance;
|
|
||||||
OriginalMinDistance = MinDistance;
|
|
||||||
OriginalMaxDistance = MaxDistance;
|
|
||||||
|
|
||||||
CurrentDistance = DefaultDistance;
|
|
||||||
TargetDistance = CurrentDistance;
|
|
||||||
_targetVerticalAngle = DefaultVerticalAngle;
|
|
||||||
PlanarDirection = Vector3.forward; // Начальное направление - вперед по оси Z
|
|
||||||
CurrentFollowPosition = _defaultFollowPosition;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Переход в состояние
|
|
||||||
public override void EnterState()
|
|
||||||
{
|
|
||||||
Camera = Context.Camera;
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void LateTick()
|
|
||||||
{
|
|
||||||
// Обновляем камеру только если есть цель для следования
|
|
||||||
if (FollowTransform)
|
|
||||||
{
|
|
||||||
UpdateWithInput(Time.deltaTime, _inputService.ZoomInput, _inputService.LookInput);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Абстрактные методы для специфики режима
|
|
||||||
protected abstract void HandlePosition(float deltaTime, float zoomInput, Quaternion targetRotation);
|
|
||||||
|
|
||||||
// Обработка вращения камеры на основе пользовательского ввода
|
|
||||||
protected void HandleRotationInput(float deltaTime, Vector3 rotationInput, out Quaternion targetRotation)
|
|
||||||
{
|
|
||||||
// Вращение вокруг вертикальной оси (горизонтальный поворот)
|
|
||||||
var rotationFromInput = Quaternion.Euler(FollowTransform.up * (rotationInput.x * RotationSpeed));
|
|
||||||
PlanarDirection = rotationFromInput * PlanarDirection;
|
|
||||||
var planarRotation = Quaternion.LookRotation(PlanarDirection, FollowTransform.up);
|
|
||||||
|
|
||||||
// Вращение вокруг горизонтальной оси (вертикальный наклон)
|
|
||||||
_targetVerticalAngle -= rotationInput.y * RotationSpeed;
|
|
||||||
_targetVerticalAngle = Mathf.Clamp(_targetVerticalAngle, MinVerticalAngle, MaxVerticalAngle);
|
|
||||||
var verticalRotation = Quaternion.Euler(_targetVerticalAngle, 0, 0);
|
|
||||||
|
|
||||||
// Интерполяция к целевому вращению для плавности
|
|
||||||
targetRotation = Quaternion.Slerp(Camera.transform.rotation, planarRotation * verticalRotation, deltaTime * RotationSharpness);
|
|
||||||
|
|
||||||
// Применение финального вращения
|
|
||||||
Camera.transform.rotation = targetRotation;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Основной метод обновления камеры, вызываемый извне каждый кадр
|
|
||||||
private void UpdateWithInput(float deltaTime, float zoomInput, Vector3 rotationInput)
|
|
||||||
{
|
|
||||||
// Обработка ввода и позиционирования
|
|
||||||
HandleRotationInput(deltaTime, rotationInput, out var targetRotation);
|
|
||||||
HandlePosition(deltaTime, zoomInput, targetRotation);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Установка цели для следования камеры
|
|
||||||
public void SetFollowTransform(Transform t)
|
|
||||||
{
|
|
||||||
FollowTransform = t;
|
|
||||||
CurrentFollowPosition = t ? t.position : _defaultFollowPosition;
|
|
||||||
if (t) PlanarDirection = t.forward; // Начальное направление совпадает с направлением цели
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 92ff312b40a647b392af24877e699bd5
|
|
||||||
timeCreated: 1761685916
|
|
||||||
@@ -1,43 +0,0 @@
|
|||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace Code.Gameplay.Camera.CameraStates
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
* Состояние камеры от первого лица
|
|
||||||
* Камера размещается непосредственно на позиции цели (например, на уровне глаз персонажа)
|
|
||||||
* Дистанция до цели принудительно устанавливается в 0
|
|
||||||
* Вращение управляется мышью, позиция следует за целью без отступа
|
|
||||||
*/
|
|
||||||
public class FirstPersonState : BaseCameraState, ICameraState
|
|
||||||
{
|
|
||||||
public FirstPersonState(CameraStateMachineContext context) : base(context) { }
|
|
||||||
|
|
||||||
public override void EnterState()
|
|
||||||
{
|
|
||||||
// В FirstPerson режиме дистанция всегда равна 0
|
|
||||||
MinDistance = 0f;
|
|
||||||
MaxDistance = 0f;
|
|
||||||
DefaultDistance = 0f;
|
|
||||||
TargetDistance = 0f;
|
|
||||||
CurrentDistance = 0f;
|
|
||||||
|
|
||||||
base.EnterState();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void HandlePosition(float deltaTime, float zoomInput, Quaternion targetRotation)
|
|
||||||
{
|
|
||||||
// Плавное следование за целью с использованием экспоненциального сглаживания
|
|
||||||
CurrentFollowPosition = Vector3.Lerp(CurrentFollowPosition, FollowTransform.position, 1f - Mathf.Exp(-FollowSharpness * deltaTime));
|
|
||||||
|
|
||||||
// В FirstPerson режиме камера находится прямо на позиции цели
|
|
||||||
var targetPosition = CurrentFollowPosition;
|
|
||||||
|
|
||||||
// Установка финальной позиции камеры
|
|
||||||
Camera.transform.position = targetPosition;
|
|
||||||
}
|
|
||||||
public CameraMode GetCameraMode()
|
|
||||||
{
|
|
||||||
return CameraMode.FirstPerson;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 8bd4b9c56b1e435d8699160bc950994c
|
|
||||||
timeCreated: 1761672032
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
namespace Code.Gameplay.Camera.CameraStates
|
|
||||||
{
|
|
||||||
public interface ICameraState
|
|
||||||
{
|
|
||||||
CameraMode GetCameraMode();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 4f25670e547242e8a91e19894cf6889c
|
|
||||||
timeCreated: 1761687204
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace Code.Gameplay.Camera.CameraStates
|
|
||||||
{
|
|
||||||
public class StaticState : BaseCameraState, ICameraState
|
|
||||||
{
|
|
||||||
private Transform _target;
|
|
||||||
private Transform _position;
|
|
||||||
public StaticState(CameraStateMachineContext context) : base(context) { }
|
|
||||||
|
|
||||||
public override void EnterState()
|
|
||||||
{
|
|
||||||
Debug.Log("Static State Enter");
|
|
||||||
base.EnterState();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void HandlePosition(float deltaTime, float zoomInput, Quaternion targetRotation)
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public CameraMode GetCameraMode()
|
|
||||||
{
|
|
||||||
return CameraMode.Static;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: ddbcc6a073b744a08ce31c0607c1e9e9
|
|
||||||
timeCreated: 1761671944
|
|
||||||
@@ -1,58 +0,0 @@
|
|||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace Code.Gameplay.Camera.CameraStates
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
* Состояние камеры от третьего лица
|
|
||||||
* Камера следует за персонажем на заданном расстоянии
|
|
||||||
* Поддерживает зум, плавное следование и вращение с учётом угла наклона
|
|
||||||
* Дистанция и углы настраиваются через конфигурацию
|
|
||||||
*/
|
|
||||||
public class ThirdPersonState : BaseCameraState, ICameraState
|
|
||||||
{
|
|
||||||
public ThirdPersonState(CameraStateMachineContext context) : base(context) { }
|
|
||||||
|
|
||||||
public override void EnterState()
|
|
||||||
{
|
|
||||||
// Восстанавливаем исходные значения дистанции
|
|
||||||
MinDistance = OriginalMinDistance;
|
|
||||||
MaxDistance = OriginalMaxDistance;
|
|
||||||
DefaultDistance = OriginalDefaultDistance;
|
|
||||||
TargetDistance = DefaultDistance;
|
|
||||||
|
|
||||||
base.EnterState();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void HandlePosition(float deltaTime, float zoomInput, Quaternion targetRotation)
|
|
||||||
{
|
|
||||||
// Обновление целевой дистанции на основе ввода зума
|
|
||||||
TargetDistance += zoomInput * DistanceMovementSpeed;
|
|
||||||
TargetDistance = Mathf.Clamp(TargetDistance, MinDistance, MaxDistance);
|
|
||||||
|
|
||||||
// Плавное следование за целью с использованием экспоненциального сглаживания
|
|
||||||
CurrentFollowPosition = Vector3.Lerp(
|
|
||||||
CurrentFollowPosition,
|
|
||||||
FollowTransform.position,
|
|
||||||
1f - Mathf.Exp(-FollowSharpness * deltaTime)
|
|
||||||
);
|
|
||||||
|
|
||||||
// В ThirdPerson режиме камера отодвинута на расстояние от цели
|
|
||||||
var targetPosition = CurrentFollowPosition - targetRotation * Vector3.forward * CurrentDistance;
|
|
||||||
|
|
||||||
// Плавное изменение текущей дистанции к целевой
|
|
||||||
CurrentDistance = Mathf.Lerp(
|
|
||||||
CurrentDistance,
|
|
||||||
TargetDistance,
|
|
||||||
1f - Mathf.Exp(-DistanceMovementSpeed * deltaTime)
|
|
||||||
);
|
|
||||||
|
|
||||||
// Установка финальной позиции камеры
|
|
||||||
Camera.transform.position = targetPosition;
|
|
||||||
}
|
|
||||||
|
|
||||||
public CameraMode GetCameraMode()
|
|
||||||
{
|
|
||||||
return CameraMode.ThirdPerson;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: ec6778ceb9854ff8af7cba4f6285c370
|
|
||||||
timeCreated: 1761672071
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: f8a8f6d0b8744b4c981d87722e6bb7e8
|
|
||||||
timeCreated: 1760627963
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: fb497e2e267044a7a35f80b47c88c2c9
|
|
||||||
timeCreated: 1761570825
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: d3be946108b44b33b99d2e3e4a75d47f
|
|
||||||
timeCreated: 1761571338
|
|
||||||
@@ -1,123 +0,0 @@
|
|||||||
using Code.Gameplay.Camera;
|
|
||||||
using KinematicCharacterController;
|
|
||||||
using UnityEngine;
|
|
||||||
using Code.Gameplay.Character.Core;
|
|
||||||
|
|
||||||
namespace Code.Gameplay.Character.Controller.Abilities
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
* Механика слайда для персонажа
|
|
||||||
* Отвечает за управление состоянием, таймерами и скоростью слайда
|
|
||||||
*/
|
|
||||||
public class SlideMechanic
|
|
||||||
{
|
|
||||||
// Скорость слайда
|
|
||||||
private readonly float _slideSpeed;
|
|
||||||
// Длительность слайда в секундах
|
|
||||||
private readonly float _slideDuration;
|
|
||||||
// Время перезарядки слайда
|
|
||||||
private readonly float _slideCooldown;
|
|
||||||
|
|
||||||
// Таймер слайда
|
|
||||||
private float _slideTimer;
|
|
||||||
// Таймер перезарядки слайда
|
|
||||||
private float _slideCooldownTimer;
|
|
||||||
// Направление слайда
|
|
||||||
private Vector3 _slideDirection;
|
|
||||||
// Флаг запроса слайда
|
|
||||||
private bool _slideRequested;
|
|
||||||
|
|
||||||
// Свойство-флаг, активен ли слайд
|
|
||||||
public bool IsSliding { get; private set; }
|
|
||||||
|
|
||||||
// Конструктор механики слайда
|
|
||||||
public SlideMechanic(float slideSpeed, float slideDuration, float slideCooldown)
|
|
||||||
{
|
|
||||||
_slideSpeed = slideSpeed;
|
|
||||||
_slideDuration = slideDuration;
|
|
||||||
_slideCooldown = slideCooldown;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Обновляем таймер перезарядки слайда
|
|
||||||
public void TickCooldown(float deltaTime)
|
|
||||||
{
|
|
||||||
if (_slideCooldownTimer > 0f)
|
|
||||||
{
|
|
||||||
_slideCooldownTimer -= deltaTime;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Обработка слайда
|
|
||||||
public void RequestSlide(bool slidePressed)
|
|
||||||
{
|
|
||||||
if (slidePressed && !_slideRequested && _slideCooldownTimer <= 0f)
|
|
||||||
{
|
|
||||||
_slideRequested = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Начало слайда
|
|
||||||
public void TryStartSlide(KinematicCharacterMotor motor,
|
|
||||||
CameraMode currentCameraMode,
|
|
||||||
Quaternion firstPersonCameraRotation,
|
|
||||||
Vector3 lookInputVector)
|
|
||||||
{
|
|
||||||
// Проверяем условия для старта слайда
|
|
||||||
if (!_slideRequested || !motor.GroundingStatus.IsStableOnGround || _slideCooldownTimer > 0f)
|
|
||||||
{
|
|
||||||
_slideRequested = false;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
IsSliding = true;
|
|
||||||
_slideTimer = _slideDuration;
|
|
||||||
|
|
||||||
// НАПРАВЛЕНИЕ СЛАЙДА - ВСЕГДА ВПЕРЕД ПО КАМЕРЕ
|
|
||||||
// Используем направление камеры, но проецируем на горизонтальную плоскость
|
|
||||||
var slideDir = currentCameraMode == CameraMode.FirstPerson ?
|
|
||||||
firstPersonCameraRotation * Vector3.forward :
|
|
||||||
lookInputVector;
|
|
||||||
|
|
||||||
// Проецируем на горизонтальную плоскость и нормализуем
|
|
||||||
_slideDirection = Vector3.ProjectOnPlane(slideDir, motor.CharacterUp).normalized;
|
|
||||||
|
|
||||||
// Если направление нулевое (персонаж стоит на месте), используем направление вперед
|
|
||||||
if (_slideDirection.sqrMagnitude < 0.01f)
|
|
||||||
{
|
|
||||||
_slideDirection = motor.CharacterForward;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Устанавливаем перезарядку
|
|
||||||
_slideCooldownTimer = _slideCooldown;
|
|
||||||
_slideRequested = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Обработка слайда
|
|
||||||
public void HandleSlide(ref Vector3 currentVelocity, float deltaTime, KinematicCharacterMotor motor)
|
|
||||||
{
|
|
||||||
// Уменьшаем таймер слайда
|
|
||||||
_slideTimer -= deltaTime;
|
|
||||||
|
|
||||||
// Если время слайда вышло, персонаж в воздухе - заканчиваем слайд
|
|
||||||
if (_slideTimer <= 0f || !motor.GroundingStatus.IsStableOnGround)
|
|
||||||
{
|
|
||||||
EndSlide();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Устанавливаем скорость слайда вперед
|
|
||||||
// Используем прямую установку скорости вместо сложных вычислений
|
|
||||||
currentVelocity = _slideDirection * _slideSpeed;
|
|
||||||
|
|
||||||
// Добавляем небольшую вертикальную компоненту для лучшего скольжения по неровностям
|
|
||||||
currentVelocity += motor.CharacterUp * 2f;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Завершение слайда
|
|
||||||
public void EndSlide()
|
|
||||||
{
|
|
||||||
IsSliding = false;
|
|
||||||
_slideTimer = 0f;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-3
@@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 5904fa03346e4751967d57500ab3d1cf
|
|
||||||
timeCreated: 1761571347
|
|
||||||
-51
@@ -1,51 +0,0 @@
|
|||||||
using KinematicCharacterController;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace Code.Gameplay.Character.Controller.Abilities
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
* Механика залазания на стены
|
|
||||||
* Обрабатывает столкновения и применяет вертикальный импульс при ударе о стену с достаточной скоростью
|
|
||||||
*/
|
|
||||||
public class WallClimbMechanic
|
|
||||||
{
|
|
||||||
// Коэффициент преобразования горизонтальной скорости в вертикальную при залазании на стену
|
|
||||||
private readonly float _wallClimbSpeedFactor;
|
|
||||||
// Минимальная горизонтальная скорость для начала залазания на стену
|
|
||||||
private readonly float _minWallClimbSpeed;
|
|
||||||
|
|
||||||
// Конструктор механики залазания на стену
|
|
||||||
public WallClimbMechanic(float wallClimbSpeedFactor, float minWallClimbSpeed)
|
|
||||||
{
|
|
||||||
_wallClimbSpeedFactor = wallClimbSpeedFactor;
|
|
||||||
_minWallClimbSpeed = minWallClimbSpeed;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Обработка столкновения при движении (вызывается при ударе о препятствие)
|
|
||||||
public void OnMovementHit(KinematicCharacterMotor motor, Vector3 hitNormal)
|
|
||||||
{
|
|
||||||
// Проверяем, что это вертикальная или почти вертикальная поверхность (стена)
|
|
||||||
var dotWithUp = Vector3.Dot(hitNormal, motor.CharacterUp);
|
|
||||||
if (Mathf.Abs(dotWithUp) > 0.1f) return; // Не стена — это пол или потолок
|
|
||||||
|
|
||||||
// Получаем текущую скорость персонажа
|
|
||||||
var currentVelocity = motor.Velocity;
|
|
||||||
|
|
||||||
// Проекция скорости на направление к стене (отрицательная, если летим в стену)
|
|
||||||
var velocityIntoWall = Vector3.Dot(currentVelocity, -hitNormal);
|
|
||||||
|
|
||||||
// Если движемся в стену с достаточной скоростью
|
|
||||||
if (velocityIntoWall > _minWallClimbSpeed)
|
|
||||||
{
|
|
||||||
// Преобразуем часть горизонтальной скорости в вертикальную
|
|
||||||
var verticalBoost = velocityIntoWall * _wallClimbSpeedFactor;
|
|
||||||
|
|
||||||
// Добавляем вертикальный импульс через BaseVelocity
|
|
||||||
motor.BaseVelocity += motor.CharacterUp * verticalBoost;
|
|
||||||
|
|
||||||
// Предотвращаем заземление и повторное применение в этом кадре
|
|
||||||
motor.ForceUnground();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-3
@@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: cfce19738ff34be286c953e33e515c46
|
|
||||||
timeCreated: 1761571364
|
|
||||||
-221
@@ -1,221 +0,0 @@
|
|||||||
using Code.Gameplay.Camera;
|
|
||||||
using Code.Gameplay.Character.Controller.Abilities;
|
|
||||||
using Code.Gameplay.Character.Controller.Input;
|
|
||||||
using Code.Gameplay.Character.Controller.Movement;
|
|
||||||
using Code.Gameplay.Character.Core;
|
|
||||||
using KinematicCharacterController;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace Code.Gameplay.Character.Controller
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
* Скрипт, отвечающий за передвижение персонажа
|
|
||||||
* Реализует физическое движение персонажа с использованием Kinematic Character Controller
|
|
||||||
* Обрабатывает ввод пользователя, применяет движение и вращение с учетом поверхности
|
|
||||||
*
|
|
||||||
* Источник: Tvtig, https://www.youtube.com/watch?v=9ibpY64wBYM
|
|
||||||
*/
|
|
||||||
public class CustomCharacterController : MonoBehaviour, ICharacterController
|
|
||||||
{
|
|
||||||
[SerializeField]
|
|
||||||
private KinematicCharacterMotor motor; // Движок физического перемещения персонажа
|
|
||||||
|
|
||||||
[SerializeField]
|
|
||||||
private float
|
|
||||||
maxStableMoveSpeed = 8f, // Максимальная скорость движения по устойчивой поверхности
|
|
||||||
sprintMoveSpeed = 12f, // Максимальная скорость спринта
|
|
||||||
slideSpeed = 20f, // Скорость слайда
|
|
||||||
slideDuration = 0.8f, // Длительность слайда в секундах
|
|
||||||
slideCooldown = 1.5f, // Время перезарядки слайда
|
|
||||||
stableMovementSharpness = 15f, // Резкость изменения скорости движения (чем выше - тем резче)
|
|
||||||
orientationSharpness = 10f, // Резкость изменения вращения персонажа (чем выше - тем резче)
|
|
||||||
jumpSpeed = 10f, // Скорость прыжка
|
|
||||||
wallClimbSpeedFactor = 0.8f, // Коэффициент преобразования горизонтальной скорости в вертикальную при залазании на стену
|
|
||||||
minWallClimbSpeed = 9f; // Минимальная горизонтальная скорость для начала залазания на стену
|
|
||||||
|
|
||||||
[SerializeField]
|
|
||||||
private Vector3 gravity = new(0, -30f, 0); // Вектор, отвечающий за применение гравитации
|
|
||||||
|
|
||||||
// Подсистемы
|
|
||||||
private readonly CharacterInputHandler _inputHandler;
|
|
||||||
private readonly SlideMechanic _slideMechanic;
|
|
||||||
private readonly WallClimbMechanic _wallClimbMechanic;
|
|
||||||
private readonly GroundMovementSystem _groundMovement;
|
|
||||||
private readonly AirMovementSystem _airMovement;
|
|
||||||
|
|
||||||
// Конструктор без параметров, инициализирующий контроллер
|
|
||||||
public CustomCharacterController()
|
|
||||||
{
|
|
||||||
_inputHandler = new CharacterInputHandler();
|
|
||||||
_slideMechanic = new SlideMechanic(slideSpeed, slideDuration, slideCooldown);
|
|
||||||
_wallClimbMechanic = new WallClimbMechanic(wallClimbSpeedFactor, minWallClimbSpeed);
|
|
||||||
_groundMovement = new GroundMovementSystem(maxStableMoveSpeed, sprintMoveSpeed, stableMovementSharpness, jumpSpeed);
|
|
||||||
_airMovement = new AirMovementSystem(gravity);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Текущий режим камеры для адаптации поведения
|
|
||||||
private CameraMode _currentCameraMode = CameraMode.FirstPerson;
|
|
||||||
|
|
||||||
// Инициализация контроллера
|
|
||||||
private void Start()
|
|
||||||
{
|
|
||||||
motor.CharacterController = this; // Регистрация этого контроллера в движке
|
|
||||||
_inputHandler.FirstPersonCameraRotation = motor.Transform.rotation; // Начальное вращение совпадает с персонажем
|
|
||||||
}
|
|
||||||
|
|
||||||
// Обработка и преобразование входных данных от персонажа
|
|
||||||
public void SetInputs(ref CharacterInputs inputs)
|
|
||||||
{
|
|
||||||
// Обновляем таймер перезарядки слайда
|
|
||||||
_slideMechanic.TickCooldown(Time.deltaTime);
|
|
||||||
|
|
||||||
// Если активен слайд - игнорируем весь остальной ввод
|
|
||||||
if (_slideMechanic.IsSliding)
|
|
||||||
{
|
|
||||||
// Во время слайда не обрабатываем движение, прыжки и спринт
|
|
||||||
_inputHandler.MoveInputVector = Vector3.zero;
|
|
||||||
_inputHandler.LookInputVector = Vector3.one;
|
|
||||||
_inputHandler.IsSprinting = false;
|
|
||||||
_groundMovement.RequestJump(inputs.JumpPressed);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Сохраняем текущий режим камеры
|
|
||||||
_currentCameraMode = inputs.CameraMode;
|
|
||||||
|
|
||||||
// Обработка слайда
|
|
||||||
_slideMechanic.RequestSlide(inputs.SlidePressed);
|
|
||||||
|
|
||||||
// Обработка остального ввода
|
|
||||||
_inputHandler.ProcessInputs(ref inputs, motor);
|
|
||||||
|
|
||||||
// Передаём запрос прыжка напрямую в систему движения по земле
|
|
||||||
_groundMovement.RequestJump(inputs.JumpPressed);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Обновление вращения персонажа на основе входных данных
|
|
||||||
public void UpdateRotation(ref Quaternion currentRotation, float deltaTime)
|
|
||||||
{
|
|
||||||
// ВО ВРЕМЯ СЛАЙДА НЕ ОБНОВЛЯЕМ ВРАЩЕНИЕ - ПЕРСОНАЖ СМОТРИТ ПРЯМО
|
|
||||||
if (_slideMechanic.IsSliding) return;
|
|
||||||
|
|
||||||
switch (_currentCameraMode)
|
|
||||||
{
|
|
||||||
// В FirstPerson режиме применяем вращение камеры напрямую к персонажу (только горизонталь)
|
|
||||||
case CameraMode.FirstPerson when _inputHandler.ShouldApplyCameraRotation:
|
|
||||||
// Немедленно применяем горизонтальное вращение камеры к персонажу
|
|
||||||
currentRotation = _inputHandler.FirstPersonCameraRotation;
|
|
||||||
break;
|
|
||||||
// В ThirdPerson режиме плавно поворачиваем персонаж в направлении движения
|
|
||||||
case CameraMode.ThirdPerson:
|
|
||||||
{
|
|
||||||
// Вращение применяется только если есть направление движения и разрешена резкость вращения
|
|
||||||
if (_inputHandler.LookInputVector.sqrMagnitude > 0 && orientationSharpness > 0)
|
|
||||||
{
|
|
||||||
// Плавная интерполяция текущего направления к целевому с экспоненциальным сглаживанием
|
|
||||||
var smoothedLookInputDirection = Vector3.Slerp(
|
|
||||||
motor.CharacterForward,
|
|
||||||
_inputHandler.LookInputVector,
|
|
||||||
1f - Mathf.Exp(-orientationSharpness * deltaTime)
|
|
||||||
).normalized;
|
|
||||||
|
|
||||||
// Установка нового вращения смотря в сглаженном направлении
|
|
||||||
currentRotation = Quaternion.LookRotation(smoothedLookInputDirection, motor.CharacterUp);
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
// Заготовка на будущее (если понадобится)
|
|
||||||
case CameraMode.Static:
|
|
||||||
case CameraMode.Cinematic:
|
|
||||||
case CameraMode.Bogdan: // Скорее всего юзлес, но пускай будет
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Обновление скорости движения персонажа
|
|
||||||
public void UpdateVelocity(ref Vector3 currentVelocity, float deltaTime)
|
|
||||||
{
|
|
||||||
// Если во время слайда запрошен прыжок — прерываем слайд
|
|
||||||
if (_slideMechanic.IsSliding && _groundMovement.JumpRequested)
|
|
||||||
{
|
|
||||||
_slideMechanic.EndSlide();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Проверяем запрос слайда и запускаем его если можно
|
|
||||||
if (!_slideMechanic.IsSliding)
|
|
||||||
{
|
|
||||||
_slideMechanic.TryStartSlide(motor, _currentCameraMode, _inputHandler.FirstPersonCameraRotation, _inputHandler.LookInputVector);
|
|
||||||
}
|
|
||||||
// Если активен слайд - обрабатываем отдельно
|
|
||||||
else
|
|
||||||
{
|
|
||||||
_slideMechanic.HandleSlide(ref currentVelocity, deltaTime, motor);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Если персонаж находится на земле
|
|
||||||
if (motor.GroundingStatus.IsStableOnGround)
|
|
||||||
{
|
|
||||||
_groundMovement.UpdateVelocity(ref currentVelocity, _inputHandler, motor, deltaTime);
|
|
||||||
}
|
|
||||||
// Если персонаж не находится на земле
|
|
||||||
else
|
|
||||||
{
|
|
||||||
_airMovement.UpdateVelocity(ref currentVelocity, deltaTime);
|
|
||||||
// Отменяем прыжок (фикс проблемы с двойным прыжком после приземления)
|
|
||||||
_groundMovement.CancelJumpRequest();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Метод вызывается перед обновлением персонажа (можно использовать для подготовки)
|
|
||||||
public void BeforeCharacterUpdate(float deltaTime)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
// Метод вызывается после обработки столкновения с землей
|
|
||||||
public void PostGroundingUpdate(float deltaTime)
|
|
||||||
{
|
|
||||||
// Если во время слайда персонаж оторвался от земли - заканчиваем слайд
|
|
||||||
if (_slideMechanic.IsSliding && !motor.GroundingStatus.IsStableOnGround)
|
|
||||||
{
|
|
||||||
_slideMechanic.EndSlide();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Метод вызывается после обновления персонажа (можно использовать для пост-обработки)
|
|
||||||
public void AfterCharacterUpdate(float deltaTime)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
// Проверка валидности коллайдера для обработки столкновений
|
|
||||||
public bool IsColliderValidForCollisions(Collider coll)
|
|
||||||
{
|
|
||||||
return true; // Все коллайдеры считаются валидными для столкновений
|
|
||||||
}
|
|
||||||
|
|
||||||
// Обработка столкновения с землей (вызывается при приземлении)
|
|
||||||
public void OnGroundHit(Collider hitCollider, Vector3 hitNormal, Vector3 hitPoint, ref HitStabilityReport hitStabilityReport)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
// Обработка столкновения при движении (вызывается при ударе о препятствие)
|
|
||||||
public void OnMovementHit(Collider hitCollider, Vector3 hitNormal, Vector3 hitPoint,
|
|
||||||
ref HitStabilityReport hitStabilityReport)
|
|
||||||
{
|
|
||||||
_wallClimbMechanic.OnMovementHit(motor, hitNormal);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Обработка отчета о стабильности столкновения
|
|
||||||
public void ProcessHitStabilityReport(Collider hitCollider, Vector3 hitNormal, Vector3 hitPoint, Vector3 atCharacterPosition,
|
|
||||||
Quaternion atCharacterRotation, ref HitStabilityReport hitStabilityReport)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
// Обработка дискретных столкновений (для триггеров и специальных коллайдеров)
|
|
||||||
public void OnDiscreteCollisionDetected(Collider hitCollider)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-3
@@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: a6f74123648343c498c883d02909b499
|
|
||||||
timeCreated: 1760641740
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: e50ac1a55a4f4706b6385746eb9c6d1f
|
|
||||||
timeCreated: 1761571269
|
|
||||||
-116
@@ -1,116 +0,0 @@
|
|||||||
using Code.Gameplay.Camera;
|
|
||||||
using UnityEngine;
|
|
||||||
using Code.Gameplay.Character.Core;
|
|
||||||
using KinematicCharacterController;
|
|
||||||
|
|
||||||
namespace Code.Gameplay.Character.Controller.Input
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
* Обработчик входных данных для персонажа
|
|
||||||
* Преобразует сырые данные ввода в векторы движения и направления взгляда
|
|
||||||
*/
|
|
||||||
public class CharacterInputHandler
|
|
||||||
{
|
|
||||||
// Векторы движения и направления взгляда
|
|
||||||
public Vector3 MoveInputVector { get; set; }
|
|
||||||
public Vector3 LookInputVector { get; set; }
|
|
||||||
|
|
||||||
// Флаг-свойство указывающий, что активен режим спринта
|
|
||||||
public bool IsSprinting { get; set; }
|
|
||||||
|
|
||||||
// Вращение камеры в FirstPerson режиме для синхронизации (только горизонтальная компонента)
|
|
||||||
public Quaternion FirstPersonCameraRotation { get; set; }
|
|
||||||
|
|
||||||
// Флаг-свойство указывающий, что нужно применить вращение камеры к персонажу
|
|
||||||
public bool ShouldApplyCameraRotation { get; private set; }
|
|
||||||
|
|
||||||
// Обработка и преобразование входных данных от персонажа
|
|
||||||
public void ProcessInputs(ref CharacterInputs inputs, KinematicCharacterMotor motor)
|
|
||||||
{
|
|
||||||
// Сохраняем текущий режим камеры
|
|
||||||
var currentCameraMode = inputs.CameraMode;
|
|
||||||
|
|
||||||
// Обработка спринта
|
|
||||||
IsSprinting = inputs is { SprintPressed: true, MoveAxisForward: > 0.1f }; // Спринт только при движении вперёд
|
|
||||||
|
|
||||||
// Нормализация вектора движения и ограничение его величины до 1
|
|
||||||
var moveInputVector =
|
|
||||||
Vector3.ClampMagnitude(new Vector3(inputs.MoveAxisRight, 0, inputs.MoveAxisForward), 1f);
|
|
||||||
|
|
||||||
// Раздельная обработка в зависимости от режима камеры
|
|
||||||
if (currentCameraMode == CameraMode.FirstPerson)
|
|
||||||
{
|
|
||||||
HandleFirstPersonInputs(ref inputs, moveInputVector, motor);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
HandleThirdPersonInputs(ref inputs, moveInputVector, motor);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Обработка ввода для FirstPerson режима
|
|
||||||
private void HandleFirstPersonInputs(ref CharacterInputs inputs, Vector3 moveInputVector, KinematicCharacterMotor motor)
|
|
||||||
{
|
|
||||||
// Сохраняем вращение камеры для применения в UpdateRotation (только горизонтальная компонента)
|
|
||||||
FirstPersonCameraRotation = ExtractHorizontalRotation(inputs.CameraRotation, motor);
|
|
||||||
ShouldApplyCameraRotation = true;
|
|
||||||
|
|
||||||
// В FirstPerson режиме движение всегда относительно направления камеры
|
|
||||||
// Получаем направление камеры в горизонтальной плоскости
|
|
||||||
var cameraPlanarDirection = inputs.CameraPlanarDirection;
|
|
||||||
|
|
||||||
// Создание вращения на основе направления камеры
|
|
||||||
var cameraPlanarRotation = Quaternion.LookRotation(cameraPlanarDirection, motor.CharacterUp);
|
|
||||||
|
|
||||||
// Преобразование локального ввода в мировые координаты относительно камеры
|
|
||||||
MoveInputVector = cameraPlanarRotation * moveInputVector;
|
|
||||||
|
|
||||||
// В FirstPerson режиме направление взгляда всегда совпадает с направлением камеры (горизонтально)
|
|
||||||
LookInputVector = cameraPlanarDirection;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Обработка ввода для ThirdPerson режима
|
|
||||||
private void HandleThirdPersonInputs(ref CharacterInputs inputs, Vector3 moveInputVector, KinematicCharacterMotor motor)
|
|
||||||
{
|
|
||||||
// Сбрасываем флаг применения вращения камеры
|
|
||||||
ShouldApplyCameraRotation = false;
|
|
||||||
|
|
||||||
// Получение направления камеры в горизонтальной плоскости (игнорируя наклон)
|
|
||||||
var cameraPlanarDirection = inputs.CameraPlanarDirection;
|
|
||||||
|
|
||||||
// Резервный расчет направления, если основное направление параллельно вертикали
|
|
||||||
if (cameraPlanarDirection.sqrMagnitude == 0f)
|
|
||||||
{
|
|
||||||
cameraPlanarDirection = Vector3.ProjectOnPlane(inputs.CameraRotation * Vector3.up, motor.CharacterUp);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Создание вращения на основе направления камеры
|
|
||||||
var cameraPlanarRotation = Quaternion.LookRotation(cameraPlanarDirection, motor.CharacterUp);
|
|
||||||
|
|
||||||
// Преобразование локального ввода в мировые координаты относительно камеры
|
|
||||||
MoveInputVector = cameraPlanarRotation * moveInputVector;
|
|
||||||
|
|
||||||
// Направление взгляда совпадает с направлением движения (нормализованное)
|
|
||||||
LookInputVector = MoveInputVector.normalized;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Извлечение только горизонтальной компоненты вращения (игнорируя наклон камеры)
|
|
||||||
private static Quaternion ExtractHorizontalRotation(Quaternion cameraRotation, KinematicCharacterMotor motor)
|
|
||||||
{
|
|
||||||
// Получаем вектор направления камеры
|
|
||||||
var cameraForward = cameraRotation * Vector3.forward;
|
|
||||||
|
|
||||||
// Проецируем на горизонтальную плоскость
|
|
||||||
var horizontalForward = Vector3.ProjectOnPlane(cameraForward, motor.CharacterUp).normalized;
|
|
||||||
|
|
||||||
// Если проекция вырождена, используем текущее направление персонажа
|
|
||||||
if (horizontalForward.sqrMagnitude < 0.01f)
|
|
||||||
{
|
|
||||||
horizontalForward = motor.CharacterForward;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Создаем вращение только по горизонтали
|
|
||||||
return Quaternion.LookRotation(horizontalForward, motor.CharacterUp);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-3
@@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 513b50847de24c619c380c15e084e932
|
|
||||||
timeCreated: 1761571281
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: b3dfd8f0dbeb4e8690e11049cb7e2f55
|
|
||||||
timeCreated: 1761571298
|
|
||||||
-26
@@ -1,26 +0,0 @@
|
|||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace Code.Gameplay.Character.Controller.Movement
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
* Система движения персонажа в воздухе
|
|
||||||
*/
|
|
||||||
public class AirMovementSystem
|
|
||||||
{
|
|
||||||
// Вектор, отвечающий за применение гравитации
|
|
||||||
private readonly Vector3 _gravity;
|
|
||||||
|
|
||||||
// Конструктор системы движения в воздухе
|
|
||||||
public AirMovementSystem(Vector3 gravity)
|
|
||||||
{
|
|
||||||
_gravity = gravity;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Обновление скорости движения персонажа в воздухе
|
|
||||||
public void UpdateVelocity(ref Vector3 currentVelocity, float deltaTime)
|
|
||||||
{
|
|
||||||
// Применяем гравитацию
|
|
||||||
currentVelocity += _gravity * deltaTime;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-3
@@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 5ea8841f02ff4e17ab8ebd8c7a949f6f
|
|
||||||
timeCreated: 1761571326
|
|
||||||
-88
@@ -1,88 +0,0 @@
|
|||||||
using UnityEngine;
|
|
||||||
using Code.Gameplay.Character.Controller.Input;
|
|
||||||
using KinematicCharacterController;
|
|
||||||
|
|
||||||
namespace Code.Gameplay.Character.Controller.Movement
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
* Система движения персонажа по устойчивой поверхности
|
|
||||||
*/
|
|
||||||
public class GroundMovementSystem
|
|
||||||
{
|
|
||||||
// Максимальная скорость движения по устойчивой поверхности
|
|
||||||
private readonly float _maxStableMoveSpeed;
|
|
||||||
// Максимальная скорость спринта
|
|
||||||
private readonly float _sprintMoveSpeed;
|
|
||||||
// Резкость изменения скорости движения (чем выше - тем резче)
|
|
||||||
private readonly float _stableMovementSharpness;
|
|
||||||
// Скорость прыжка
|
|
||||||
private readonly float _jumpSpeed;
|
|
||||||
|
|
||||||
// Свойство-флаг указывающий, что был запрошен прыжок
|
|
||||||
public bool JumpRequested { get; private set; }
|
|
||||||
|
|
||||||
// Конструктор системы движения на земле
|
|
||||||
public GroundMovementSystem(float maxStableMoveSpeed, float sprintMoveSpeed, float stableMovementSharpness, float jumpSpeed)
|
|
||||||
{
|
|
||||||
_maxStableMoveSpeed = maxStableMoveSpeed;
|
|
||||||
_sprintMoveSpeed = sprintMoveSpeed;
|
|
||||||
_stableMovementSharpness = stableMovementSharpness;
|
|
||||||
_jumpSpeed = jumpSpeed;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Метод для установки запроса на прыжок извне
|
|
||||||
public void RequestJump(bool jumpPressed)
|
|
||||||
{
|
|
||||||
if (jumpPressed)
|
|
||||||
JumpRequested = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Метод для отмены запроса на прыжок извне
|
|
||||||
public void CancelJumpRequest()
|
|
||||||
{
|
|
||||||
JumpRequested = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Обновление скорости движения персонажа на земле
|
|
||||||
public void UpdateVelocity(
|
|
||||||
ref Vector3 currentVelocity,
|
|
||||||
CharacterInputHandler inputHandler,
|
|
||||||
KinematicCharacterMotor motor,
|
|
||||||
float deltaTime)
|
|
||||||
{
|
|
||||||
// Сохранение текущей величины скорости
|
|
||||||
var currentVelocityMagnitude = currentVelocity.magnitude;
|
|
||||||
|
|
||||||
// Получение нормали поверхности для корректного движения по наклонным плоскостям
|
|
||||||
var effectiveGroundNormal = motor.GroundingStatus.GroundNormal;
|
|
||||||
|
|
||||||
// Переориентация текущей скорости вдоль поверхности
|
|
||||||
currentVelocity = motor.GetDirectionTangentToSurface(currentVelocity, effectiveGroundNormal) *
|
|
||||||
currentVelocityMagnitude;
|
|
||||||
|
|
||||||
// Переориентация входного вектора движения вдоль поверхности
|
|
||||||
var inputRight = Vector3.Cross(inputHandler.MoveInputVector, motor.CharacterUp);
|
|
||||||
var reorientedInput = Vector3.Cross(effectiveGroundNormal, inputRight).normalized *
|
|
||||||
inputHandler.MoveInputVector.magnitude;
|
|
||||||
|
|
||||||
// Расчет целевой скорости движения с учетом ограничения максимальной скорости и спринта
|
|
||||||
var targetSpeed = inputHandler.IsSprinting ? _sprintMoveSpeed : _maxStableMoveSpeed;
|
|
||||||
var targetMovementVelocity = reorientedInput * targetSpeed;
|
|
||||||
|
|
||||||
// Плавная интерполяция текущей скорости к целевой с экспоненциальным сглаживанием
|
|
||||||
currentVelocity = Vector3.Lerp(
|
|
||||||
currentVelocity,
|
|
||||||
targetMovementVelocity,
|
|
||||||
1f - Mathf.Exp(-_stableMovementSharpness * deltaTime)
|
|
||||||
);
|
|
||||||
|
|
||||||
// Если запрошен прыжок
|
|
||||||
if (JumpRequested)
|
|
||||||
{
|
|
||||||
currentVelocity += motor.CharacterUp * _jumpSpeed - Vector3.Project(currentVelocity, motor.CharacterUp);
|
|
||||||
JumpRequested = false; // Сброс сразу после применения
|
|
||||||
motor.ForceUnground();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-3
@@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 21cd95513cd44d52b6ae014403f9e3d1
|
|
||||||
timeCreated: 1761571312
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 4028bee0a1774348bb81e0c56e400ddc
|
|
||||||
timeCreated: 1761570805
|
|
||||||
@@ -1,101 +0,0 @@
|
|||||||
using Code.Gameplay.Camera;
|
|
||||||
using Code.Gameplay.Camera.CameraStates;
|
|
||||||
using Code.Gameplay.Character.Controller;
|
|
||||||
using Code.Input;
|
|
||||||
using Reflex.Attributes;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace Code.Gameplay.Character.Core
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
* Главный скрипт персонажа, объединяющий камеру и контроллер персонажа
|
|
||||||
* Обрабатывает ввод пользователя и распределяет его между компонентами
|
|
||||||
* Синхронизирует состояние камеры и персонажа
|
|
||||||
* Управляет переключением режимов камеры через Input System
|
|
||||||
*/
|
|
||||||
public class Character : MonoBehaviour
|
|
||||||
{
|
|
||||||
[Inject] private CameraStateMachine _cameraStateMachine; // Стейт-машина камеры (нужна для транзакций и т.п.)
|
|
||||||
[SerializeField] private CustomCharacterController customCharacterController; // Компонент управления персонажем
|
|
||||||
[SerializeField] private Transform cameraFollowPoint; // Точка следования камеры (уровень глаз для FirstPerson)
|
|
||||||
|
|
||||||
[Inject] private IInputService _inputService; // Сервис ввода через DI
|
|
||||||
|
|
||||||
// Флаг для отслеживания переключения режима камеры (чтобы избежать многократных срабатываний)
|
|
||||||
private bool _cameraModeToggleHandled;
|
|
||||||
|
|
||||||
// Инициализация персонажа
|
|
||||||
private void Start()
|
|
||||||
{
|
|
||||||
// Настройка камеры для следования за точкой камеры
|
|
||||||
((BaseCameraState)_cameraStateMachine.CurrentBaseState).SetFollowTransform(cameraFollowPoint);
|
|
||||||
|
|
||||||
// Включение Gameplay мапа ввода
|
|
||||||
_inputService.EnableMap(ActionMappings.Gameplay);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Обработка ввода для движения персонажа
|
|
||||||
private void HandleCharacterInput()
|
|
||||||
{
|
|
||||||
// Создаем структуру ввода с полной информацией о камере
|
|
||||||
var inputs = new CharacterInputs();
|
|
||||||
|
|
||||||
// Получаем данные движения из Input System
|
|
||||||
var moveInput = _inputService.MoveInput;
|
|
||||||
inputs.MoveAxisForward = moveInput.y; // Vertical ось (W/S или Up/Down)
|
|
||||||
inputs.MoveAxisRight = moveInput.x; // Horizontal ось (A/D или Left/Right)
|
|
||||||
inputs.JumpPressed = _inputService.JumpPressed; // Прыжки (Space)
|
|
||||||
inputs.SprintPressed = _inputService.SprintPressed; // Спринт (Shift)
|
|
||||||
inputs.SlidePressed = _inputService.SlidePressed; // Слайд (Ctrl)
|
|
||||||
inputs.CameraMode = ((ICameraState)_cameraStateMachine.CurrentBaseState).GetCameraMode();
|
|
||||||
|
|
||||||
// Передаем информацию о камере для адаптивного поведения
|
|
||||||
inputs.CameraRotation = ((BaseCameraState)_cameraStateMachine.CurrentBaseState).GetCameraRotation();
|
|
||||||
inputs.CameraPlanarDirection = ((BaseCameraState)_cameraStateMachine.CurrentBaseState).GetPlanarDirection();
|
|
||||||
|
|
||||||
// Передаем ввод в контроллер персонажа
|
|
||||||
customCharacterController.SetInputs(ref inputs);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Обработка переключения режима камеры через Input System
|
|
||||||
private void HandleCameraModeInput()
|
|
||||||
{
|
|
||||||
// Получаем состояние переключения режима камеры из Input System
|
|
||||||
var togglePressed = _inputService.ToggleCameraModePressed;
|
|
||||||
|
|
||||||
switch (togglePressed)
|
|
||||||
{
|
|
||||||
// Обрабатываем нажатие только один раз при первом обнаружении
|
|
||||||
case true when !_cameraModeToggleHandled:
|
|
||||||
ToggleCameraMode();
|
|
||||||
_cameraModeToggleHandled = true;
|
|
||||||
break;
|
|
||||||
// Сбрасываем флаг когда кнопка отпущена
|
|
||||||
case false:
|
|
||||||
_cameraModeToggleHandled = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Метод для переключения режимов камеры
|
|
||||||
private void ToggleCameraMode()
|
|
||||||
{
|
|
||||||
var currentMode = ((ICameraState)_cameraStateMachine.CurrentBaseState).GetCameraMode();
|
|
||||||
var newMode = currentMode == CameraMode.FirstPerson ? CameraMode.ThirdPerson : CameraMode.FirstPerson;
|
|
||||||
|
|
||||||
_cameraStateMachine.SwitchState(newMode);
|
|
||||||
((BaseCameraState)_cameraStateMachine.CurrentBaseState).SetFollowTransform(cameraFollowPoint);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Обновление логики каждый кадр
|
|
||||||
private void Update()
|
|
||||||
{
|
|
||||||
// Обработка ввода для движения в Update (физика)
|
|
||||||
HandleCharacterInput();
|
|
||||||
|
|
||||||
// Обработка переключения режима камеры
|
|
||||||
HandleCameraModeInput();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 9f2cdbe59523ace7ab0d8dfc36b4eb02
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
using Code.Gameplay.Camera;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace Code.Gameplay.Character.Core
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
* Структура для хранения входных данных от персонажа
|
|
||||||
* Содержит информацию о движении и состоянии камеры
|
|
||||||
*/
|
|
||||||
public struct CharacterInputs
|
|
||||||
{
|
|
||||||
public float MoveAxisForward; // Ввод движения вперед/назад (W/S или Up/Down)
|
|
||||||
public float MoveAxisRight; // Ввод движения влево/вправо (A/D или Left/Right)
|
|
||||||
public Quaternion CameraRotation; // Текущее вращение камеры для определения направления движения
|
|
||||||
public CameraMode CameraMode; // Текущий режим камеры для адаптации поведения
|
|
||||||
public Vector3 CameraPlanarDirection; // Направление камеры в горизонтальной плоскости
|
|
||||||
public bool JumpPressed; // Флаг указывающий, нажата ли кнопка прыжка
|
|
||||||
public bool SprintPressed; // Флаг указывающий, нажата ли кнопка спринта
|
|
||||||
public bool SlidePressed; // Флаг указывающий, нажата ли кнопка слайда
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: c3edde7108664ecc9b84a8096a3dec93
|
|
||||||
timeCreated: 1761570939
|
|
||||||
@@ -2,8 +2,5 @@ namespace Code.Input
|
|||||||
{
|
{
|
||||||
public enum GameplayActions
|
public enum GameplayActions
|
||||||
{
|
{
|
||||||
Move,
|
|
||||||
Look,
|
|
||||||
Zoom
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
using UnityEngine;
|
using System;
|
||||||
|
using UnityEngine.InputSystem;
|
||||||
|
|
||||||
namespace Code.Input
|
namespace Code.Input
|
||||||
{
|
{
|
||||||
@@ -6,18 +7,5 @@ namespace Code.Input
|
|||||||
{
|
{
|
||||||
void EnableMap(ActionMappings actionMap);
|
void EnableMap(ActionMappings actionMap);
|
||||||
void DisableMap(ActionMappings actionMap);
|
void DisableMap(ActionMappings actionMap);
|
||||||
|
|
||||||
// Для управления камерой
|
|
||||||
Vector2 LookInput { get; }
|
|
||||||
float ZoomInput { get; }
|
|
||||||
|
|
||||||
// Для управления движением персонажа
|
|
||||||
Vector2 MoveInput { get; }
|
|
||||||
bool JumpPressed { get; }
|
|
||||||
bool SprintPressed { get; }
|
|
||||||
bool SlidePressed { get; }
|
|
||||||
|
|
||||||
// Для переключения режима камеры
|
|
||||||
bool ToggleCameraModePressed { get; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using Reflex.Attributes;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.InputSystem;
|
using UnityEngine.InputSystem;
|
||||||
|
|
||||||
@@ -7,160 +8,7 @@ namespace Code.Input
|
|||||||
public class InputService : IInputService, IDisposable
|
public class InputService : IInputService, IDisposable
|
||||||
{
|
{
|
||||||
|
|
||||||
private readonly InputActionAsset _inputActionAsset;
|
private InputActionAsset _inputActionAsset;
|
||||||
|
|
||||||
public Vector2 LookInput { get; private set; }
|
|
||||||
public float ZoomInput { get; private set; }
|
|
||||||
public Vector2 MoveInput { get; private set; }
|
|
||||||
public bool JumpPressed { get; private set; }
|
|
||||||
public bool SprintPressed { get; private set; }
|
|
||||||
public bool SlidePressed { get; private set; }
|
|
||||||
public bool ToggleCameraModePressed { get; private set; }
|
|
||||||
|
|
||||||
public InputService(InputActionAsset inputActionAsset)
|
|
||||||
{
|
|
||||||
_inputActionAsset = inputActionAsset;
|
|
||||||
SetupInputCallbacks();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Обработка всех карт ввода
|
|
||||||
private void SetupInputCallbacks()
|
|
||||||
{
|
|
||||||
SetupGameplayInputCallbacks();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Обработка геймплейной карты ввода
|
|
||||||
private void SetupGameplayInputCallbacks()
|
|
||||||
{
|
|
||||||
// Инициализация геймплейной карты ввода
|
|
||||||
var gameplayMap = _inputActionAsset.FindActionMap("Gameplay");
|
|
||||||
|
|
||||||
// Обработка взгляда (камера)
|
|
||||||
var lookAction = gameplayMap.FindAction("Look");
|
|
||||||
if (lookAction != null)
|
|
||||||
{
|
|
||||||
lookAction.performed += OnLookPerformed;
|
|
||||||
lookAction.canceled += OnLookCanceled;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Обработка зума (камера)
|
|
||||||
var zoomAction = gameplayMap.FindAction("Zoom");
|
|
||||||
if (zoomAction != null)
|
|
||||||
{
|
|
||||||
zoomAction.performed += OnZoomPerformed;
|
|
||||||
zoomAction.canceled += OnZoomCanceled;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Обработка движения (персонаж)
|
|
||||||
var moveAction = gameplayMap.FindAction("Move");
|
|
||||||
if (moveAction != null)
|
|
||||||
{
|
|
||||||
moveAction.performed += OnMovePerformed;
|
|
||||||
moveAction.canceled += OnMoveCanceled;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Обработка прыжков (персонаж)
|
|
||||||
var jumpAction = gameplayMap.FindAction("Jump");
|
|
||||||
if (jumpAction != null)
|
|
||||||
{
|
|
||||||
jumpAction.performed += OnJumpPerformed;
|
|
||||||
jumpAction.canceled += OnJumpCanceled;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Обработка спринта (персонаж)
|
|
||||||
var sprintAction = gameplayMap.FindAction("Sprint");
|
|
||||||
if (sprintAction != null)
|
|
||||||
{
|
|
||||||
sprintAction.performed += OnSprintPerformed;
|
|
||||||
sprintAction.canceled += OnSprintCanceled;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Обработка слайда (персонаж)
|
|
||||||
var slideAction = gameplayMap.FindAction("Slide");
|
|
||||||
if (slideAction != null)
|
|
||||||
{
|
|
||||||
slideAction.performed += OnSlidePerformed;
|
|
||||||
slideAction.canceled += OnSlideCanceled;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Обработка переключения режима камеры
|
|
||||||
var toggleCameraModeAction = gameplayMap.FindAction("ToggleCameraMode");
|
|
||||||
if (toggleCameraModeAction != null)
|
|
||||||
{
|
|
||||||
toggleCameraModeAction.performed += OnToggleCameraModePerformed;
|
|
||||||
toggleCameraModeAction.canceled += OnToggleCameraModeCanceled;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnLookPerformed(InputAction.CallbackContext context)
|
|
||||||
{
|
|
||||||
LookInput = context.ReadValue<Vector2>();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnLookCanceled(InputAction.CallbackContext context)
|
|
||||||
{
|
|
||||||
LookInput = Vector2.zero;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnZoomPerformed(InputAction.CallbackContext context)
|
|
||||||
{
|
|
||||||
ZoomInput = context.ReadValue<float>();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnZoomCanceled(InputAction.CallbackContext context)
|
|
||||||
{
|
|
||||||
ZoomInput = 0f;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnMovePerformed(InputAction.CallbackContext context)
|
|
||||||
{
|
|
||||||
MoveInput = context.ReadValue<Vector2>();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnMoveCanceled(InputAction.CallbackContext context)
|
|
||||||
{
|
|
||||||
MoveInput = Vector2.zero;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnJumpPerformed(InputAction.CallbackContext context)
|
|
||||||
{
|
|
||||||
JumpPressed = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnJumpCanceled(InputAction.CallbackContext context)
|
|
||||||
{
|
|
||||||
JumpPressed = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnSprintPerformed(InputAction.CallbackContext context)
|
|
||||||
{
|
|
||||||
SprintPressed = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnSprintCanceled(InputAction.CallbackContext context)
|
|
||||||
{
|
|
||||||
SprintPressed = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnSlidePerformed(InputAction.CallbackContext context)
|
|
||||||
{
|
|
||||||
SlidePressed = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnSlideCanceled(InputAction.CallbackContext context)
|
|
||||||
{
|
|
||||||
SlidePressed = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnToggleCameraModePerformed(InputAction.CallbackContext context)
|
|
||||||
{
|
|
||||||
ToggleCameraModePressed = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnToggleCameraModeCanceled(InputAction.CallbackContext context)
|
|
||||||
{
|
|
||||||
ToggleCameraModePressed = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void EnableMap(ActionMappings actionMap) => _inputActionAsset.actionMaps[(int)actionMap].Enable();
|
public void EnableMap(ActionMappings actionMap) => _inputActionAsset.actionMaps[(int)actionMap].Enable();
|
||||||
public void DisableMap(ActionMappings actionMap) => _inputActionAsset.actionMaps[(int)actionMap].Disable();
|
public void DisableMap(ActionMappings actionMap) => _inputActionAsset.actionMaps[(int)actionMap].Disable();
|
||||||
@@ -172,29 +20,13 @@ namespace Code.Input
|
|||||||
_inputActionAsset
|
_inputActionAsset
|
||||||
.actionMaps[mapId].actions[actionId].performed -= action;
|
.actionMaps[mapId].actions[actionId].performed -= action;
|
||||||
|
|
||||||
|
public InputService(InputActionAsset inputActionAsset)
|
||||||
|
{
|
||||||
|
_inputActionAsset = inputActionAsset;
|
||||||
|
}
|
||||||
|
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
{
|
{
|
||||||
var gameplayMap = _inputActionAsset.FindActionMap("Gameplay");
|
|
||||||
gameplayMap.FindAction("Look").performed -= OnLookPerformed;
|
|
||||||
gameplayMap.FindAction("Look").canceled -= OnLookCanceled;
|
|
||||||
|
|
||||||
gameplayMap.FindAction("Zoom").performed -= OnZoomPerformed;
|
|
||||||
gameplayMap.FindAction("Zoom").canceled -= OnZoomCanceled;
|
|
||||||
|
|
||||||
gameplayMap.FindAction("Move").performed -= OnMovePerformed;
|
|
||||||
gameplayMap.FindAction("Move").canceled -= OnMoveCanceled;
|
|
||||||
|
|
||||||
gameplayMap.FindAction("Jump").performed -= OnJumpPerformed;
|
|
||||||
gameplayMap.FindAction("Jump").canceled -= OnJumpCanceled;
|
|
||||||
|
|
||||||
gameplayMap.FindAction("Sprint").performed -= OnSprintPerformed;
|
|
||||||
gameplayMap.FindAction("Sprint").canceled -= OnSprintCanceled;
|
|
||||||
|
|
||||||
gameplayMap.FindAction("Slide").performed -= OnSlidePerformed;
|
|
||||||
gameplayMap.FindAction("Slide").canceled -= OnSlideCanceled;
|
|
||||||
|
|
||||||
gameplayMap.FindAction("ToggleCameraMode").performed -= OnToggleCameraModePerformed;
|
|
||||||
gameplayMap.FindAction("ToggleCameraMode").canceled -= OnToggleCameraModeCanceled;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4,8 +4,6 @@ namespace Code.Scenes
|
|||||||
{
|
{
|
||||||
Initial,
|
Initial,
|
||||||
MainMenu,
|
MainMenu,
|
||||||
Gameplay,
|
Gameplay
|
||||||
// TODO: поменяно для теста
|
|
||||||
MovementDev
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
@@ -8,7 +7,6 @@ namespace Code.StateMachine
|
|||||||
: MonoBehaviour
|
: MonoBehaviour
|
||||||
where TStateMachineContext : new()
|
where TStateMachineContext : new()
|
||||||
{
|
{
|
||||||
public TStateEnum CurrentState { get; private set; }
|
|
||||||
public BaseState<TStateMachineContext> CurrentBaseState { get; private set; }
|
public BaseState<TStateMachineContext> CurrentBaseState { get; private set; }
|
||||||
private BaseState<TStateMachineContext> _previousBaseState;
|
private BaseState<TStateMachineContext> _previousBaseState;
|
||||||
|
|
||||||
@@ -22,10 +20,6 @@ namespace Code.StateMachine
|
|||||||
CurrentBaseState.Tick();
|
CurrentBaseState.Tick();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void LateUpdate()
|
|
||||||
{
|
|
||||||
CurrentBaseState.LateTick();
|
|
||||||
}
|
|
||||||
public abstract void Initialize();
|
public abstract void Initialize();
|
||||||
|
|
||||||
// Костыли 2 шт. для флагового енама в шаблонах
|
// Костыли 2 шт. для флагового енама в шаблонах
|
||||||
@@ -59,8 +53,6 @@ namespace Code.StateMachine
|
|||||||
CurrentBaseState.EnterState();
|
CurrentBaseState.EnterState();
|
||||||
}
|
}
|
||||||
|
|
||||||
CurrentState = nextState;
|
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ namespace Code.StateMachine
|
|||||||
public virtual void EnterState() => OnEntered?.Invoke();
|
public virtual void EnterState() => OnEntered?.Invoke();
|
||||||
|
|
||||||
public virtual void Tick(){}
|
public virtual void Tick(){}
|
||||||
public virtual void LateTick(){}
|
|
||||||
|
|
||||||
public virtual void ExitState() => OnExited?.Invoke();
|
public virtual void ExitState() => OnExited?.Invoke();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,11 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Code.Configs;
|
using Code.Configs;
|
||||||
|
|
||||||
namespace Code.StaticData
|
namespace StaticData
|
||||||
{
|
{
|
||||||
public interface IStaticDataService
|
public partial interface IStaticDataService
|
||||||
{
|
{
|
||||||
void Load();
|
void Load();
|
||||||
InputConfig InputConfig { get; }
|
// InputConfig InputConfig { get; }
|
||||||
AppConfig AppConfig { get; }
|
|
||||||
CameraConfig CameraConfig { get; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2,19 +2,18 @@ using Code.Configs;
|
|||||||
using Code.Constants;
|
using Code.Constants;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Code.StaticData
|
namespace StaticData
|
||||||
{
|
{
|
||||||
public class StaticDataService : IStaticDataService
|
public partial class StaticDataService : IStaticDataService
|
||||||
{
|
{
|
||||||
public AppConfig AppConfig { get; private set; }
|
// public AppConfig AppConfig { get; private set; }
|
||||||
public InputConfig InputConfig { get; private set; }
|
// public InputConfig InputConfig { get; private set; }
|
||||||
public CameraConfig CameraConfig { get; private set; }
|
|
||||||
|
|
||||||
public void Load()
|
public void Load()
|
||||||
{
|
{
|
||||||
InputConfig = Resources.Load<InputConfig>(string.Format(StringPaths.ConfigSingle, "App", "InputConfig"));
|
// InputConfig = Resources.Load<InputConfig>(string.Format(StringPaths.ConfigSingle, "App", "InputConfig"));
|
||||||
AppConfig = Resources.Load<AppConfig>(string.Format(StringPaths.ConfigSingle, "App", "AppConfig"));
|
// AppConfig = Resources.Load<AppConfig>(string.Format(StringPaths.ConfigSingle, "App", "AppConfig"));
|
||||||
CameraConfig = Resources.Load<CameraConfig>(string.Format(StringPaths.ConfigSingle, "App", "CameraConfig"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!114 &11400000
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 0}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 72fbf590e5fd4747acfdd32eb26bba3a, type: 3}
|
|
||||||
m_Name: CameraConfig
|
|
||||||
m_EditorClassIdentifier: Assembly-CSharp::Code.Configs.CameraConfig
|
|
||||||
defaultDistance: 6
|
|
||||||
minDistance: 3
|
|
||||||
maxDistance: 10
|
|
||||||
distanceMovementSpeed: 5
|
|
||||||
rotationSpeed: 0.3
|
|
||||||
rotationSharpness: 100
|
|
||||||
followSharpness: 100
|
|
||||||
minVerticalAngle: -70
|
|
||||||
maxVerticalAngle: 70
|
|
||||||
defaultVerticalAngle: 10
|
|
||||||
defaultCameraMode: 0
|
|
||||||
defaultFollowPosition: {x: 0, y: 0, z: 0}
|
|
||||||
cameraPrefab: {fileID: 374984699890489845, guid: 8b8bf5712dc5a42c7bd8e22cddb884c3, type: 3}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: d63c98162aec4c9f9b55578df6aee277
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 11400000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: b1c9dc62b0eb2cfba9161205c17e150a
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,138 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!114 &-8082666438668706547
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 11
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 0}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Editor::UnityEditor.Rendering.Universal.AssetVersion
|
|
||||||
version: 10
|
|
||||||
--- !u!21 &2100000
|
|
||||||
Material:
|
|
||||||
serializedVersion: 8
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: GroundTestMaterial
|
|
||||||
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
|
|
||||||
m_Parent: {fileID: 0}
|
|
||||||
m_ModifiedSerializedProperties: 0
|
|
||||||
m_ValidKeywords:
|
|
||||||
- _DETAIL_MULX2
|
|
||||||
m_InvalidKeywords: []
|
|
||||||
m_LightmapFlags: 4
|
|
||||||
m_EnableInstancingVariants: 0
|
|
||||||
m_DoubleSidedGI: 0
|
|
||||||
m_CustomRenderQueue: -1
|
|
||||||
stringTagMap:
|
|
||||||
RenderType: Opaque
|
|
||||||
disabledShaderPasses:
|
|
||||||
- MOTIONVECTORS
|
|
||||||
m_LockedProperties:
|
|
||||||
m_SavedProperties:
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TexEnvs:
|
|
||||||
- _BaseMap:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _BumpMap:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _DetailAlbedoMap:
|
|
||||||
m_Texture: {fileID: 2800000, guid: 084980307d793717d9a5b1b4852db839, type: 3}
|
|
||||||
m_Scale: {x: 1000, y: 1000}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _DetailMask:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _DetailNormalMap:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _EmissionMap:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _MainTex:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _MetallicGlossMap:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _OcclusionMap:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _ParallaxMap:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _SpecGlossMap:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- unity_Lightmaps:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- unity_LightmapsInd:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- unity_ShadowMasks:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
m_Ints: []
|
|
||||||
m_Floats:
|
|
||||||
- _AddPrecomputedVelocity: 0
|
|
||||||
- _AlphaClip: 0
|
|
||||||
- _AlphaToMask: 0
|
|
||||||
- _Blend: 0
|
|
||||||
- _BlendModePreserveSpecular: 1
|
|
||||||
- _BumpScale: 1
|
|
||||||
- _ClearCoatMask: 0
|
|
||||||
- _ClearCoatSmoothness: 0
|
|
||||||
- _Cull: 2
|
|
||||||
- _Cutoff: 0.5
|
|
||||||
- _DetailAlbedoMapScale: 1
|
|
||||||
- _DetailNormalMapScale: 1
|
|
||||||
- _DstBlend: 0
|
|
||||||
- _DstBlendAlpha: 0
|
|
||||||
- _EnvironmentReflections: 1
|
|
||||||
- _GlossMapScale: 0
|
|
||||||
- _Glossiness: 0
|
|
||||||
- _GlossyReflections: 0
|
|
||||||
- _Metallic: 0
|
|
||||||
- _OcclusionStrength: 1
|
|
||||||
- _Parallax: 0.005
|
|
||||||
- _QueueOffset: 0
|
|
||||||
- _ReceiveShadows: 1
|
|
||||||
- _Smoothness: 0.5
|
|
||||||
- _SmoothnessTextureChannel: 0
|
|
||||||
- _SpecularHighlights: 1
|
|
||||||
- _SrcBlend: 1
|
|
||||||
- _SrcBlendAlpha: 1
|
|
||||||
- _Surface: 0
|
|
||||||
- _WorkflowMode: 1
|
|
||||||
- _XRMotionVectorsPass: 1
|
|
||||||
- _ZWrite: 1
|
|
||||||
m_Colors:
|
|
||||||
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
|
|
||||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
|
||||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
|
||||||
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
|
||||||
m_BuildTextureStacks: []
|
|
||||||
m_AllowLocking: 1
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 115fc1c80dafb04e0a00ffed85cfb715
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 2100000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,138 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!114 &-8082666438668706547
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 11
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 0}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Editor::UnityEditor.Rendering.Universal.AssetVersion
|
|
||||||
version: 10
|
|
||||||
--- !u!21 &2100000
|
|
||||||
Material:
|
|
||||||
serializedVersion: 8
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: WallsMateriall
|
|
||||||
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
|
|
||||||
m_Parent: {fileID: 0}
|
|
||||||
m_ModifiedSerializedProperties: 0
|
|
||||||
m_ValidKeywords:
|
|
||||||
- _DETAIL_MULX2
|
|
||||||
m_InvalidKeywords: []
|
|
||||||
m_LightmapFlags: 4
|
|
||||||
m_EnableInstancingVariants: 0
|
|
||||||
m_DoubleSidedGI: 0
|
|
||||||
m_CustomRenderQueue: -1
|
|
||||||
stringTagMap:
|
|
||||||
RenderType: Opaque
|
|
||||||
disabledShaderPasses:
|
|
||||||
- MOTIONVECTORS
|
|
||||||
m_LockedProperties:
|
|
||||||
m_SavedProperties:
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TexEnvs:
|
|
||||||
- _BaseMap:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _BumpMap:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _DetailAlbedoMap:
|
|
||||||
m_Texture: {fileID: 2800000, guid: 084980307d793717d9a5b1b4852db839, type: 3}
|
|
||||||
m_Scale: {x: 5, y: 5}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _DetailMask:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _DetailNormalMap:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _EmissionMap:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _MainTex:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _MetallicGlossMap:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _OcclusionMap:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _ParallaxMap:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _SpecGlossMap:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- unity_Lightmaps:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- unity_LightmapsInd:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- unity_ShadowMasks:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
m_Ints: []
|
|
||||||
m_Floats:
|
|
||||||
- _AddPrecomputedVelocity: 0
|
|
||||||
- _AlphaClip: 0
|
|
||||||
- _AlphaToMask: 0
|
|
||||||
- _Blend: 0
|
|
||||||
- _BlendModePreserveSpecular: 1
|
|
||||||
- _BumpScale: 1
|
|
||||||
- _ClearCoatMask: 0
|
|
||||||
- _ClearCoatSmoothness: 0
|
|
||||||
- _Cull: 2
|
|
||||||
- _Cutoff: 0.5
|
|
||||||
- _DetailAlbedoMapScale: 1
|
|
||||||
- _DetailNormalMapScale: 1
|
|
||||||
- _DstBlend: 0
|
|
||||||
- _DstBlendAlpha: 0
|
|
||||||
- _EnvironmentReflections: 1
|
|
||||||
- _GlossMapScale: 0
|
|
||||||
- _Glossiness: 0
|
|
||||||
- _GlossyReflections: 0
|
|
||||||
- _Metallic: 0
|
|
||||||
- _OcclusionStrength: 1
|
|
||||||
- _Parallax: 0.005
|
|
||||||
- _QueueOffset: 0
|
|
||||||
- _ReceiveShadows: 1
|
|
||||||
- _Smoothness: 0.5
|
|
||||||
- _SmoothnessTextureChannel: 0
|
|
||||||
- _SpecularHighlights: 1
|
|
||||||
- _SrcBlend: 1
|
|
||||||
- _SrcBlendAlpha: 1
|
|
||||||
- _Surface: 0
|
|
||||||
- _WorkflowMode: 1
|
|
||||||
- _XRMotionVectorsPass: 1
|
|
||||||
- _ZWrite: 1
|
|
||||||
m_Colors:
|
|
||||||
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
|
|
||||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
|
||||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
|
||||||
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
|
||||||
m_BuildTextureStacks: []
|
|
||||||
m_AllowLocking: 1
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: b407164ea2464a05a97202efff71afc6
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 2100000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
Binary file not shown.
@@ -1,130 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 084980307d793717d9a5b1b4852db839
|
|
||||||
TextureImporter:
|
|
||||||
internalIDToNameTable: []
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 13
|
|
||||||
mipmaps:
|
|
||||||
mipMapMode: 0
|
|
||||||
enableMipMap: 1
|
|
||||||
sRGBTexture: 0
|
|
||||||
linearTexture: 0
|
|
||||||
fadeOut: 0
|
|
||||||
borderMipMap: 0
|
|
||||||
mipMapsPreserveCoverage: 0
|
|
||||||
alphaTestReferenceValue: 0.5
|
|
||||||
mipMapFadeDistanceStart: 1
|
|
||||||
mipMapFadeDistanceEnd: 3
|
|
||||||
bumpmap:
|
|
||||||
convertToNormalMap: 0
|
|
||||||
externalNormalMap: 0
|
|
||||||
heightScale: 0.25
|
|
||||||
normalMapFilter: 0
|
|
||||||
flipGreenChannel: 0
|
|
||||||
isReadable: 0
|
|
||||||
streamingMipmaps: 0
|
|
||||||
streamingMipmapsPriority: 0
|
|
||||||
vTOnly: 0
|
|
||||||
ignoreMipmapLimit: 0
|
|
||||||
grayScaleToAlpha: 0
|
|
||||||
generateCubemap: 6
|
|
||||||
cubemapConvolution: 0
|
|
||||||
seamlessCubemap: 0
|
|
||||||
textureFormat: 1
|
|
||||||
maxTextureSize: 2048
|
|
||||||
textureSettings:
|
|
||||||
serializedVersion: 2
|
|
||||||
filterMode: 0
|
|
||||||
aniso: 1
|
|
||||||
mipBias: 0
|
|
||||||
wrapU: 0
|
|
||||||
wrapV: 0
|
|
||||||
wrapW: 0
|
|
||||||
nPOTScale: 1
|
|
||||||
lightmap: 0
|
|
||||||
compressionQuality: 50
|
|
||||||
spriteMode: 0
|
|
||||||
spriteExtrude: 1
|
|
||||||
spriteMeshType: 1
|
|
||||||
alignment: 0
|
|
||||||
spritePivot: {x: 0.5, y: 0.5}
|
|
||||||
spritePixelsToUnits: 100
|
|
||||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
|
||||||
spriteGenerateFallbackPhysicsShape: 1
|
|
||||||
alphaUsage: 1
|
|
||||||
alphaIsTransparency: 0
|
|
||||||
spriteTessellationDetail: -1
|
|
||||||
textureType: 0
|
|
||||||
textureShape: 1
|
|
||||||
singleChannelComponent: 0
|
|
||||||
flipbookRows: 1
|
|
||||||
flipbookColumns: 1
|
|
||||||
maxTextureSizeSet: 0
|
|
||||||
compressionQualitySet: 0
|
|
||||||
textureFormatSet: 0
|
|
||||||
ignorePngGamma: 0
|
|
||||||
applyGammaDecoding: 0
|
|
||||||
swizzle: 50462976
|
|
||||||
cookieLightType: 0
|
|
||||||
platformSettings:
|
|
||||||
- serializedVersion: 4
|
|
||||||
buildTarget: DefaultTexturePlatform
|
|
||||||
maxTextureSize: 2048
|
|
||||||
resizeAlgorithm: 0
|
|
||||||
textureFormat: -1
|
|
||||||
textureCompression: 1
|
|
||||||
compressionQuality: 50
|
|
||||||
crunchedCompression: 0
|
|
||||||
allowsAlphaSplitting: 0
|
|
||||||
overridden: 0
|
|
||||||
ignorePlatformSupport: 0
|
|
||||||
androidETC2FallbackOverride: 0
|
|
||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
||||||
- serializedVersion: 4
|
|
||||||
buildTarget: Standalone
|
|
||||||
maxTextureSize: 2048
|
|
||||||
resizeAlgorithm: 0
|
|
||||||
textureFormat: -1
|
|
||||||
textureCompression: 1
|
|
||||||
compressionQuality: 50
|
|
||||||
crunchedCompression: 0
|
|
||||||
allowsAlphaSplitting: 0
|
|
||||||
overridden: 0
|
|
||||||
ignorePlatformSupport: 0
|
|
||||||
androidETC2FallbackOverride: 0
|
|
||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
||||||
- serializedVersion: 4
|
|
||||||
buildTarget: Android
|
|
||||||
maxTextureSize: 2048
|
|
||||||
resizeAlgorithm: 0
|
|
||||||
textureFormat: -1
|
|
||||||
textureCompression: 1
|
|
||||||
compressionQuality: 50
|
|
||||||
crunchedCompression: 0
|
|
||||||
allowsAlphaSplitting: 0
|
|
||||||
overridden: 0
|
|
||||||
ignorePlatformSupport: 0
|
|
||||||
androidETC2FallbackOverride: 0
|
|
||||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
||||||
spriteSheet:
|
|
||||||
serializedVersion: 2
|
|
||||||
sprites: []
|
|
||||||
outline: []
|
|
||||||
customData:
|
|
||||||
physicsShape: []
|
|
||||||
bones: []
|
|
||||||
spriteID:
|
|
||||||
internalID: 0
|
|
||||||
vertices: []
|
|
||||||
indices:
|
|
||||||
edges: []
|
|
||||||
weights: []
|
|
||||||
secondaryTextures: []
|
|
||||||
spriteCustomMetadata:
|
|
||||||
entries: []
|
|
||||||
nameFileIdTable: {}
|
|
||||||
mipmapLimitGroupName:
|
|
||||||
pSDRemoveMatte: 0
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 608c7bc920473dfe5a28da884a28fa9d
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 32ef2c05fcde7cfff8a0f3cb8aef19dd
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,219 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!1 &4020116641700429774
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 8446312744501130134}
|
|
||||||
- component: {fileID: 2909726676418717939}
|
|
||||||
- component: {fileID: 2501524445164724345}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: EventSystem
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!4 &8446312744501130134
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 4020116641700429774}
|
|
||||||
serializedVersion: 2
|
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
||||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
||||||
m_ConstrainProportionsScale: 0
|
|
||||||
m_Children: []
|
|
||||||
m_Father: {fileID: 8978384765604412142}
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!114 &2909726676418717939
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 4020116641700429774}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.EventSystems.EventSystem
|
|
||||||
m_FirstSelected: {fileID: 0}
|
|
||||||
m_sendNavigationEvents: 1
|
|
||||||
m_DragThreshold: 10
|
|
||||||
--- !u!114 &2501524445164724345
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 4020116641700429774}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 01614664b831546d2ae94a42149d80ac, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier: Unity.InputSystem::UnityEngine.InputSystem.UI.InputSystemUIInputModule
|
|
||||||
m_SendPointerHoverToParent: 1
|
|
||||||
m_MoveRepeatDelay: 0.5
|
|
||||||
m_MoveRepeatRate: 0.1
|
|
||||||
m_XRTrackingOrigin: {fileID: 0}
|
|
||||||
m_ActionsAsset: {fileID: -944628639613478452, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
|
|
||||||
m_PointAction: {fileID: -1654692200621890270, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
|
|
||||||
m_MoveAction: {fileID: -8784545083839296357, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
|
|
||||||
m_SubmitAction: {fileID: 392368643174621059, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
|
|
||||||
m_CancelAction: {fileID: 7727032971491509709, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
|
|
||||||
m_LeftClickAction: {fileID: 3001919216989983466, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
|
|
||||||
m_MiddleClickAction: {fileID: -2185481485913320682, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
|
|
||||||
m_RightClickAction: {fileID: -4090225696740746782, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
|
|
||||||
m_ScrollWheelAction: {fileID: 6240969308177333660, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
|
|
||||||
m_TrackedDevicePositionAction: {fileID: 6564999863303420839, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
|
|
||||||
m_TrackedDeviceOrientationAction: {fileID: 7970375526676320489, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
|
|
||||||
m_DeselectOnBackgroundClick: 1
|
|
||||||
m_PointerBehavior: 0
|
|
||||||
m_CursorLockBehavior: 0
|
|
||||||
m_ScrollDeltaPerTick: 6
|
|
||||||
--- !u!1 &6099115053225634464
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 8978384765604412142}
|
|
||||||
- component: {fileID: 374984699890489845}
|
|
||||||
- component: {fileID: 4075496901397588323}
|
|
||||||
- component: {fileID: 7468744325105696788}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: Camera
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!4 &8978384765604412142
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 6099115053225634464}
|
|
||||||
serializedVersion: 2
|
|
||||||
m_LocalRotation: {x: 0.19427353, y: 0.44825727, z: -0.100474596, w: 0.8667341}
|
|
||||||
m_LocalPosition: {x: -223.01709, y: 389.89224, z: -363.3137}
|
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
||||||
m_ConstrainProportionsScale: 0
|
|
||||||
m_Children:
|
|
||||||
- {fileID: 8446312744501130134}
|
|
||||||
m_Father: {fileID: 0}
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!20 &374984699890489845
|
|
||||||
Camera:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 6099115053225634464}
|
|
||||||
m_Enabled: 1
|
|
||||||
serializedVersion: 2
|
|
||||||
m_ClearFlags: 1
|
|
||||||
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
|
|
||||||
m_projectionMatrixMode: 1
|
|
||||||
m_GateFitMode: 2
|
|
||||||
m_FOVAxisMode: 0
|
|
||||||
m_Iso: 200
|
|
||||||
m_ShutterSpeed: 0.005
|
|
||||||
m_Aperture: 16
|
|
||||||
m_FocusDistance: 10
|
|
||||||
m_FocalLength: 50
|
|
||||||
m_BladeCount: 5
|
|
||||||
m_Curvature: {x: 2, y: 11}
|
|
||||||
m_BarrelClipping: 0.25
|
|
||||||
m_Anamorphism: 0
|
|
||||||
m_SensorSize: {x: 36, y: 24}
|
|
||||||
m_LensShift: {x: 0, y: 0}
|
|
||||||
m_NormalizedViewPortRect:
|
|
||||||
serializedVersion: 2
|
|
||||||
x: 0
|
|
||||||
y: 0
|
|
||||||
width: 1
|
|
||||||
height: 1
|
|
||||||
near clip plane: 0.3
|
|
||||||
far clip plane: 1000
|
|
||||||
field of view: 60
|
|
||||||
orthographic: 0
|
|
||||||
orthographic size: 5
|
|
||||||
m_Depth: 0
|
|
||||||
m_CullingMask:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 4294967295
|
|
||||||
m_RenderingPath: -1
|
|
||||||
m_TargetTexture: {fileID: 0}
|
|
||||||
m_TargetDisplay: 0
|
|
||||||
m_TargetEye: 3
|
|
||||||
m_HDR: 1
|
|
||||||
m_AllowMSAA: 1
|
|
||||||
m_AllowDynamicResolution: 0
|
|
||||||
m_ForceIntoRT: 0
|
|
||||||
m_OcclusionCulling: 1
|
|
||||||
m_StereoConvergence: 10
|
|
||||||
m_StereoSeparation: 0.022
|
|
||||||
--- !u!81 &4075496901397588323
|
|
||||||
AudioListener:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 6099115053225634464}
|
|
||||||
m_Enabled: 1
|
|
||||||
--- !u!114 &7468744325105696788
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 6099115053225634464}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: a79441f348de89743a2939f4d699eac1, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Runtime::UnityEngine.Rendering.Universal.UniversalAdditionalCameraData
|
|
||||||
m_RenderShadows: 1
|
|
||||||
m_RequiresDepthTextureOption: 2
|
|
||||||
m_RequiresOpaqueTextureOption: 2
|
|
||||||
m_CameraType: 0
|
|
||||||
m_Cameras: []
|
|
||||||
m_RendererIndex: -1
|
|
||||||
m_VolumeLayerMask:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 1
|
|
||||||
m_VolumeTrigger: {fileID: 0}
|
|
||||||
m_VolumeFrameworkUpdateModeOption: 2
|
|
||||||
m_RenderPostProcessing: 0
|
|
||||||
m_Antialiasing: 0
|
|
||||||
m_AntialiasingQuality: 2
|
|
||||||
m_StopNaN: 0
|
|
||||||
m_Dithering: 0
|
|
||||||
m_ClearDepth: 1
|
|
||||||
m_AllowXRRendering: 1
|
|
||||||
m_AllowHDROutput: 1
|
|
||||||
m_UseScreenCoordOverride: 0
|
|
||||||
m_ScreenSizeOverride: {x: 0, y: 0, z: 0, w: 0}
|
|
||||||
m_ScreenCoordScaleBias: {x: 0, y: 0, z: 0, w: 0}
|
|
||||||
m_RequiresDepthTexture: 0
|
|
||||||
m_RequiresColorTexture: 0
|
|
||||||
m_TaaSettings:
|
|
||||||
m_Quality: 3
|
|
||||||
m_FrameInfluence: 0.1
|
|
||||||
m_JitterScale: 1
|
|
||||||
m_MipBias: 0
|
|
||||||
m_VarianceClampScale: 0.9
|
|
||||||
m_ContrastAdaptiveSharpening: 0
|
|
||||||
m_Version: 2
|
|
||||||
@@ -119,6 +119,52 @@ NavMeshSettings:
|
|||||||
debug:
|
debug:
|
||||||
m_Flags: 0
|
m_Flags: 0
|
||||||
m_NavMeshData: {fileID: 0}
|
m_NavMeshData: {fileID: 0}
|
||||||
|
--- !u!1 &828922429
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 828922431}
|
||||||
|
- component: {fileID: 828922430}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: SkipToGameplay
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!114 &828922430
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 828922429}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: affd42e82c2547a5af4604b574a24f59, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier: Assembly-CSharp::Code.App.Debug.GoToState
|
||||||
|
gotoState: 4
|
||||||
|
allowedState: -1
|
||||||
|
--- !u!4 &828922431
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 828922429}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: -0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!1 &1253837927
|
--- !u!1 &1253837927
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -168,3 +214,4 @@ SceneRoots:
|
|||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
m_Roots:
|
m_Roots:
|
||||||
- {fileID: 1253837929}
|
- {fileID: 1253837929}
|
||||||
|
- {fileID: 828922431}
|
||||||
@@ -1,890 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!29 &1
|
|
||||||
OcclusionCullingSettings:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
serializedVersion: 2
|
|
||||||
m_OcclusionBakeSettings:
|
|
||||||
smallestOccluder: 5
|
|
||||||
smallestHole: 0.25
|
|
||||||
backfaceThreshold: 100
|
|
||||||
m_SceneGUID: 00000000000000000000000000000000
|
|
||||||
m_OcclusionCullingData: {fileID: 0}
|
|
||||||
--- !u!104 &2
|
|
||||||
RenderSettings:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
serializedVersion: 10
|
|
||||||
m_Fog: 0
|
|
||||||
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
|
||||||
m_FogMode: 3
|
|
||||||
m_FogDensity: 0.01
|
|
||||||
m_LinearFogStart: 0
|
|
||||||
m_LinearFogEnd: 300
|
|
||||||
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
|
|
||||||
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
|
|
||||||
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
|
|
||||||
m_AmbientIntensity: 1
|
|
||||||
m_AmbientMode: 0
|
|
||||||
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
|
|
||||||
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
|
|
||||||
m_HaloStrength: 0.5
|
|
||||||
m_FlareStrength: 1
|
|
||||||
m_FlareFadeSpeed: 3
|
|
||||||
m_HaloTexture: {fileID: 0}
|
|
||||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
|
||||||
m_DefaultReflectionMode: 0
|
|
||||||
m_DefaultReflectionResolution: 128
|
|
||||||
m_ReflectionBounces: 1
|
|
||||||
m_ReflectionIntensity: 1
|
|
||||||
m_CustomReflection: {fileID: 0}
|
|
||||||
m_Sun: {fileID: 0}
|
|
||||||
m_UseRadianceAmbientProbe: 0
|
|
||||||
--- !u!157 &3
|
|
||||||
LightmapSettings:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
serializedVersion: 13
|
|
||||||
m_BakeOnSceneLoad: 0
|
|
||||||
m_GISettings:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_BounceScale: 1
|
|
||||||
m_IndirectOutputScale: 1
|
|
||||||
m_AlbedoBoost: 1
|
|
||||||
m_EnvironmentLightingMode: 0
|
|
||||||
m_EnableBakedLightmaps: 1
|
|
||||||
m_EnableRealtimeLightmaps: 0
|
|
||||||
m_LightmapEditorSettings:
|
|
||||||
serializedVersion: 12
|
|
||||||
m_Resolution: 2
|
|
||||||
m_BakeResolution: 40
|
|
||||||
m_AtlasSize: 1024
|
|
||||||
m_AO: 0
|
|
||||||
m_AOMaxDistance: 1
|
|
||||||
m_CompAOExponent: 1
|
|
||||||
m_CompAOExponentDirect: 0
|
|
||||||
m_ExtractAmbientOcclusion: 0
|
|
||||||
m_Padding: 2
|
|
||||||
m_LightmapParameters: {fileID: 0}
|
|
||||||
m_LightmapsBakeMode: 1
|
|
||||||
m_TextureCompression: 1
|
|
||||||
m_ReflectionCompression: 2
|
|
||||||
m_MixedBakeMode: 2
|
|
||||||
m_BakeBackend: 1
|
|
||||||
m_PVRSampling: 1
|
|
||||||
m_PVRDirectSampleCount: 32
|
|
||||||
m_PVRSampleCount: 512
|
|
||||||
m_PVRBounces: 2
|
|
||||||
m_PVREnvironmentSampleCount: 256
|
|
||||||
m_PVREnvironmentReferencePointCount: 2048
|
|
||||||
m_PVRFilteringMode: 1
|
|
||||||
m_PVRDenoiserTypeDirect: 1
|
|
||||||
m_PVRDenoiserTypeIndirect: 1
|
|
||||||
m_PVRDenoiserTypeAO: 1
|
|
||||||
m_PVRFilterTypeDirect: 0
|
|
||||||
m_PVRFilterTypeIndirect: 0
|
|
||||||
m_PVRFilterTypeAO: 0
|
|
||||||
m_PVREnvironmentMIS: 1
|
|
||||||
m_PVRCulling: 1
|
|
||||||
m_PVRFilteringGaussRadiusDirect: 1
|
|
||||||
m_PVRFilteringGaussRadiusIndirect: 1
|
|
||||||
m_PVRFilteringGaussRadiusAO: 1
|
|
||||||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
|
||||||
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
|
||||||
m_PVRFilteringAtrousPositionSigmaAO: 1
|
|
||||||
m_ExportTrainingData: 0
|
|
||||||
m_TrainingDataDestination: TrainingData
|
|
||||||
m_LightProbeSampleCountMultiplier: 4
|
|
||||||
m_LightingDataAsset: {fileID: 20201, guid: 0000000000000000f000000000000000, type: 0}
|
|
||||||
m_LightingSettings: {fileID: 0}
|
|
||||||
--- !u!196 &4
|
|
||||||
NavMeshSettings:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_BuildSettings:
|
|
||||||
serializedVersion: 3
|
|
||||||
agentTypeID: 0
|
|
||||||
agentRadius: 0.5
|
|
||||||
agentHeight: 2
|
|
||||||
agentSlope: 45
|
|
||||||
agentClimb: 0.4
|
|
||||||
ledgeDropHeight: 0
|
|
||||||
maxJumpAcrossDistance: 0
|
|
||||||
minRegionArea: 2
|
|
||||||
manualCellSize: 0
|
|
||||||
cellSize: 0.16666667
|
|
||||||
manualTileSize: 0
|
|
||||||
tileSize: 256
|
|
||||||
buildHeightMesh: 0
|
|
||||||
maxJobWorkers: 0
|
|
||||||
preserveTilesOutsideBounds: 0
|
|
||||||
debug:
|
|
||||||
m_Flags: 0
|
|
||||||
m_NavMeshData: {fileID: 0}
|
|
||||||
--- !u!1 &55880351
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 55880352}
|
|
||||||
- component: {fileID: 55880355}
|
|
||||||
- component: {fileID: 55880354}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: Cube
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!4 &55880352
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 55880351}
|
|
||||||
serializedVersion: 2
|
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
||||||
m_LocalPosition: {x: 0, y: 0.4, z: 0.4}
|
|
||||||
m_LocalScale: {x: 0.5, y: 0.2, z: 0.4}
|
|
||||||
m_ConstrainProportionsScale: 0
|
|
||||||
m_Children: []
|
|
||||||
m_Father: {fileID: 1533098598}
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!23 &55880354
|
|
||||||
MeshRenderer:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 55880351}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_CastShadows: 1
|
|
||||||
m_ReceiveShadows: 1
|
|
||||||
m_DynamicOccludee: 1
|
|
||||||
m_StaticShadowCaster: 0
|
|
||||||
m_MotionVectors: 1
|
|
||||||
m_LightProbeUsage: 1
|
|
||||||
m_ReflectionProbeUsage: 1
|
|
||||||
m_RayTracingMode: 2
|
|
||||||
m_RayTraceProcedural: 0
|
|
||||||
m_RayTracingAccelStructBuildFlagsOverride: 0
|
|
||||||
m_RayTracingAccelStructBuildFlags: 1
|
|
||||||
m_SmallMeshCulling: 1
|
|
||||||
m_ForceMeshLod: -1
|
|
||||||
m_MeshLodSelectionBias: 0
|
|
||||||
m_RenderingLayerMask: 1
|
|
||||||
m_RendererPriority: 0
|
|
||||||
m_Materials:
|
|
||||||
- {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, type: 2}
|
|
||||||
m_StaticBatchInfo:
|
|
||||||
firstSubMesh: 0
|
|
||||||
subMeshCount: 0
|
|
||||||
m_StaticBatchRoot: {fileID: 0}
|
|
||||||
m_ProbeAnchor: {fileID: 0}
|
|
||||||
m_LightProbeVolumeOverride: {fileID: 0}
|
|
||||||
m_ScaleInLightmap: 1
|
|
||||||
m_ReceiveGI: 1
|
|
||||||
m_PreserveUVs: 0
|
|
||||||
m_IgnoreNormalsForChartDetection: 0
|
|
||||||
m_ImportantGI: 0
|
|
||||||
m_StitchLightmapSeams: 1
|
|
||||||
m_SelectedEditorRenderState: 3
|
|
||||||
m_MinimumChartSize: 4
|
|
||||||
m_AutoUVMaxDistance: 0.5
|
|
||||||
m_AutoUVMaxAngle: 89
|
|
||||||
m_LightmapParameters: {fileID: 0}
|
|
||||||
m_GlobalIlluminationMeshLod: 0
|
|
||||||
m_SortingLayerID: 0
|
|
||||||
m_SortingLayer: 0
|
|
||||||
m_SortingOrder: 0
|
|
||||||
m_AdditionalVertexStreams: {fileID: 0}
|
|
||||||
--- !u!33 &55880355
|
|
||||||
MeshFilter:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 55880351}
|
|
||||||
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
|
||||||
--- !u!1 &453575297
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 453575298}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: CameraTarget
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!4 &453575298
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 453575297}
|
|
||||||
serializedVersion: 2
|
|
||||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
|
||||||
m_LocalPosition: {x: -0, y: 1.395, z: 0.59}
|
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
||||||
m_ConstrainProportionsScale: 0
|
|
||||||
m_Children: []
|
|
||||||
m_Father: {fileID: 1696686254}
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!1 &481156066
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 481156070}
|
|
||||||
- component: {fileID: 481156069}
|
|
||||||
- component: {fileID: 481156068}
|
|
||||||
- component: {fileID: 481156067}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: Ground
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!64 &481156067
|
|
||||||
MeshCollider:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 481156066}
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_IncludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_ExcludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_LayerOverridePriority: 0
|
|
||||||
m_IsTrigger: 0
|
|
||||||
m_ProvidesContacts: 0
|
|
||||||
m_Enabled: 1
|
|
||||||
serializedVersion: 5
|
|
||||||
m_Convex: 0
|
|
||||||
m_CookingOptions: 30
|
|
||||||
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
|
||||||
--- !u!23 &481156068
|
|
||||||
MeshRenderer:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 481156066}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_CastShadows: 1
|
|
||||||
m_ReceiveShadows: 1
|
|
||||||
m_DynamicOccludee: 1
|
|
||||||
m_StaticShadowCaster: 0
|
|
||||||
m_MotionVectors: 1
|
|
||||||
m_LightProbeUsage: 1
|
|
||||||
m_ReflectionProbeUsage: 1
|
|
||||||
m_RayTracingMode: 2
|
|
||||||
m_RayTraceProcedural: 0
|
|
||||||
m_RayTracingAccelStructBuildFlagsOverride: 0
|
|
||||||
m_RayTracingAccelStructBuildFlags: 1
|
|
||||||
m_SmallMeshCulling: 1
|
|
||||||
m_ForceMeshLod: -1
|
|
||||||
m_MeshLodSelectionBias: 0
|
|
||||||
m_RenderingLayerMask: 1
|
|
||||||
m_RendererPriority: 0
|
|
||||||
m_Materials:
|
|
||||||
- {fileID: 2100000, guid: 115fc1c80dafb04e0a00ffed85cfb715, type: 2}
|
|
||||||
m_StaticBatchInfo:
|
|
||||||
firstSubMesh: 0
|
|
||||||
subMeshCount: 0
|
|
||||||
m_StaticBatchRoot: {fileID: 0}
|
|
||||||
m_ProbeAnchor: {fileID: 0}
|
|
||||||
m_LightProbeVolumeOverride: {fileID: 0}
|
|
||||||
m_ScaleInLightmap: 1
|
|
||||||
m_ReceiveGI: 1
|
|
||||||
m_PreserveUVs: 0
|
|
||||||
m_IgnoreNormalsForChartDetection: 0
|
|
||||||
m_ImportantGI: 0
|
|
||||||
m_StitchLightmapSeams: 1
|
|
||||||
m_SelectedEditorRenderState: 3
|
|
||||||
m_MinimumChartSize: 4
|
|
||||||
m_AutoUVMaxDistance: 0.5
|
|
||||||
m_AutoUVMaxAngle: 89
|
|
||||||
m_LightmapParameters: {fileID: 0}
|
|
||||||
m_GlobalIlluminationMeshLod: 0
|
|
||||||
m_SortingLayerID: 0
|
|
||||||
m_SortingLayer: 0
|
|
||||||
m_SortingOrder: 0
|
|
||||||
m_AdditionalVertexStreams: {fileID: 0}
|
|
||||||
--- !u!33 &481156069
|
|
||||||
MeshFilter:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 481156066}
|
|
||||||
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
|
||||||
--- !u!4 &481156070
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 481156066}
|
|
||||||
serializedVersion: 2
|
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
||||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
|
||||||
m_LocalScale: {x: 100, y: 100, z: 100}
|
|
||||||
m_ConstrainProportionsScale: 0
|
|
||||||
m_Children: []
|
|
||||||
m_Father: {fileID: 0}
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!1 &678700801
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 678700802}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: Mesh
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!4 &678700802
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 678700801}
|
|
||||||
serializedVersion: 2
|
|
||||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
|
||||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
||||||
m_ConstrainProportionsScale: 0
|
|
||||||
m_Children:
|
|
||||||
- {fileID: 1533098598}
|
|
||||||
m_Father: {fileID: 1696686254}
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!1 &1376862591
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 1376862595}
|
|
||||||
- component: {fileID: 1376862594}
|
|
||||||
- component: {fileID: 1376862593}
|
|
||||||
- component: {fileID: 1376862592}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: Wall
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!65 &1376862592
|
|
||||||
BoxCollider:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1376862591}
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_IncludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_ExcludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_LayerOverridePriority: 0
|
|
||||||
m_IsTrigger: 0
|
|
||||||
m_ProvidesContacts: 0
|
|
||||||
m_Enabled: 1
|
|
||||||
serializedVersion: 3
|
|
||||||
m_Size: {x: 1, y: 1, z: 1}
|
|
||||||
m_Center: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!23 &1376862593
|
|
||||||
MeshRenderer:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1376862591}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_CastShadows: 1
|
|
||||||
m_ReceiveShadows: 1
|
|
||||||
m_DynamicOccludee: 1
|
|
||||||
m_StaticShadowCaster: 0
|
|
||||||
m_MotionVectors: 1
|
|
||||||
m_LightProbeUsage: 1
|
|
||||||
m_ReflectionProbeUsage: 1
|
|
||||||
m_RayTracingMode: 2
|
|
||||||
m_RayTraceProcedural: 0
|
|
||||||
m_RayTracingAccelStructBuildFlagsOverride: 0
|
|
||||||
m_RayTracingAccelStructBuildFlags: 1
|
|
||||||
m_SmallMeshCulling: 1
|
|
||||||
m_ForceMeshLod: -1
|
|
||||||
m_MeshLodSelectionBias: 0
|
|
||||||
m_RenderingLayerMask: 1
|
|
||||||
m_RendererPriority: 0
|
|
||||||
m_Materials:
|
|
||||||
- {fileID: 2100000, guid: b407164ea2464a05a97202efff71afc6, type: 2}
|
|
||||||
m_StaticBatchInfo:
|
|
||||||
firstSubMesh: 0
|
|
||||||
subMeshCount: 0
|
|
||||||
m_StaticBatchRoot: {fileID: 0}
|
|
||||||
m_ProbeAnchor: {fileID: 0}
|
|
||||||
m_LightProbeVolumeOverride: {fileID: 0}
|
|
||||||
m_ScaleInLightmap: 1
|
|
||||||
m_ReceiveGI: 1
|
|
||||||
m_PreserveUVs: 0
|
|
||||||
m_IgnoreNormalsForChartDetection: 0
|
|
||||||
m_ImportantGI: 0
|
|
||||||
m_StitchLightmapSeams: 1
|
|
||||||
m_SelectedEditorRenderState: 3
|
|
||||||
m_MinimumChartSize: 4
|
|
||||||
m_AutoUVMaxDistance: 0.5
|
|
||||||
m_AutoUVMaxAngle: 89
|
|
||||||
m_LightmapParameters: {fileID: 0}
|
|
||||||
m_GlobalIlluminationMeshLod: 0
|
|
||||||
m_SortingLayerID: 0
|
|
||||||
m_SortingLayer: 0
|
|
||||||
m_SortingOrder: 0
|
|
||||||
m_AdditionalVertexStreams: {fileID: 0}
|
|
||||||
--- !u!33 &1376862594
|
|
||||||
MeshFilter:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1376862591}
|
|
||||||
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
|
||||||
--- !u!4 &1376862595
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1376862591}
|
|
||||||
serializedVersion: 2
|
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
||||||
m_LocalPosition: {x: -10, y: 3, z: 0}
|
|
||||||
m_LocalScale: {x: 2, y: 6, z: 10}
|
|
||||||
m_ConstrainProportionsScale: 0
|
|
||||||
m_Children: []
|
|
||||||
m_Father: {fileID: 0}
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!1 &1533098597
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 1533098598}
|
|
||||||
- component: {fileID: 1533098600}
|
|
||||||
- component: {fileID: 1533098599}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: Capsule
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!4 &1533098598
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1533098597}
|
|
||||||
serializedVersion: 2
|
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
||||||
m_LocalPosition: {x: 0, y: 1, z: 0}
|
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
||||||
m_ConstrainProportionsScale: 0
|
|
||||||
m_Children:
|
|
||||||
- {fileID: 55880352}
|
|
||||||
m_Father: {fileID: 678700802}
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!23 &1533098599
|
|
||||||
MeshRenderer:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1533098597}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_CastShadows: 1
|
|
||||||
m_ReceiveShadows: 1
|
|
||||||
m_DynamicOccludee: 1
|
|
||||||
m_StaticShadowCaster: 0
|
|
||||||
m_MotionVectors: 1
|
|
||||||
m_LightProbeUsage: 1
|
|
||||||
m_ReflectionProbeUsage: 1
|
|
||||||
m_RayTracingMode: 2
|
|
||||||
m_RayTraceProcedural: 0
|
|
||||||
m_RayTracingAccelStructBuildFlagsOverride: 0
|
|
||||||
m_RayTracingAccelStructBuildFlags: 1
|
|
||||||
m_SmallMeshCulling: 1
|
|
||||||
m_ForceMeshLod: -1
|
|
||||||
m_MeshLodSelectionBias: 0
|
|
||||||
m_RenderingLayerMask: 1
|
|
||||||
m_RendererPriority: 0
|
|
||||||
m_Materials:
|
|
||||||
- {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, type: 2}
|
|
||||||
m_StaticBatchInfo:
|
|
||||||
firstSubMesh: 0
|
|
||||||
subMeshCount: 0
|
|
||||||
m_StaticBatchRoot: {fileID: 0}
|
|
||||||
m_ProbeAnchor: {fileID: 0}
|
|
||||||
m_LightProbeVolumeOverride: {fileID: 0}
|
|
||||||
m_ScaleInLightmap: 1
|
|
||||||
m_ReceiveGI: 1
|
|
||||||
m_PreserveUVs: 0
|
|
||||||
m_IgnoreNormalsForChartDetection: 0
|
|
||||||
m_ImportantGI: 0
|
|
||||||
m_StitchLightmapSeams: 1
|
|
||||||
m_SelectedEditorRenderState: 3
|
|
||||||
m_MinimumChartSize: 4
|
|
||||||
m_AutoUVMaxDistance: 0.5
|
|
||||||
m_AutoUVMaxAngle: 89
|
|
||||||
m_LightmapParameters: {fileID: 0}
|
|
||||||
m_GlobalIlluminationMeshLod: 0
|
|
||||||
m_SortingLayerID: 0
|
|
||||||
m_SortingLayer: 0
|
|
||||||
m_SortingOrder: 0
|
|
||||||
m_AdditionalVertexStreams: {fileID: 0}
|
|
||||||
--- !u!33 &1533098600
|
|
||||||
MeshFilter:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1533098597}
|
|
||||||
m_Mesh: {fileID: 10208, guid: 0000000000000000e000000000000000, type: 0}
|
|
||||||
--- !u!1 &1543748505
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 1543748509}
|
|
||||||
- component: {fileID: 1543748508}
|
|
||||||
- component: {fileID: 1543748507}
|
|
||||||
- component: {fileID: 1543748506}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: Cube
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!65 &1543748506
|
|
||||||
BoxCollider:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1543748505}
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_IncludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_ExcludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_LayerOverridePriority: 0
|
|
||||||
m_IsTrigger: 0
|
|
||||||
m_ProvidesContacts: 0
|
|
||||||
m_Enabled: 1
|
|
||||||
serializedVersion: 3
|
|
||||||
m_Size: {x: 1, y: 1, z: 1}
|
|
||||||
m_Center: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!23 &1543748507
|
|
||||||
MeshRenderer:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1543748505}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_CastShadows: 1
|
|
||||||
m_ReceiveShadows: 1
|
|
||||||
m_DynamicOccludee: 1
|
|
||||||
m_StaticShadowCaster: 0
|
|
||||||
m_MotionVectors: 1
|
|
||||||
m_LightProbeUsage: 1
|
|
||||||
m_ReflectionProbeUsage: 1
|
|
||||||
m_RayTracingMode: 2
|
|
||||||
m_RayTraceProcedural: 0
|
|
||||||
m_RayTracingAccelStructBuildFlagsOverride: 0
|
|
||||||
m_RayTracingAccelStructBuildFlags: 1
|
|
||||||
m_SmallMeshCulling: 1
|
|
||||||
m_ForceMeshLod: -1
|
|
||||||
m_MeshLodSelectionBias: 0
|
|
||||||
m_RenderingLayerMask: 1
|
|
||||||
m_RendererPriority: 0
|
|
||||||
m_Materials:
|
|
||||||
- {fileID: 2100000, guid: b407164ea2464a05a97202efff71afc6, type: 2}
|
|
||||||
m_StaticBatchInfo:
|
|
||||||
firstSubMesh: 0
|
|
||||||
subMeshCount: 0
|
|
||||||
m_StaticBatchRoot: {fileID: 0}
|
|
||||||
m_ProbeAnchor: {fileID: 0}
|
|
||||||
m_LightProbeVolumeOverride: {fileID: 0}
|
|
||||||
m_ScaleInLightmap: 1
|
|
||||||
m_ReceiveGI: 1
|
|
||||||
m_PreserveUVs: 0
|
|
||||||
m_IgnoreNormalsForChartDetection: 0
|
|
||||||
m_ImportantGI: 0
|
|
||||||
m_StitchLightmapSeams: 1
|
|
||||||
m_SelectedEditorRenderState: 3
|
|
||||||
m_MinimumChartSize: 4
|
|
||||||
m_AutoUVMaxDistance: 0.5
|
|
||||||
m_AutoUVMaxAngle: 89
|
|
||||||
m_LightmapParameters: {fileID: 0}
|
|
||||||
m_GlobalIlluminationMeshLod: 0
|
|
||||||
m_SortingLayerID: 0
|
|
||||||
m_SortingLayer: 0
|
|
||||||
m_SortingOrder: 0
|
|
||||||
m_AdditionalVertexStreams: {fileID: 0}
|
|
||||||
--- !u!33 &1543748508
|
|
||||||
MeshFilter:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1543748505}
|
|
||||||
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
|
||||||
--- !u!4 &1543748509
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1543748505}
|
|
||||||
serializedVersion: 2
|
|
||||||
m_LocalRotation: {x: 0.38268343, y: 0, z: 0, w: 0.92387956}
|
|
||||||
m_LocalPosition: {x: 5, y: 0, z: -10}
|
|
||||||
m_LocalScale: {x: 5, y: 5, z: 5}
|
|
||||||
m_ConstrainProportionsScale: 0
|
|
||||||
m_Children: []
|
|
||||||
m_Father: {fileID: 0}
|
|
||||||
m_LocalEulerAnglesHint: {x: 45, y: 0, z: 0}
|
|
||||||
--- !u!1 &1696686253
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 1696686254}
|
|
||||||
- component: {fileID: 1696686255}
|
|
||||||
- component: {fileID: 1696686257}
|
|
||||||
- component: {fileID: 1696686256}
|
|
||||||
- component: {fileID: 1696686258}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: Character
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!4 &1696686254
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1696686253}
|
|
||||||
serializedVersion: 2
|
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
||||||
m_LocalPosition: {x: -0, y: 0, z: -0}
|
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
||||||
m_ConstrainProportionsScale: 0
|
|
||||||
m_Children:
|
|
||||||
- {fileID: 678700802}
|
|
||||||
- {fileID: 453575298}
|
|
||||||
m_Father: {fileID: 0}
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!114 &1696686255
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1696686253}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 9f2cdbe59523ace7ab0d8dfc36b4eb02, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier: Assembly-CSharp::Player
|
|
||||||
customCharacterController: {fileID: 1696686258}
|
|
||||||
cameraFollowPoint: {fileID: 453575298}
|
|
||||||
--- !u!114 &1696686256
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1696686253}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 4d1bc5515e3ab954e80599c538834774, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier: Assembly-CSharp::KinematicCharacterController.KinematicCharacterMotor
|
|
||||||
Capsule: {fileID: 1696686257}
|
|
||||||
CapsuleRadius: 0.5
|
|
||||||
CapsuleHeight: 2
|
|
||||||
CapsuleYOffset: 1
|
|
||||||
CapsulePhysicsMaterial: {fileID: 0}
|
|
||||||
GroundDetectionExtraDistance: 0
|
|
||||||
MaxStableSlopeAngle: 60
|
|
||||||
StableGroundLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 4294967295
|
|
||||||
DiscreteCollisionEvents: 0
|
|
||||||
StepHandling: 1
|
|
||||||
MaxStepHeight: 0.5
|
|
||||||
AllowSteppingWithoutStableGrounding: 0
|
|
||||||
MinRequiredStepDepth: 0.1
|
|
||||||
LedgeAndDenivelationHandling: 1
|
|
||||||
MaxStableDistanceFromLedge: 0.5
|
|
||||||
MaxVelocityForLedgeSnap: 0
|
|
||||||
MaxStableDenivelationAngle: 180
|
|
||||||
InteractiveRigidbodyHandling: 1
|
|
||||||
RigidbodyInteractionType: 0
|
|
||||||
SimulatedCharacterMass: 1
|
|
||||||
PreserveAttachedRigidbodyMomentum: 1
|
|
||||||
HasPlanarConstraint: 0
|
|
||||||
PlanarConstraintAxis: {x: 0, y: 0, z: 1}
|
|
||||||
MaxMovementIterations: 5
|
|
||||||
MaxDecollisionIterations: 1
|
|
||||||
CheckMovementInitialOverlaps: 1
|
|
||||||
KillVelocityWhenExceedMaxMovementIterations: 1
|
|
||||||
KillRemainingMovementWhenExceedMaxMovementIterations: 1
|
|
||||||
--- !u!136 &1696686257
|
|
||||||
CapsuleCollider:
|
|
||||||
m_ObjectHideFlags: 8
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1696686253}
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_IncludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_ExcludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_LayerOverridePriority: 0
|
|
||||||
m_IsTrigger: 0
|
|
||||||
m_ProvidesContacts: 0
|
|
||||||
m_Enabled: 1
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Radius: 0.5
|
|
||||||
m_Height: 2
|
|
||||||
m_Direction: 1
|
|
||||||
m_Center: {x: 0, y: 1, z: 0}
|
|
||||||
--- !u!114 &1696686258
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1696686253}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: a6f74123648343c498c883d02909b499, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier: Assembly-CSharp::Code.Gameplay.Player.CharacterController
|
|
||||||
motor: {fileID: 1696686256}
|
|
||||||
maxStableMoveSpeed: 8
|
|
||||||
sprintMoveSpeed: 12
|
|
||||||
slideSpeed: 20
|
|
||||||
slideDuration: 0.8
|
|
||||||
slideCooldown: 1.5
|
|
||||||
stableMovementSharpness: 15
|
|
||||||
orientationSharpness: 10
|
|
||||||
jumpSpeed: 10
|
|
||||||
wallClimbSpeedFactor: 0.8
|
|
||||||
minWallClimbSpeed: 9
|
|
||||||
gravity: {x: 0, y: -30, z: 0}
|
|
||||||
--- !u!1 &1959874989
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 1959874991}
|
|
||||||
- component: {fileID: 1959874990}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: SceneScope
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!114 &1959874990
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1959874989}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 3fd1482e4a9dee141aecc5bcd0a4f0f3, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier: Reflex::Reflex.Core.SceneScope
|
|
||||||
--- !u!4 &1959874991
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1959874989}
|
|
||||||
serializedVersion: 2
|
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
||||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
||||||
m_ConstrainProportionsScale: 0
|
|
||||||
m_Children: []
|
|
||||||
m_Father: {fileID: 0}
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!1660057539 &9223372036854775807
|
|
||||||
SceneRoots:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_Roots:
|
|
||||||
- {fileID: 1959874991}
|
|
||||||
- {fileID: 1696686254}
|
|
||||||
- {fileID: 481156070}
|
|
||||||
- {fileID: 1376862595}
|
|
||||||
- {fileID: 1543748509}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: f669a7bf66e9d7f868d912b64e88e3ec
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 2a6b8d1e15a85328cbaff95e3c73cdfd
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
Loaded 100 of 173 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user