added adjustments over sockets and prototypes

This commit is contained in:
Nilton Constantino 2026-06-24 09:40:43 +01:00
parent 1a9fe23fa0
commit 326970efcd
No known key found for this signature in database
21 changed files with 17993 additions and 20024 deletions

View File

@ -0,0 +1,219 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &5125361039911461427
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4780999765458822674}
- component: {fileID: 8323722569561306346}
- component: {fileID: 8746599367352702528}
- component: {fileID: 1636042447927470312}
m_Layer: 30
m_Name: Trigger
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4780999765458822674
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5125361039911461427}
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: 7626235055272054941}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!135 &8323722569561306346
SphereCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5125361039911461427}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 1
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Radius: 3
m_Center: {x: 0, y: 0, z: 0}
--- !u!114 &8746599367352702528
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5125361039911461427}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a682f23a07cd4cfcaca3f2b5bfed2ab5, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Intrepid.Core.Camera.CameraProximityTrigger
id: efeabf3065a744fe82cdeeba71e404e7
mainCollider: {fileID: 8323722569561306346}
entitySensors:
- {fileID: 11400000, guid: 7d96731b441634a59ac45755cd094fff, type: 2}
behaviourTags:
- {fileID: 11400000, guid: 658e05d77a47d4e9591207114542f5fa, type: 2}
radius: 3
zoomLevel: 1
enterZoomVelocity: 0.5
exitZoomVelocity: 0.5
--- !u!114 &1636042447927470312
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5125361039911461427}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e130b3fcd6214681a03612fda0e57a75, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Intrepid.Gameplay.Entities.Sentinel.ActionBelt.ActionBeltTrigger
id: a3bec690bae54580b9e232226f84c217
mainCollider: {fileID: 8323722569561306346}
entitySensors:
- {fileID: 11400000, guid: 7d96731b441634a59ac45755cd094fff, type: 2}
behaviourTags:
- {fileID: 11400000, guid: 658e05d77a47d4e9591207114542f5fa, type: 2}
callables: []
--- !u!1001 &6186534122340431275
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 1364872794272454516, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_Size.y
value: 3
objectReference: {fileID: 0}
- target: {fileID: 3934978131188514466, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_Mesh
value:
objectReference: {fileID: 0}
- target: {fileID: 4327722164606231862, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4327722164606231862, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4327722164606231862, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4327722164606231862, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4327722164606231862, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4327722164606231862, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4327722164606231862, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4327722164606231862, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4327722164606231862, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4327722164606231862, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5788047604724794310, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_LocalPosition.y
value: 1.5
objectReference: {fileID: 0}
- target: {fileID: 6991316504778448096, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_Name
value: Interactable_ActionBelt_Prototype_BASE
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects:
- targetCorrespondingSourceObject: {fileID: 4327722164606231862, guid: fe511f674420741d889f065f493d6917, type: 3}
insertIndex: 0
addedObject: {fileID: 4780999765458822674}
m_AddedComponents:
- targetCorrespondingSourceObject: {fileID: 6991316504778448096, guid: fe511f674420741d889f065f493d6917, type: 3}
insertIndex: -1
addedObject: {fileID: 8104762111387153594}
m_SourcePrefab: {fileID: 100100000, guid: fe511f674420741d889f065f493d6917, type: 3}
--- !u!1 &3809158324537665867 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 6991316504778448096, guid: fe511f674420741d889f065f493d6917, type: 3}
m_PrefabInstance: {fileID: 6186534122340431275}
m_PrefabAsset: {fileID: 0}
--- !u!114 &8104762111387153594
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3809158324537665867}
m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: cb37ac40fcc046539f4f959071d4146a, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Intrepid.Gameplay.Prototyping.InteractableCommonModelPrototype
displayDebug: 1
prototypeModel: {fileID: 4971522607974356820}
cameraProximityTrigger: {fileID: 8746599367352702528}
sizeX: 1
sizeY: 3
sizeZ: 1
offset: 1
hasProximityCamera: 1
radius: 3
x: 1
y: 3
z: 1
contact_offset: 1
--- !u!114 &4971522607974356820 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 1235280944685753087, guid: fe511f674420741d889f065f493d6917, type: 3}
m_PrefabInstance: {fileID: 6186534122340431275}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f20bd3bb11c64d00a0429af5fe4bd33f, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Intrepid.Gameplay.Prototyping.PrototypeModel
--- !u!4 &7626235055272054941 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 4327722164606231862, guid: fe511f674420741d889f065f493d6917, type: 3}
m_PrefabInstance: {fileID: 6186534122340431275}
m_PrefabAsset: {fileID: 0}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: eae15658cc2be4bc4a9abee8c62b13aa
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,337 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &2063438787767332263
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1493873323317425571}
m_Layer: 29
m_Name: VisualRoot
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1493873323317425571
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2063438787767332263}
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: 5788047604724794310}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &4687883212074896997
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5788047604724794310}
- component: {fileID: 1235280944685753087}
m_Layer: 29
m_Name: Modal
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &5788047604724794310
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4687883212074896997}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 1.5, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 3468145236396983574}
- {fileID: 1703318170665668173}
- {fileID: 1493873323317425571}
m_Father: {fileID: 4327722164606231862}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1235280944685753087
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4687883212074896997}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f20bd3bb11c64d00a0429af5fe4bd33f, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Intrepid.Gameplay.Prototyping.PrototypeModel
debugMeshFilter: {fileID: 3934978131188514466}
debugRenderer: {fileID: 706111140969832978}
boxCollider: {fileID: 1364872794272454516}
--- !u!1 &5076599445735079200
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3468145236396983574}
m_Layer: 29
m_Name: Debug
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &3468145236396983574
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5076599445735079200}
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: 8834117376258967636}
m_Father: {fileID: 5788047604724794310}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &6991316504778448096
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4327722164606231862}
m_Layer: 29
m_Name: '# Interactable_Prototype_BASE'
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4327722164606231862
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6991316504778448096}
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: 5788047604724794310}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &7037144193506342921
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7464837258656678224}
- component: {fileID: 1364872794272454516}
m_Layer: 29
m_Name: InteractableSurface
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &7464837258656678224
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7037144193506342921}
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: 1703318170665668173}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!65 &1364872794272454516
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7037144193506342921}
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: 2, y: 3, z: 2}
m_Center: {x: 0, y: 0, z: 0}
--- !u!1 &8641797534045778994
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1703318170665668173}
m_Layer: 29
m_Name: Gameplay
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1703318170665668173
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8641797534045778994}
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: 7464837258656678224}
m_Father: {fileID: 5788047604724794310}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &8841023322301212683
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8834117376258967636}
- component: {fileID: 706111140969832978}
- component: {fileID: 3934978131188514466}
- component: {fileID: 2449993904018413455}
m_Layer: 29
m_Name: PrototypeMesh
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &8834117376258967636
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8841023322301212683}
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: 3468145236396983574}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!23 &706111140969832978
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8841023322301212683}
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: e231635fc7eae4b8cbf53b50df690c1d, 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_MaskInteraction: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!33 &3934978131188514466
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8841023322301212683}
m_Mesh: {fileID: 0}
--- !u!114 &2449993904018413455
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8841023322301212683}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4b658634c0194812b40550f65f5d20f2, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::__Prototype.Scripts.FloorVisualGroup
meshRenderers:
- {fileID: 706111140969832978}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: fe511f674420741d889f065f493d6917
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,215 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &3059299995531880852
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8004290664347408726}
- component: {fileID: 5987014881906585903}
m_Layer: 29
m_Name: DeploymentPoint
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &8004290664347408726
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3059299995531880852}
serializedVersion: 2
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -2.5, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 3192743049072428242}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &5987014881906585903
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3059299995531880852}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 7642b1162f2d449a970b4c5b47fb7625, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Intrepid.Gameplay.Journey.Stages.Sockets.StageSocketDeploymentPoint
socket: {fileID: 1118919635647773493}
--- !u!1001 &1171444435850830308
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 1364872794272454516, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_Size.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1364872794272454516, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_Size.y
value: 3
objectReference: {fileID: 0}
- target: {fileID: 1364872794272454516, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_Size.z
value: 4
objectReference: {fileID: 0}
- target: {fileID: 1364872794272454516, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_Center.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1364872794272454516, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_IsTrigger
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3934978131188514466, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_Mesh
value:
objectReference: {fileID: 0}
- target: {fileID: 4327722164606231862, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4327722164606231862, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4327722164606231862, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4327722164606231862, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4327722164606231862, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4327722164606231862, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4327722164606231862, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4327722164606231862, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4327722164606231862, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4327722164606231862, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5788047604724794310, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_LocalPosition.y
value: 1.5
objectReference: {fileID: 0}
- target: {fileID: 6991316504778448096, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_Name
value: Interactable_Socket_Prototype
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects:
- targetCorrespondingSourceObject: {fileID: 4327722164606231862, guid: fe511f674420741d889f065f493d6917, type: 3}
insertIndex: 0
addedObject: {fileID: 8004290664347408726}
m_AddedComponents:
- targetCorrespondingSourceObject: {fileID: 6991316504778448096, guid: fe511f674420741d889f065f493d6917, type: 3}
insertIndex: -1
addedObject: {fileID: 1118919635647773493}
- targetCorrespondingSourceObject: {fileID: 7037144193506342921, guid: fe511f674420741d889f065f493d6917, type: 3}
insertIndex: -1
addedObject: {fileID: 1271242622788804767}
m_SourcePrefab: {fileID: 100100000, guid: fe511f674420741d889f065f493d6917, type: 3}
--- !u!114 &100583304133247771 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 1235280944685753087, guid: fe511f674420741d889f065f493d6917, type: 3}
m_PrefabInstance: {fileID: 1171444435850830308}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f20bd3bb11c64d00a0429af5fe4bd33f, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Intrepid.Gameplay.Prototyping.PrototypeModel
--- !u!65 &193881357238892176 stripped
BoxCollider:
m_CorrespondingSourceObject: {fileID: 1364872794272454516, guid: fe511f674420741d889f065f493d6917, type: 3}
m_PrefabInstance: {fileID: 1171444435850830308}
m_PrefabAsset: {fileID: 0}
--- !u!4 &3192743049072428242 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 4327722164606231862, guid: fe511f674420741d889f065f493d6917, type: 3}
m_PrefabInstance: {fileID: 1171444435850830308}
m_PrefabAsset: {fileID: 0}
--- !u!1 &8162752144514628868 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 6991316504778448096, guid: fe511f674420741d889f065f493d6917, type: 3}
m_PrefabInstance: {fileID: 1171444435850830308}
m_PrefabAsset: {fileID: 0}
--- !u!114 &1118919635647773493
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8162752144514628868}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: cfab2843ec084c26af10022f0ec44eec, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Intrepid.Gameplay.Prototyping.InteractableSocketModelPrototype
displayDebug: 1
prototypeModel: {fileID: 100583304133247771}
sizeX: 1
sizeZ: 4
x: 1
z: 4
endpointId:
socketFace: 2
deploymentPoint: {fileID: 5987014881906585903}
changeTrigger: {fileID: 1271242622788804767}
stageManager: {fileID: 0}
--- !u!1 &8208157620794218989 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 7037144193506342921, guid: fe511f674420741d889f065f493d6917, type: 3}
m_PrefabInstance: {fileID: 1171444435850830308}
m_PrefabAsset: {fileID: 0}
--- !u!114 &1271242622788804767
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8208157620794218989}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3c11245659b8459cbfa73b4a882f63f8, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Intrepid.Gameplay.Journey.Stages.Sockets.StageSocketChangeTrigger
id: 4cae5246169b4ae2b201a1e53921e2a5
mainCollider: {fileID: 193881357238892176}
entitySensors:
- {fileID: 11400000, guid: 7d96731b441634a59ac45755cd094fff, type: 2}
behaviourTags:
- {fileID: 11400000, guid: 37e6114b7cfc84a13ab29173bdcd4ccf, type: 2}
journeyService: {fileID: 11400000, guid: 53f1211059b4847a49bde1be4b8d166c, type: 2}
socket: {fileID: 1118919635647773493}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: c3ed4308ab5994ce399caf6dd618df01
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,46 +0,0 @@
using System;
using Intrepid.Utilities;
using UnityEngine;
namespace Intrepid.Gameplay.Journey.Stages.Sockets
{
public class StageSocket : MonoBehaviour
{
[GroupInjections, SerializeField] private Transform deploymentPoint;
[GroupInjections, SerializeField] private StageSocketChangeTrigger changeTrigger;
[GroupConfigurations, SerializeField] private string endpointId;
[GroupConfigurations, SerializeField] private JSocketFace socketFace;
public string StageId
{
get => changeTrigger.StageId;
set => changeTrigger.StageId = value;
}
public string EndpointId
{
get => endpointId;
set => endpointId = value;
}
public Vector3 DeploymentPoint => deploymentPoint.position;
public Vector2 DeploymentDirection => JSocketFaceUtils.DeploymentDirection(socketFace);
private void OnValidate()
{
if (changeTrigger.IsNull()) return;
changeTrigger.EndpointId = endpointId;
}
private void Awake()
{
OnValidate();
}
#if UNITY_EDITOR
private void OnDrawGizmos()
{
Gizmos.color = Color.red;
Gizmos.DrawWireSphere(deploymentPoint.position, .5f);
}
#endif
}
}

