add auto-walk from the door

This commit is contained in:
2026-03-07 11:33:41 -06:00
parent 13a1e24099
commit 94fa81168d
7 changed files with 270 additions and 20 deletions
+70 -4
View File
@@ -256,6 +256,7 @@ MonoBehaviour:
DoorId: 0
SceneToLoad: SampleScene
IdOfCorrespondingDoor: 0
WalkDirection: {fileID: 134307099}
--- !u!65 &127908879
BoxCollider:
m_ObjectHideFlags: 0
@@ -429,6 +430,37 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 130527586}
m_CullTransparentMesh: 1
--- !u!1 &134307098
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 134307099}
m_Layer: 0
m_Name: RoomDirection
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &134307099
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 134307098}
serializedVersion: 2
m_LocalRotation: {x: -0, y: 0.9999906, z: -0, w: -0.004342109}
m_LocalPosition: {x: -0.852, y: 0, z: -0.003}
m_LocalScale: {x: 1.1537608, y: 69.57974, z: 1.1885278}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 902781402}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &143070239
GameObject:
m_ObjectHideFlags: 0
@@ -2599,11 +2631,12 @@ Transform:
m_GameObject: {fileID: 902781401}
serializedVersion: 2
m_LocalRotation: {x: -0, y: 0.93041223, z: -0, w: 0.3665149}
m_LocalPosition: {x: -6.424, y: 3.43913, z: -2.9829998}
m_LocalPosition: {x: -6.405, y: 3.43913, z: -2.966}
m_LocalScale: {x: 1, y: 0.014372, z: 0.7081001}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 127908880}
- {fileID: 134307099}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 136.998, z: 0}
--- !u!65 &902781403
@@ -3112,6 +3145,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 1072227175}
- {fileID: 1203170782}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 317.496, z: 0}
--- !u!65 &1055802464
@@ -3225,6 +3259,7 @@ MonoBehaviour:
DoorId: 1
SceneToLoad: SampleScene
IdOfCorrespondingDoor: 1
WalkDirection: {fileID: 1203170782}
--- !u!65 &1072227174
BoxCollider:
m_ObjectHideFlags: 0
@@ -3254,13 +3289,13 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1072227172}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 1, z: 0, w: 0}
m_LocalPosition: {x: -0.47499996, y: 34.3, z: 0.00000012626319}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -0.26100004, y: 34.299995, z: 0.000000057870626}
m_LocalScale: {x: 1.1708915, y: 69.57974, z: 1.1708915}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1055802463}
m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1114011169
GameObject:
m_ObjectHideFlags: 0
@@ -3714,6 +3749,37 @@ Animator:
m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorStateOnDisable: 0
m_WriteDefaultValuesOnDisable: 0
--- !u!1 &1203170781
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1203170782}
m_Layer: 0
m_Name: RoomDirection
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1203170782
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1203170781}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -0.915, y: 0, z: 0}
m_LocalScale: {x: 1.1537358, y: 69.57974, z: 1.1885651}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1055802463}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1281708046
GameObject:
m_ObjectHideFlags: 0