From 0dfcf759fb06143c9526a01b8ce470bf8d4e9a35 Mon Sep 17 00:00:00 2001 From: Saibotk Date: Sat, 21 Apr 2018 19:05:13 +0200 Subject: [PATCH] Starting room door --- Assets/Prefabs/StartingRoom.prefab | 93 +++++++++++++++++++++++++++--- Assets/Scenes/CodeDEV.unity | 35 ----------- 2 files changed, 84 insertions(+), 44 deletions(-) diff --git a/Assets/Prefabs/StartingRoom.prefab b/Assets/Prefabs/StartingRoom.prefab index 881e6f6..a599138 100644 --- a/Assets/Prefabs/StartingRoom.prefab +++ b/Assets/Prefabs/StartingRoom.prefab @@ -126,6 +126,22 @@ GameObject: m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 +--- !u!1 &1686504243753214 +GameObject: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 5 + m_Component: + - component: {fileID: 4858022253936394} + - component: {fileID: 212528426528060246} + m_Layer: 0 + m_Name: Graphic + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 --- !u!4 &4254889038956124 Transform: m_ObjectHideFlags: 1 @@ -197,6 +213,19 @@ Transform: m_Father: {fileID: 4254889038956124} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!4 &4858022253936394 +Transform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1686504243753214} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 0.3, y: 0.05, z: 1} + m_Children: [] + m_Father: {fileID: 4896748037289080} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4871197587417858 Transform: m_ObjectHideFlags: 1 @@ -219,7 +248,8 @@ Transform: m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 9, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] + m_Children: + - {fileID: 4858022253936394} m_Father: {fileID: 4433182163931000} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -258,7 +288,7 @@ BoxCollider2D: m_Density: 1 m_Material: {fileID: 0} m_IsTrigger: 0 - m_UsedByEffector: 1 + m_UsedByEffector: 0 m_UsedByComposite: 0 m_Offset: {x: -0.63960123, y: -7.9419603} m_SpriteTilingProperty: @@ -285,7 +315,7 @@ BoxCollider2D: m_IsTrigger: 0 m_UsedByEffector: 0 m_UsedByComposite: 0 - m_Offset: {x: -7.702084, y: 9.487711} + m_Offset: {x: -7.5491962, y: 9.487711} m_SpriteTilingProperty: border: {x: 0, y: 0, z: 0, w: 0} pivot: {x: 0, y: 0} @@ -296,7 +326,7 @@ BoxCollider2D: adaptiveTiling: 0 m_AutoTiling: 0 serializedVersion: 2 - m_Size: {x: 11.820292, y: 1} + m_Size: {x: 12.126068, y: 1} m_EdgeRadius: 0 --- !u!61 &61627547681701250 BoxCollider2D: @@ -385,7 +415,7 @@ BoxCollider2D: m_IsTrigger: 0 m_UsedByEffector: 0 m_UsedByComposite: 0 - m_Offset: {x: 6.662739, y: 9.487714} + m_Offset: {x: 6.907359, y: 9.487714} m_SpriteTilingProperty: border: {x: 0, y: 0, z: 0, w: 0} pivot: {x: 0, y: 0} @@ -396,7 +426,7 @@ BoxCollider2D: adaptiveTiling: 0 m_AutoTiling: 0 serializedVersion: 2 - m_Size: {x: 11.34058, y: 1.0000019} + m_Size: {x: 10.851339, y: 1.0000019} m_EdgeRadius: 0 --- !u!114 &114620228456935526 MonoBehaviour: @@ -420,10 +450,55 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: a031ae543e3871f4da5b6e402291b6f6, type: 3} m_Name: m_EditorClassIdentifier: - Width: 0 - Height: 0 + width: 0 + height: 0 doorsRootObject: {fileID: 1394898907781064} - spawnpointRootObject: {fileID: 0} + spawnpointRootObject: {fileID: 1560863483719772} +--- !u!212 &212528426528060246 +SpriteRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1686504243753214} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 4294967295 + 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_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_Sprite: {fileID: 21300000, guid: c4ac414a6adb1234a978da09806b7d81, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 10, y: 10} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 --- !u!212 &212881422167649272 SpriteRenderer: m_ObjectHideFlags: 1 diff --git a/Assets/Scenes/CodeDEV.unity b/Assets/Scenes/CodeDEV.unity index 6e5ef7e..72102ac 100644 --- a/Assets/Scenes/CodeDEV.unity +++ b/Assets/Scenes/CodeDEV.unity @@ -152,36 +152,6 @@ Prefab: propertyPath: m_RootOrder value: 2 objectReference: {fileID: 0} - - target: {fileID: 114795477922050694, guid: 212457bb2a8fabb44b1000b6d61dde66, - type: 2} - propertyPath: spawnpointRootObject - value: - objectReference: {fileID: 893869449} - - target: {fileID: 61365825193936666, guid: 212457bb2a8fabb44b1000b6d61dde66, - type: 2} - propertyPath: m_UsedByEffector - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 61466659272242130, guid: 212457bb2a8fabb44b1000b6d61dde66, - type: 2} - propertyPath: m_Offset.x - value: -7.5491962 - objectReference: {fileID: 0} - - target: {fileID: 61466659272242130, guid: 212457bb2a8fabb44b1000b6d61dde66, - type: 2} - propertyPath: m_Size.x - value: 12.126068 - objectReference: {fileID: 0} - - target: {fileID: 61990218022873102, guid: 212457bb2a8fabb44b1000b6d61dde66, - type: 2} - propertyPath: m_Offset.x - value: 6.907359 - objectReference: {fileID: 0} - - target: {fileID: 61990218022873102, guid: 212457bb2a8fabb44b1000b6d61dde66, - type: 2} - propertyPath: m_Size.x - value: 10.851339 - objectReference: {fileID: 0} m_RemovedComponents: [] m_ParentPrefab: {fileID: 100100000, guid: 212457bb2a8fabb44b1000b6d61dde66, type: 2} m_IsPrefabParent: 0 @@ -272,11 +242,6 @@ Transform: m_Father: {fileID: 0} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &893869449 stripped -GameObject: - m_PrefabParentObject: {fileID: 1560863483719772, guid: 212457bb2a8fabb44b1000b6d61dde66, - type: 2} - m_PrefabInternal: {fileID: 81960866} --- !u!1 &2063368131 GameObject: m_ObjectHideFlags: 0