View File

@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 06e19c5ea6de4ba2ba26ba0d99942d16
timeCreated: 1782152501

View File

@ -4,8 +4,8 @@ using System.Linq;
using Intrepid.Core.Entities; using Intrepid.Core.Entities;
using Intrepid.Core.Tags; using Intrepid.Core.Tags;
using Intrepid.Diagnostics; using Intrepid.Diagnostics;
using Intrepid.Gameplay.Prototyping;
using Intrepid.Utilities; using Intrepid.Utilities;
using Sirenix.OdinInspector;
using UnityEngine; using UnityEngine;
namespace Intrepid.Gameplay.Journey.Stages.Sockets namespace Intrepid.Gameplay.Journey.Stages.Sockets
@ -13,24 +13,14 @@ namespace Intrepid.Gameplay.Journey.Stages.Sockets
public class StageSocketChangeTrigger : EntityTrigger public class StageSocketChangeTrigger : EntityTrigger
{ {
[GroupInjections, SerializeField] private JourneyService journeyService; [GroupInjections, SerializeField] private JourneyService journeyService;
[GroupDebug, SerializeField, ReadOnly] private string stageId; [GroupInjections, SerializeField] private InteractableSocketModelPrototype socket;
[GroupDebug, SerializeField, ReadOnly] private string endpointId;
private BoxCollider BoxCollider => MainCollider as BoxCollider; private BoxCollider BoxCollider => MainCollider as BoxCollider;
public string StageId
{
get => stageId;
set => stageId = value;
}
public string EndpointId
{
get => endpointId;
set => endpointId = value;
}
protected override void WhenRaiseEnterEvent(Collider other, EntitySensor entitySensor, List<BehaviourTag> behaviourTags) protected override void WhenRaiseEnterEvent(Collider other, EntitySensor entitySensor, List<BehaviourTag> behaviourTags)
{ {
var stageId = socket.StageId;
var endpointId = socket.EndpointId;
if (!journeyService.TryGetJConnections(stageId, endpointId, out var jConnections)) if (!journeyService.TryGetJConnections(stageId, endpointId, out var jConnections))
{ {
DLogger.LogWarn($"Stage {stageId} has invalid endpoint: {endpointId}"); DLogger.LogWarn($"Stage {stageId} has invalid endpoint: {endpointId}");
@ -53,7 +43,7 @@ namespace Intrepid.Gameplay.Journey.Stages.Sockets
private string GrabDestinyEndpoint(JConnection jConnection) private string GrabDestinyEndpoint(JConnection jConnection)
{ {
return endpointId.Equals(jConnection.endpointAId, StringComparison.Ordinal) return socket.EndpointId.Equals(jConnection.endpointAId, StringComparison.Ordinal)
? jConnection.endpointBId ? jConnection.endpointBId
: jConnection.endpointAId; : jConnection.endpointAId;
} }
@ -69,7 +59,7 @@ namespace Intrepid.Gameplay.Journey.Stages.Sockets
{ {
return; return;
} }
Gizmos.color = Color.red; Gizmos.color = Color.yellow;
Gizmos.DrawWireCube(BoxCollider.bounds.center, BoxCollider.bounds.size); Gizmos.DrawWireCube(BoxCollider.bounds.center, BoxCollider.bounds.size);
} }
#endif #endif

View File

@ -0,0 +1,23 @@
using Intrepid.Gameplay.Prototyping;
using Intrepid.Utilities;
using UnityEngine;
namespace Intrepid.Gameplay.Journey.Stages.Sockets
{
public class StageSocketDeploymentPoint : MonoBehaviour
{
[GroupInjections, SerializeField] private InteractableSocketModelPrototype socket;
public Vector3 DeploymentPoint => transform.position;
public Vector2 DeploymentDirection => JSocketFaceUtils.DeploymentDirection(socket.SocketFace);
#if UNITY_EDITOR
private void OnDrawGizmos()
{
Gizmos.color = Color.yellow;
Gizmos.DrawWireSphere(DeploymentPoint, .5f);
Gizmos.DrawLine(DeploymentPoint, DeploymentPoint + 2f * new Vector3(DeploymentDirection.x, DeploymentPoint.y, DeploymentDirection.y));
}
#endif
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 7642b1162f2d449a970b4c5b47fb7625
timeCreated: 1782233033

View File

@ -2,7 +2,7 @@ using System.Collections.Generic;
using Intrepid.Diagnostics; using Intrepid.Diagnostics;
using Intrepid.GameManagers; using Intrepid.GameManagers;
using Intrepid.Gameplay.Journey.Messages.Events; using Intrepid.Gameplay.Journey.Messages.Events;
using Intrepid.Gameplay.Journey.Stages.Sockets; using Intrepid.Gameplay.Prototyping;
using Intrepid.SimpleEvents; using Intrepid.SimpleEvents;
using Intrepid.Utilities; using Intrepid.Utilities;
using Sirenix.OdinInspector; using Sirenix.OdinInspector;
@ -13,10 +13,12 @@ namespace Intrepid.Gameplay.Journey.Stages
public class StageManager : EventListener public class StageManager : EventListener
{ {
[GroupConfigurations, SerializeField] private StageTag stageTag; [GroupConfigurations, SerializeField] private StageTag stageTag;
[GroupDebug, SerializeField] private List<StageSocket> sockets; [GroupDebug, SerializeField] private List<InteractableSocketModelPrototype> sockets;
private Dictionary<string, StageSocket> SocketMap { get; } = new(); private Dictionary<string, InteractableSocketModelPrototype> SocketMap { get; } = new();
public StageTag StageTag => stageTag;
protected override void InitializeVariables() protected override void InitializeVariables()
{ {
Refresh(); Refresh();
@ -48,9 +50,9 @@ namespace Intrepid.Gameplay.Journey.Stages
private void Refresh() private void Refresh()
{ {
sockets.Clear(); sockets.Clear();
foreach (var stageSocket in GetComponentsInChildren<StageSocket>()) foreach (var stageSocket in GetComponentsInChildren<InteractableSocketModelPrototype>())
{ {
stageSocket.StageId = stageTag.StageId; stageSocket.StageManager = this;
sockets.Add(stageSocket); sockets.Add(stageSocket);
SocketMap.Add(stageSocket.EndpointId, stageSocket); SocketMap.Add(stageSocket.EndpointId, stageSocket);
} }

View File

@ -6,7 +6,7 @@ using UnityEngine;
namespace Intrepid.Gameplay.Prototyping namespace Intrepid.Gameplay.Prototyping
{ {
public class InteractableCommonModelPrototype : InteractableModelPrototype public class InteractableActionBeltModelPrototype : InteractableModelPrototype
{ {
[GroupInjections, SerializeField] private CameraProximityTrigger cameraProximityTrigger; [GroupInjections, SerializeField] private CameraProximityTrigger cameraProximityTrigger;
[GroupConfigurations, SerializeField, ReadOnly] private int sizeX = 1; [GroupConfigurations, SerializeField, ReadOnly] private int sizeX = 1;

View File

@ -0,0 +1,71 @@
using System.Collections.Generic;
using Intrepid.Gameplay.Journey;
using Intrepid.Gameplay.Journey.Stages;
using Intrepid.Gameplay.Journey.Stages.Sockets;
using Intrepid.Utilities;
using Sirenix.OdinInspector;
using UnityEngine;
namespace Intrepid.Gameplay.Prototyping
{
public class InteractableSocketModelPrototype : InteractableModelPrototype
{
[GroupConfigurations, SerializeField, ReadOnly] private int sizeX = 1;
[GroupConfigurations, SerializeField, ReadOnly] private int sizeZ = 1;
[GroupDebug, SerializeField, Min(1)] private int x = 1;
[GroupDebug, SerializeField, Min(1)] private int z = 1;
[GroupConfigurations, SerializeField] private string endpointId;
[GroupConfigurations, SerializeField] private JSocketFace socketFace;
[GroupInjections, SerializeField] private StageSocketDeploymentPoint deploymentPoint;
[GroupInjections, SerializeField] private StageSocketChangeTrigger changeTrigger;
[GroupDebug, SerializeField, ReadOnly] private StageManager stageManager;
public string StageId => stageManager.StageTag.StageId;
public string EndpointId
{
get => endpointId;
set => endpointId = value;
}
public JSocketFace SocketFace
{
get => socketFace;
set => socketFace = value;
}
public Vector3 DeploymentPoint => deploymentPoint.DeploymentPoint;
public Vector2 DeploymentDirection => deploymentPoint.DeploymentDirection;
public StageManager StageManager
{
set => stageManager = value;
}
protected override void DebugResize()
{
x = Mathf.Max(1, x);
z = Mathf.Max(1, z);
sizeX = x;
sizeZ = z;
}
protected override void Generate()
{
var vertices = new List<Vector3>();
var triangles = new List<int>();
var uvs = new List<Vector2>();
MeshUtils.AddCubeFaces(vertices, triangles, uvs,
sizeX, 3, sizeZ,
sizeX * 0.5f, 1.5f, sizeZ * 0.5f);
PrototypeModel.BuildMesh(new MeshData(
vertices.ToArray(),
triangles.ToArray(),
uvs.ToArray()));
PrototypeModel.BoxCollider.size = new Vector3(sizeX, 3f, sizeZ);
PrototypeModel.BoxCollider.center = new Vector3(0f, 0f, 0f);
PrototypeModel.transform.localPosition = new Vector3(0f, 1.5f, 0f);
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: cfab2843ec084c26af10022f0ec44eec
timeCreated: 1782232507

View File

@ -34,7 +34,7 @@ TagManager:
- -
- -
- -
- - Interactable
- Contacts - Contacts
- Grounds - Grounds
m_SortingLayers: m_SortingLayers: