refactor: moving door with prefab
This commit is contained in:
@@ -15,7 +15,7 @@ GameObject:
|
||||
- component: {fileID: 6700426716916120764}
|
||||
- component: {fileID: 7552511637356990312}
|
||||
m_Layer: 0
|
||||
m_Name: TestBlock
|
||||
m_Name: IndicatorBlock
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0eece4d381450d440a0abcb205ba126e
|
||||
guid: d6fdf4761aa22fdaca0e9d4470c7ee73
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
|
||||
@@ -13,7 +13,7 @@ GameObject:
|
||||
- component: {fileID: 5853974941088398888}
|
||||
- component: {fileID: 5042967542353382394}
|
||||
- component: {fileID: 8480948550909164709}
|
||||
- component: {fileID: 4852617768436622893}
|
||||
- component: {fileID: -6766998345617383126}
|
||||
- component: {fileID: 590849425322242843}
|
||||
- component: {fileID: 8973796063000431307}
|
||||
m_Layer: 0
|
||||
@@ -336,8 +336,8 @@ MeshFilter:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1261067352547520725}
|
||||
m_Mesh: {fileID: 0}
|
||||
--- !u!64 &4852617768436622893
|
||||
MeshCollider:
|
||||
--- !u!65 &-6766998345617383126
|
||||
BoxCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
@@ -354,10 +354,9 @@ MeshCollider:
|
||||
m_IsTrigger: 0
|
||||
m_ProvidesContacts: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 5
|
||||
m_Convex: 0
|
||||
m_CookingOptions: 30
|
||||
m_Mesh: {fileID: 0}
|
||||
serializedVersion: 3
|
||||
m_Size: {x: 1.5, y: 0.1, z: 1.5}
|
||||
m_Center: {x: 0, y: 0, z: 0}
|
||||
--- !u!65 &590849425322242843
|
||||
BoxCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
@@ -12,11 +12,10 @@ GameObject:
|
||||
- component: {fileID: 5140597600133624551}
|
||||
- component: {fileID: 3884605895522482221}
|
||||
- component: {fileID: 16871832050785725}
|
||||
- component: {fileID: 8512140229507148937}
|
||||
- component: {fileID: 6921400718617286756}
|
||||
- component: {fileID: 7987102888823411772}
|
||||
- component: {fileID: 6921400718617286756}
|
||||
m_Layer: 0
|
||||
m_Name: Door
|
||||
m_Name: MovingDoor
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
@@ -47,7 +46,7 @@ MonoBehaviour:
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 8233d90336aea43098adf6dbabd606a2, type: 3}
|
||||
m_Name:
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Unity.ProBuilder::UnityEngine.ProBuilder.ProBuilderMesh
|
||||
m_MeshFormatVersion: 2
|
||||
m_Faces:
|
||||
@@ -154,80 +153,84 @@ MonoBehaviour:
|
||||
elementGroup: -1
|
||||
m_TextureGroup: -1
|
||||
m_SharedVertices:
|
||||
- m_Vertices: 00000000020000000d000000000000000000000000000000
|
||||
- m_Vertices: 010000000300000004000000000000000000000000000000
|
||||
- m_Vertices: 050000000700000008000000000000000000000000000000
|
||||
- m_Vertices: 090000000b0000000c000000000000000000000000000000
|
||||
- m_Vertices: 000000000d00000016000000
|
||||
- m_Vertices: 010000000400000017000000
|
||||
- m_Vertices: 020000000f00000010000000
|
||||
- m_Vertices: 030000000600000011000000
|
||||
- m_Vertices: 050000000800000015000000
|
||||
- m_Vertices: 070000000a00000013000000
|
||||
- m_Vertices: 090000000c00000014000000
|
||||
- m_Vertices: 0b0000000e00000012000000
|
||||
m_SharedTextures: []
|
||||
m_Positions:
|
||||
- {x: -0.05, y: -4, z: 4}
|
||||
- {x: 0.05, y: -4, z: 4}
|
||||
- {x: -0.05, y: 4, z: 4}
|
||||
- {x: 0.05, y: 4, z: 4}
|
||||
- {x: 0.05, y: -4, z: 4}
|
||||
- {x: 0.05, y: -4, z: -4}
|
||||
- {x: 0.05, y: 4, z: 4}
|
||||
- {x: 0.05, y: 4, z: -4}
|
||||
- {x: 0.05, y: -4, z: -4}
|
||||
- {x: -0.05, y: -4, z: -4}
|
||||
- {x: 0.05, y: 4, z: -4}
|
||||
- {x: -0.05, y: 4, z: -4}
|
||||
- {x: -0.05, y: -4, z: -4}
|
||||
- {x: -0.05, y: -4, z: 4}
|
||||
- {x: -0.05, y: 4, z: -4}
|
||||
- {x: -0.05, y: 4, z: 4}
|
||||
- {x: -0.05, y: 4, z: 4}
|
||||
- {x: 0.05, y: 4, z: 4}
|
||||
- {x: -0.05, y: 4, z: -4}
|
||||
- {x: 0.05, y: 4, z: -4}
|
||||
- {x: -0.05, y: -4, z: -4}
|
||||
- {x: 0.05, y: -4, z: -4}
|
||||
- {x: -0.05, y: -4, z: 4}
|
||||
- {x: 0.05, y: -4, z: 4}
|
||||
- {x: -0.05, y: -1, z: 0.5}
|
||||
- {x: 0.05, y: -1, z: 0.5}
|
||||
- {x: -0.05, y: 1, z: 0.5}
|
||||
- {x: 0.05, y: 1, z: 0.5}
|
||||
- {x: 0.05, y: -1, z: 0.5}
|
||||
- {x: 0.05, y: -1, z: -0.5}
|
||||
- {x: 0.05, y: 1, z: 0.5}
|
||||
- {x: 0.05, y: 1, z: -0.5}
|
||||
- {x: 0.05, y: -1, z: -0.5}
|
||||
- {x: -0.05, y: -1, z: -0.5}
|
||||
- {x: 0.05, y: 1, z: -0.5}
|
||||
- {x: -0.05, y: 1, z: -0.5}
|
||||
- {x: -0.05, y: -1, z: -0.5}
|
||||
- {x: -0.05, y: -1, z: 0.5}
|
||||
- {x: -0.05, y: 1, z: -0.5}
|
||||
- {x: -0.05, y: 1, z: 0.5}
|
||||
- {x: -0.05, y: 1, z: 0.5}
|
||||
- {x: 0.05, y: 1, z: 0.5}
|
||||
- {x: -0.05, y: 1, z: -0.5}
|
||||
- {x: 0.05, y: 1, z: -0.5}
|
||||
- {x: -0.05, y: -1, z: -0.5}
|
||||
- {x: 0.05, y: -1, z: -0.5}
|
||||
- {x: -0.05, y: -1, z: 0.5}
|
||||
- {x: 0.05, y: -1, z: 0.5}
|
||||
m_Textures0:
|
||||
- {x: 0, y: -7}
|
||||
- {x: 0.1, y: -7}
|
||||
- {x: 0.1, y: -1}
|
||||
- {x: 0, y: -1}
|
||||
- {x: 0.1, y: 1}
|
||||
- {x: 0, y: 1}
|
||||
- {x: 1, y: -1}
|
||||
- {x: 0, y: -1}
|
||||
- {x: 1, y: 1}
|
||||
- {x: 0, y: 1}
|
||||
- {x: 0.1, y: -1}
|
||||
- {x: 0, y: -1}
|
||||
- {x: 0.1, y: 1}
|
||||
- {x: 0, y: 1}
|
||||
- {x: 1, y: -1}
|
||||
- {x: 0, y: -1}
|
||||
- {x: 1, y: 1}
|
||||
- {x: 0, y: 1}
|
||||
- {x: 0, y: 1}
|
||||
- {x: 0.1, y: 1}
|
||||
- {x: 8, y: -7}
|
||||
- {x: 0, y: -7}
|
||||
- {x: 8, y: 1}
|
||||
- {x: 0, y: 0}
|
||||
- {x: 0.1, y: -7}
|
||||
- {x: 0, y: -7}
|
||||
- {x: 0.1, y: 1}
|
||||
- {x: 0, y: 1}
|
||||
- {x: 8, y: -7}
|
||||
- {x: 0, y: -7}
|
||||
- {x: 8, y: 0}
|
||||
- {x: 0, y: 1}
|
||||
- {x: 0, y: 1}
|
||||
- {x: 0.1, y: 1}
|
||||
- {x: 0, y: -7}
|
||||
- {x: 0.1, y: -7}
|
||||
- {x: 0.1, y: -7}
|
||||
- {x: 0, y: -7}
|
||||
- {x: 0.1, y: 0}
|
||||
- {x: 0.1, y: 0}
|
||||
- {x: 0, y: 0}
|
||||
- {x: 0.1, y: 1}
|
||||
- {x: 0, y: 1}
|
||||
m_Textures2: []
|
||||
m_Textures3: []
|
||||
m_Tangents:
|
||||
- {x: -0, y: 1, z: 0, w: 1}
|
||||
- {x: -0, y: 1, z: 0, w: 1}
|
||||
- {x: -0, y: 1, z: 0, w: 1}
|
||||
- {x: -0, y: 1, z: 0, w: 1}
|
||||
- {x: -0, y: 1, z: 0, w: 1}
|
||||
- {x: -0, y: 1, z: 0, w: 1}
|
||||
- {x: -0, y: 1, z: 0, w: 1}
|
||||
- {x: -0, y: 1, z: 0, w: 1}
|
||||
- {x: -0, y: 1, z: 0, w: 1}
|
||||
- {x: -0, y: 1, z: 0, w: 1}
|
||||
- {x: -0, y: 1, z: 0, w: 1}
|
||||
- {x: -0, y: 1, z: 0, w: 1}
|
||||
- {x: -0, y: 1, z: 0, w: 1}
|
||||
- {x: -0, y: 1, z: 0, w: 1}
|
||||
- {x: -0, y: 1, z: 0, w: 1}
|
||||
- {x: -0, y: 1, z: 0, w: 1}
|
||||
- {x: -1, y: 0, z: 0, w: -1}
|
||||
- {x: -1, y: 0, z: 0, w: -1}
|
||||
- {x: -1, y: 0, z: 0, w: -1}
|
||||
- {x: -1, y: 0, z: 0, w: -1}
|
||||
- {x: 0, y: 0, z: 1, w: -1}
|
||||
- {x: 0, y: 0, z: 1, w: -1}
|
||||
- {x: 0, y: 0, z: 1, w: -1}
|
||||
- {x: 0, y: 0, z: 1, w: -1}
|
||||
- {x: 1, y: 0, z: 0, w: -1}
|
||||
- {x: 1, y: 0, z: 0, w: -1}
|
||||
- {x: 1, y: 0, z: 0, w: -1}
|
||||
- {x: 1, y: 0, z: 0, w: -1}
|
||||
- {x: 0, y: 0, z: -1, w: -1}
|
||||
- {x: 0, y: 0, z: -1, w: -1}
|
||||
- {x: 0, y: 0, z: -1, w: -1}
|
||||
- {x: 0, y: 0, z: -1, w: -1}
|
||||
- {x: 1, y: 0, z: 0, w: -1}
|
||||
- {x: 1, y: 0, z: 0, w: -1}
|
||||
- {x: 1, y: 0, z: 0, w: -1}
|
||||
@@ -243,13 +246,13 @@ MonoBehaviour:
|
||||
m_AngleError: 8
|
||||
m_AreaError: 15
|
||||
m_PreserveMeshAssetOnDestroy: 0
|
||||
assetGuid:
|
||||
assetGuid:
|
||||
m_Mesh: {fileID: 0}
|
||||
m_VersionIndex: 59
|
||||
m_VersionIndex: 95
|
||||
m_IsSelectable: 1
|
||||
m_SelectedFaces:
|
||||
m_SelectedFaces:
|
||||
m_SelectedEdges: []
|
||||
m_SelectedVertices:
|
||||
m_SelectedVertices:
|
||||
--- !u!114 &3884605895522482221
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -260,20 +263,20 @@ MonoBehaviour:
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 1ca002da428252441b92f28d83c8a65f, type: 3}
|
||||
m_Name:
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Unity.ProBuilder::UnityEngine.ProBuilder.Shapes.ProBuilderShape
|
||||
m_Shape:
|
||||
rid: 1325630791375913023
|
||||
m_ShapeRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_UnmodifiedMeshVersion: 59
|
||||
m_Size: {x: 0.1, y: 8, z: 8}
|
||||
m_UnmodifiedMeshVersion: 95
|
||||
m_Size: {x: 0.1, y: 2, z: 1}
|
||||
m_LocalCenter: {x: 0, y: 0, z: 0}
|
||||
references:
|
||||
version: 2
|
||||
RefIds:
|
||||
- rid: 1325630791375913023
|
||||
type: {class: Cube, ns: UnityEngine.ProBuilder.Shapes, asm: Unity.ProBuilder}
|
||||
data:
|
||||
data:
|
||||
--- !u!23 &16871832050785725
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -323,37 +326,6 @@ MeshRenderer:
|
||||
m_SortingOrder: 0
|
||||
m_MaskInteraction: 0
|
||||
m_AdditionalVertexStreams: {fileID: 0}
|
||||
--- !u!33 &8512140229507148937
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6922175388650039756}
|
||||
m_Mesh: {fileID: 0}
|
||||
--- !u!114 &6921400718617286756
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6922175388650039756}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 0cc6c36a261296f4c82e315da147ba93, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::SlidingDoor
|
||||
axis: 1
|
||||
direction: -1
|
||||
slideDistance: 10
|
||||
speed: 3
|
||||
startOpen: 0
|
||||
OnOpened:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
OnClosed:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
--- !u!65 &7987102888823411772
|
||||
BoxCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -373,5 +345,28 @@ BoxCollider:
|
||||
m_ProvidesContacts: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Size: {x: 0.1, y: 8, z: 8}
|
||||
m_Size: {x: 0.1, y: 2, z: 1}
|
||||
m_Center: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &6921400718617286756
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6922175388650039756}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 0cc6c36a261296f4c82e315da147ba93, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::SlidingDoor
|
||||
axis: 1
|
||||
direction: -1
|
||||
slideDistance: 2
|
||||
speed: 3
|
||||
startOpen: 0
|
||||
OnOpened:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
OnClosed:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user