场景互动标识tag
This commit is contained in:
parent
e43d0c3b47
commit
b63274f600
@ -93,6 +93,19 @@ TextureImporter:
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites:
|
||||
@ -7388,11 +7401,11 @@ TextureImporter:
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 288
|
||||
y: 112
|
||||
width: 16
|
||||
height: 16
|
||||
alignment: 0
|
||||
pivot: {x: 0.5, y: 0.5}
|
||||
y: 96
|
||||
width: 32
|
||||
height: 32
|
||||
alignment: 9
|
||||
pivot: {x: 0.5, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
outline: []
|
||||
physicsShape: []
|
||||
@ -7404,37 +7417,16 @@ TextureImporter:
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
- serializedVersion: 2
|
||||
name: Tiles_348
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 304
|
||||
y: 112
|
||||
width: 16
|
||||
height: 16
|
||||
alignment: 0
|
||||
pivot: {x: 0.5, y: 0.5}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
outline: []
|
||||
physicsShape: []
|
||||
tessellationDetail: 0
|
||||
bones: []
|
||||
spriteID: 69b37580cf7b339459aa521c1e524a6c
|
||||
internalID: -1152290622
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
- serializedVersion: 2
|
||||
name: Tiles_349
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 320
|
||||
y: 112
|
||||
width: 16
|
||||
height: 16
|
||||
alignment: 0
|
||||
pivot: {x: 0.5, y: 0.5}
|
||||
y: 96
|
||||
width: 32
|
||||
height: 32
|
||||
alignment: 9
|
||||
pivot: {x: 0.5, y: 0}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
outline: []
|
||||
physicsShape: []
|
||||
@ -7446,27 +7438,6 @@ TextureImporter:
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
- serializedVersion: 2
|
||||
name: Tiles_350
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 336
|
||||
y: 112
|
||||
width: 16
|
||||
height: 16
|
||||
alignment: 0
|
||||
pivot: {x: 0.5, y: 0.5}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
outline: []
|
||||
physicsShape: []
|
||||
tessellationDetail: 0
|
||||
bones: []
|
||||
spriteID: 14d2a30b407fb3043a9b2ed95d38755b
|
||||
internalID: -839134773
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
- serializedVersion: 2
|
||||
name: Tiles_351
|
||||
rect:
|
||||
@ -7761,90 +7732,6 @@ TextureImporter:
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
- serializedVersion: 2
|
||||
name: Tiles_365
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 288
|
||||
y: 96
|
||||
width: 16
|
||||
height: 16
|
||||
alignment: 0
|
||||
pivot: {x: 0.5, y: 0.5}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
outline: []
|
||||
physicsShape: []
|
||||
tessellationDetail: 0
|
||||
bones: []
|
||||
spriteID: 7725b45ec9cbe4f4284f86469a9b3e16
|
||||
internalID: -1255046852
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
- serializedVersion: 2
|
||||
name: Tiles_366
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 304
|
||||
y: 96
|
||||
width: 16
|
||||
height: 16
|
||||
alignment: 0
|
||||
pivot: {x: 0.5, y: 0.5}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
outline: []
|
||||
physicsShape: []
|
||||
tessellationDetail: 0
|
||||
bones: []
|
||||
spriteID: f1f74d199fe4c854fa03bd0a56b8ad98
|
||||
internalID: 2105726220
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
- serializedVersion: 2
|
||||
name: Tiles_367
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 320
|
||||
y: 96
|
||||
width: 16
|
||||
height: 16
|
||||
alignment: 0
|
||||
pivot: {x: 0.5, y: 0.5}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
outline: []
|
||||
physicsShape: []
|
||||
tessellationDetail: 0
|
||||
bones: []
|
||||
spriteID: d3f083aa28d776248a1343ea5ba98371
|
||||
internalID: -1045932482
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
- serializedVersion: 2
|
||||
name: Tiles_368
|
||||
rect:
|
||||
serializedVersion: 2
|
||||
x: 336
|
||||
y: 96
|
||||
width: 16
|
||||
height: 16
|
||||
alignment: 0
|
||||
pivot: {x: 0.5, y: 0.5}
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
outline: []
|
||||
physicsShape: []
|
||||
tessellationDetail: 0
|
||||
bones: []
|
||||
spriteID: febba0e9f8c5ff54f9316bd793f8315e
|
||||
internalID: -1193931266
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
- serializedVersion: 2
|
||||
name: Tiles_369
|
||||
rect:
|
||||
|
2589
Assets/Scenes/Persistent.unity
Normal file
2589
Assets/Scenes/Persistent.unity
Normal file
File diff suppressed because it is too large
Load Diff
7
Assets/Scenes/Persistent.unity.meta
Normal file
7
Assets/Scenes/Persistent.unity.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 310b525cbea304443b9997a3462e834d
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
@ -290,6 +290,292 @@ Transform:
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1689193799}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &270754350
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 270754352}
|
||||
- component: {fileID: 270754351}
|
||||
- component: {fileID: 270754353}
|
||||
- component: {fileID: 270754354}
|
||||
m_Layer: 0
|
||||
m_Name: Tiles_347
|
||||
m_TagString: Interactable
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!212 &270754351
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 270754350}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 0
|
||||
m_ReceiveShadows: 0
|
||||
m_DynamicOccludee: 1
|
||||
m_StaticShadowCaster: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 0
|
||||
m_RayTraceProcedural: 0
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
|
||||
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: 0
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 1485242247
|
||||
m_SortingLayer: 2
|
||||
m_SortingOrder: 0
|
||||
m_Sprite: {fileID: -1438230116, guid: d4dcc96007437b741bd8f3a3c7e02b45, type: 3}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_FlipX: 0
|
||||
m_FlipY: 0
|
||||
m_DrawMode: 0
|
||||
m_Size: {x: 2, y: 2}
|
||||
m_AdaptiveModeThreshold: 0.5
|
||||
m_SpriteTileMode: 0
|
||||
m_WasSpriteAssigned: 1
|
||||
m_MaskInteraction: 0
|
||||
m_SpriteSortPoint: 0
|
||||
--- !u!4 &270754352
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 270754350}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 3.4589212, y: -0.076980114, 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!61 &270754353
|
||||
BoxCollider2D:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 270754350}
|
||||
m_Enabled: 1
|
||||
m_Density: 1
|
||||
m_Material: {fileID: 0}
|
||||
m_IncludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_ExcludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_LayerOverridePriority: 0
|
||||
m_ForceSendLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_ForceReceiveLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_ContactCaptureLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_CallbackLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_IsTrigger: 1
|
||||
m_UsedByEffector: 0
|
||||
m_UsedByComposite: 0
|
||||
m_Offset: {x: 0.00000023841858, y: 0.8852928}
|
||||
m_SpriteTilingProperty:
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
pivot: {x: 0.5, y: 0}
|
||||
oldSize: {x: 2, y: 2}
|
||||
newSize: {x: 2, y: 2}
|
||||
adaptiveTilingThreshold: 0.5
|
||||
drawMode: 0
|
||||
adaptiveTiling: 0
|
||||
m_AutoTiling: 0
|
||||
serializedVersion: 2
|
||||
m_Size: {x: 1.8967638, y: 1.6444064}
|
||||
m_EdgeRadius: 0
|
||||
--- !u!114 &270754354
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 270754350}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 2160c1f9259fdaf428081611ce00b085, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1 &302490244
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 302490248}
|
||||
- component: {fileID: 302490247}
|
||||
- component: {fileID: 302490246}
|
||||
- component: {fileID: 302490245}
|
||||
m_Layer: 0
|
||||
m_Name: Teleport
|
||||
m_TagString: Interactable
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &302490245
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 302490244}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: e2b97be3911ecb346a2537875d219874, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!61 &302490246
|
||||
BoxCollider2D:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 302490244}
|
||||
m_Enabled: 1
|
||||
m_Density: 1
|
||||
m_Material: {fileID: 0}
|
||||
m_IncludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_ExcludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_LayerOverridePriority: 0
|
||||
m_ForceSendLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_ForceReceiveLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_ContactCaptureLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_CallbackLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_IsTrigger: 1
|
||||
m_UsedByEffector: 0
|
||||
m_UsedByComposite: 0
|
||||
m_Offset: {x: 0.00000023841858, y: 0.8852928}
|
||||
m_SpriteTilingProperty:
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
pivot: {x: 0.5, y: 0}
|
||||
oldSize: {x: 2, y: 2}
|
||||
newSize: {x: 2, y: 2}
|
||||
adaptiveTilingThreshold: 0.5
|
||||
drawMode: 0
|
||||
adaptiveTiling: 0
|
||||
m_AutoTiling: 0
|
||||
serializedVersion: 2
|
||||
m_Size: {x: 1.8967638, y: 1.6444064}
|
||||
m_EdgeRadius: 0
|
||||
--- !u!212 &302490247
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 302490244}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 0
|
||||
m_ReceiveShadows: 0
|
||||
m_DynamicOccludee: 1
|
||||
m_StaticShadowCaster: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 0
|
||||
m_RayTraceProcedural: 0
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
|
||||
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: 0
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 1485242247
|
||||
m_SortingLayer: 2
|
||||
m_SortingOrder: 0
|
||||
m_Sprite: {fileID: 399302793, guid: d4dcc96007437b741bd8f3a3c7e02b45, type: 3}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_FlipX: 0
|
||||
m_FlipY: 0
|
||||
m_DrawMode: 0
|
||||
m_Size: {x: 2, y: 2}
|
||||
m_AdaptiveModeThreshold: 0.5
|
||||
m_SpriteTileMode: 0
|
||||
m_WasSpriteAssigned: 1
|
||||
m_MaskInteraction: 0
|
||||
m_SpriteSortPoint: 0
|
||||
--- !u!4 &302490248
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 302490244}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 16.98, y: 3.3, 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 &630648961
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -3079,7 +3365,7 @@ Tilemap:
|
||||
second:
|
||||
serializedVersion: 2
|
||||
m_TileIndex: 19
|
||||
m_TileSpriteIndex: 2
|
||||
m_TileSpriteIndex: 22
|
||||
m_TileMatrixIndex: 0
|
||||
m_TileColorIndex: 0
|
||||
m_TileObjectToInstantiateIndex: 65535
|
||||
@ -3402,8 +3688,8 @@ Tilemap:
|
||||
m_Data: {fileID: 2089796135, guid: d4dcc96007437b741bd8f3a3c7e02b45, type: 3}
|
||||
- m_RefCount: 5
|
||||
m_Data: {fileID: -1293258186, guid: d4dcc96007437b741bd8f3a3c7e02b45, type: 3}
|
||||
- m_RefCount: 1
|
||||
m_Data: {fileID: 1417679653, guid: d4dcc96007437b741bd8f3a3c7e02b45, type: 3}
|
||||
- m_RefCount: 0
|
||||
m_Data: {fileID: 0}
|
||||
- m_RefCount: 31
|
||||
m_Data: {fileID: 49690607, guid: d4dcc96007437b741bd8f3a3c7e02b45, type: 3}
|
||||
- m_RefCount: 6
|
||||
@ -3442,6 +3728,8 @@ Tilemap:
|
||||
m_Data: {fileID: -1215930277, guid: d4dcc96007437b741bd8f3a3c7e02b45, type: 3}
|
||||
- m_RefCount: 82
|
||||
m_Data: {fileID: 928532224, guid: d4dcc96007437b741bd8f3a3c7e02b45, type: 3}
|
||||
- m_RefCount: 1
|
||||
m_Data: {fileID: 1417679653, guid: d4dcc96007437b741bd8f3a3c7e02b45, type: 3}
|
||||
m_TileMatrixArray:
|
||||
- m_RefCount: 289
|
||||
m_Data:
|
||||
@ -5004,7 +5292,7 @@ Tilemap:
|
||||
- {fileID: 1369434452, guid: d4dcc96007437b741bd8f3a3c7e02b45, type: 3}
|
||||
- {fileID: -714309378, guid: d4dcc96007437b741bd8f3a3c7e02b45, type: 3}
|
||||
- {fileID: -1306249692, guid: d4dcc96007437b741bd8f3a3c7e02b45, type: 3}
|
||||
m_AnimationSpeed: 7.0000005
|
||||
m_AnimationSpeed: 7
|
||||
m_AnimationTimeOffset: 0
|
||||
m_Flags: 0
|
||||
- first: {x: 7, y: 0, z: 0}
|
||||
@ -5037,7 +5325,7 @@ Tilemap:
|
||||
- {fileID: 1369434452, guid: d4dcc96007437b741bd8f3a3c7e02b45, type: 3}
|
||||
- {fileID: -714309378, guid: d4dcc96007437b741bd8f3a3c7e02b45, type: 3}
|
||||
- {fileID: -1306249692, guid: d4dcc96007437b741bd8f3a3c7e02b45, type: 3}
|
||||
m_AnimationSpeed: 7.0000005
|
||||
m_AnimationSpeed: 7
|
||||
m_AnimationTimeOffset: 0
|
||||
m_Flags: 0
|
||||
- first: {x: 7, y: 1, z: 0}
|
||||
@ -5224,7 +5512,7 @@ Tilemap:
|
||||
- {fileID: 1051226569, guid: d4dcc96007437b741bd8f3a3c7e02b45, type: 3}
|
||||
- {fileID: 1588357252, guid: d4dcc96007437b741bd8f3a3c7e02b45, type: 3}
|
||||
- {fileID: -1843162688, guid: d4dcc96007437b741bd8f3a3c7e02b45, type: 3}
|
||||
m_AnimationSpeed: 7
|
||||
m_AnimationSpeed: 7.0000005
|
||||
m_AnimationTimeOffset: 0
|
||||
m_Flags: 0
|
||||
- first: {x: 6, y: 7, z: 0}
|
||||
@ -5422,7 +5710,7 @@ Tilemap:
|
||||
- {fileID: 1051226569, guid: d4dcc96007437b741bd8f3a3c7e02b45, type: 3}
|
||||
- {fileID: 1588357252, guid: d4dcc96007437b741bd8f3a3c7e02b45, type: 3}
|
||||
- {fileID: -1843162688, guid: d4dcc96007437b741bd8f3a3c7e02b45, type: 3}
|
||||
m_AnimationSpeed: 7.0000005
|
||||
m_AnimationSpeed: 7
|
||||
m_AnimationTimeOffset: 0
|
||||
m_Flags: 0
|
||||
- first: {x: 6, y: 13, z: 0}
|
||||
@ -5444,7 +5732,7 @@ Tilemap:
|
||||
- {fileID: 1961145818, guid: d4dcc96007437b741bd8f3a3c7e02b45, type: 3}
|
||||
- {fileID: 1737103796, guid: d4dcc96007437b741bd8f3a3c7e02b45, type: 3}
|
||||
- {fileID: -23635172, guid: d4dcc96007437b741bd8f3a3c7e02b45, type: 3}
|
||||
m_AnimationSpeed: 7
|
||||
m_AnimationSpeed: 7.0000005
|
||||
m_AnimationTimeOffset: 0
|
||||
m_Flags: 0
|
||||
- first: {x: 5, y: 14, z: 0}
|
||||
@ -5510,7 +5798,7 @@ Tilemap:
|
||||
- {fileID: 1961145818, guid: d4dcc96007437b741bd8f3a3c7e02b45, type: 3}
|
||||
- {fileID: 1737103796, guid: d4dcc96007437b741bd8f3a3c7e02b45, type: 3}
|
||||
- {fileID: -23635172, guid: d4dcc96007437b741bd8f3a3c7e02b45, type: 3}
|
||||
m_AnimationSpeed: 7.0000005
|
||||
m_AnimationSpeed: 7
|
||||
m_AnimationTimeOffset: 0
|
||||
m_Flags: 0
|
||||
m_TileAssetArray:
|
||||
@ -7221,3 +7509,5 @@ SceneRoots:
|
||||
- {fileID: 630648963}
|
||||
- {fileID: 1689193799}
|
||||
- {fileID: 711782376}
|
||||
- {fileID: 270754352}
|
||||
- {fileID: 302490248}
|
||||
|
11
Assets/Scripts/General/Chest.cs
Normal file
11
Assets/Scripts/General/Chest.cs
Normal file
@ -0,0 +1,11 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Chest : MonoBehaviour, IInteractiable
|
||||
{
|
||||
public void TriggerAction()
|
||||
{
|
||||
Debug.Log("Open");
|
||||
}
|
||||
}
|
11
Assets/Scripts/General/Chest.cs.meta
Normal file
11
Assets/Scripts/General/Chest.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2160c1f9259fdaf428081611ce00b085
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
52
Assets/Scripts/Player/Sign.cs
Normal file
52
Assets/Scripts/Player/Sign.cs
Normal file
@ -0,0 +1,52 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.InputSystem;
|
||||
|
||||
public class Sign : MonoBehaviour
|
||||
{
|
||||
public GameObject signSprite;
|
||||
private bool canPress;//´ò¿ª
|
||||
|
||||
public Transform playerTrans;
|
||||
private PlayerInputControl playerInput;
|
||||
|
||||
private IInteractiable targetItem;
|
||||
private void Update()
|
||||
{
|
||||
signSprite.SetActive(canPress);
|
||||
signSprite.transform.localScale = playerTrans.localScale;
|
||||
|
||||
// playerInput = new PlayerInputControl();
|
||||
// playerInput.Enable();
|
||||
}
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
//playerInput.GamePlayerInput.Confirm.started += OnConfirm;
|
||||
}
|
||||
|
||||
private void OnConfirm(InputAction.CallbackContext context)
|
||||
{
|
||||
if(canPress)
|
||||
{
|
||||
targetItem.TriggerAction();
|
||||
}
|
||||
}
|
||||
|
||||
private void OnTriggerStay2D(Collider2D collision)
|
||||
{
|
||||
if (collision.CompareTag("Interactable"))
|
||||
{
|
||||
canPress = true;
|
||||
targetItem = collision.GetComponent<IInteractiable>();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void OnTriggerExit2D(Collider2D collision)
|
||||
{
|
||||
canPress = false;
|
||||
}
|
||||
}
|
11
Assets/Scripts/Player/Sign.cs.meta
Normal file
11
Assets/Scripts/Player/Sign.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0ba9309d8e528b646adff138d5c09d8e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
8
Assets/Scripts/Transition.meta
Normal file
8
Assets/Scripts/Transition.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fe123fa2ef3b29f49904cb5a4f3f8202
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
18
Assets/Scripts/Transition/SceneLoader.cs
Normal file
18
Assets/Scripts/Transition/SceneLoader.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class SceneLoader : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
11
Assets/Scripts/Transition/SceneLoader.cs.meta
Normal file
11
Assets/Scripts/Transition/SceneLoader.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5084805cb4d969542bd7902dc82b5d30
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
13
Assets/Scripts/Transition/TeleportPoint.cs
Normal file
13
Assets/Scripts/Transition/TeleportPoint.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class TeleportPoint : MonoBehaviour,IInteractiable
|
||||
{
|
||||
public void TriggerAction()
|
||||
{
|
||||
Debug.Log("111");
|
||||
}
|
||||
|
||||
|
||||
}
|
11
Assets/Scripts/Transition/TeleportPoint.cs.meta
Normal file
11
Assets/Scripts/Transition/TeleportPoint.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e2b97be3911ecb346a2537875d219874
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
5
Assets/Scripts/Utilities/IInteractiable.cs
Normal file
5
Assets/Scripts/Utilities/IInteractiable.cs
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
public interface IInteractiable
|
||||
{
|
||||
void TriggerAction();
|
||||
}
|
11
Assets/Scripts/Utilities/IInteractiable.cs.meta
Normal file
11
Assets/Scripts/Utilities/IInteractiable.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7f413f1fbedf03e4096f06b057ed46b8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -71,6 +71,15 @@ public partial class @PlayerInputControl: IInputActionCollection2, IDisposable
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
},
|
||||
{
|
||||
""name"": ""Confirm"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""1db49b4d-c3d2-4c64-b938-e36a7856c185"",
|
||||
""expectedControlType"": """",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
}
|
||||
],
|
||||
""bindings"": [
|
||||
@ -337,6 +346,28 @@ public partial class @PlayerInputControl: IInputActionCollection2, IDisposable
|
||||
""action"": ""Attack"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""bc02440c-f516-40e4-959f-fe40bb7ce37b"",
|
||||
""path"": ""<Keyboard>/e"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": "";Keyboard&Mouse"",
|
||||
""action"": ""Confirm"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""e7a3f945-868a-466b-9124-1b8880a537e4"",
|
||||
""path"": ""<Gamepad>/buttonEast"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": "";Gamepad"",
|
||||
""action"": ""Confirm"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -927,6 +958,7 @@ public partial class @PlayerInputControl: IInputActionCollection2, IDisposable
|
||||
m_GamePlayerInput_Look = m_GamePlayerInput.FindAction("Look", throwIfNotFound: true);
|
||||
m_GamePlayerInput_Fire = m_GamePlayerInput.FindAction("Fire", throwIfNotFound: true);
|
||||
m_GamePlayerInput_Attack = m_GamePlayerInput.FindAction("Attack", throwIfNotFound: true);
|
||||
m_GamePlayerInput_Confirm = m_GamePlayerInput.FindAction("Confirm", throwIfNotFound: true);
|
||||
// UI
|
||||
m_UI = asset.FindActionMap("UI", throwIfNotFound: true);
|
||||
m_UI_Navigate = m_UI.FindAction("Navigate", throwIfNotFound: true);
|
||||
@ -1011,6 +1043,7 @@ public partial class @PlayerInputControl: IInputActionCollection2, IDisposable
|
||||
private readonly InputAction m_GamePlayerInput_Look;
|
||||
private readonly InputAction m_GamePlayerInput_Fire;
|
||||
private readonly InputAction m_GamePlayerInput_Attack;
|
||||
private readonly InputAction m_GamePlayerInput_Confirm;
|
||||
public struct GamePlayerInputActions
|
||||
{
|
||||
private @PlayerInputControl m_Wrapper;
|
||||
@ -1020,6 +1053,7 @@ public partial class @PlayerInputControl: IInputActionCollection2, IDisposable
|
||||
public InputAction @Look => m_Wrapper.m_GamePlayerInput_Look;
|
||||
public InputAction @Fire => m_Wrapper.m_GamePlayerInput_Fire;
|
||||
public InputAction @Attack => m_Wrapper.m_GamePlayerInput_Attack;
|
||||
public InputAction @Confirm => m_Wrapper.m_GamePlayerInput_Confirm;
|
||||
public InputActionMap Get() { return m_Wrapper.m_GamePlayerInput; }
|
||||
public void Enable() { Get().Enable(); }
|
||||
public void Disable() { Get().Disable(); }
|
||||
@ -1044,6 +1078,9 @@ public partial class @PlayerInputControl: IInputActionCollection2, IDisposable
|
||||
@Attack.started += instance.OnAttack;
|
||||
@Attack.performed += instance.OnAttack;
|
||||
@Attack.canceled += instance.OnAttack;
|
||||
@Confirm.started += instance.OnConfirm;
|
||||
@Confirm.performed += instance.OnConfirm;
|
||||
@Confirm.canceled += instance.OnConfirm;
|
||||
}
|
||||
|
||||
private void UnregisterCallbacks(IGamePlayerInputActions instance)
|
||||
@ -1063,6 +1100,9 @@ public partial class @PlayerInputControl: IInputActionCollection2, IDisposable
|
||||
@Attack.started -= instance.OnAttack;
|
||||
@Attack.performed -= instance.OnAttack;
|
||||
@Attack.canceled -= instance.OnAttack;
|
||||
@Confirm.started -= instance.OnConfirm;
|
||||
@Confirm.performed -= instance.OnConfirm;
|
||||
@Confirm.canceled -= instance.OnConfirm;
|
||||
}
|
||||
|
||||
public void RemoveCallbacks(IGamePlayerInputActions instance)
|
||||
@ -1250,6 +1290,7 @@ public partial class @PlayerInputControl: IInputActionCollection2, IDisposable
|
||||
void OnLook(InputAction.CallbackContext context);
|
||||
void OnFire(InputAction.CallbackContext context);
|
||||
void OnAttack(InputAction.CallbackContext context);
|
||||
void OnConfirm(InputAction.CallbackContext context);
|
||||
}
|
||||
public interface IUIActions
|
||||
{
|
||||
|
@ -49,6 +49,15 @@
|
||||
"processors": "",
|
||||
"interactions": "",
|
||||
"initialStateCheck": false
|
||||
},
|
||||
{
|
||||
"name": "Confirm",
|
||||
"type": "Button",
|
||||
"id": "1db49b4d-c3d2-4c64-b938-e36a7856c185",
|
||||
"expectedControlType": "",
|
||||
"processors": "",
|
||||
"interactions": "",
|
||||
"initialStateCheck": false
|
||||
}
|
||||
],
|
||||
"bindings": [
|
||||
@ -315,6 +324,28 @@
|
||||
"action": "Attack",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"id": "bc02440c-f516-40e4-959f-fe40bb7ce37b",
|
||||
"path": "<Keyboard>/e",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": ";Keyboard&Mouse",
|
||||
"action": "Confirm",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"id": "e7a3f945-868a-466b-9124-1b8880a537e4",
|
||||
"path": "<Gamepad>/buttonEast",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": ";Gamepad",
|
||||
"action": "Confirm",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -5,6 +5,7 @@ TagManager:
|
||||
serializedVersion: 2
|
||||
tags:
|
||||
- Bounds
|
||||
- Interactable
|
||||
layers:
|
||||
- Default
|
||||
- TransparentFX
|
||||
|
Loading…
x
Reference in New Issue
Block a user