Easy Explo
This commit is contained in:
@@ -1042,6 +1042,14 @@ PrefabInstance:
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6251746027036820422, guid: 71d814cc718e6ea45b6a1a719d081f29, type: 3}
|
||||
propertyPath: _size.x
|
||||
value: 1254.0812
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6251746027036820422, guid: 71d814cc718e6ea45b6a1a719d081f29, type: 3}
|
||||
propertyPath: _size.y
|
||||
value: 739.4823
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6345901853016108221, guid: 71d814cc718e6ea45b6a1a719d081f29, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
@@ -1190,6 +1198,26 @@ PrefabInstance:
|
||||
propertyPath: m_Name
|
||||
value: ContentUIExample2
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6345901854294853152, guid: 71d814cc718e6ea45b6a1a719d081f29, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 1254.0812
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6345901854294853152, guid: 71d814cc718e6ea45b6a1a719d081f29, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 739.4823
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6345901854294853152, guid: 71d814cc718e6ea45b6a1a719d081f29, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -0.018
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6345901854294853152, guid: 71d814cc718e6ea45b6a1a719d081f29, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: -0.23723
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6345901854294853152, guid: 71d814cc718e6ea45b6a1a719d081f29, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: -0.3074
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6345901854714907443, guid: 71d814cc718e6ea45b6a1a719d081f29, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
@@ -1490,6 +1518,14 @@ PrefabInstance:
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8640964974970136603, guid: 71d814cc718e6ea45b6a1a719d081f29, type: 3}
|
||||
propertyPath: _size.x
|
||||
value: 1254.0812
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8640964974970136603, guid: 71d814cc718e6ea45b6a1a719d081f29, type: 3}
|
||||
propertyPath: _size.y
|
||||
value: 739.4823
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8833327448774095528, guid: 71d814cc718e6ea45b6a1a719d081f29, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
@@ -1589,6 +1625,9 @@ PrefabInstance:
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects:
|
||||
- targetCorrespondingSourceObject: {fileID: 6345901854294853152, guid: 71d814cc718e6ea45b6a1a719d081f29, type: 3}
|
||||
insertIndex: -1
|
||||
addedObject: {fileID: 1529339494}
|
||||
- targetCorrespondingSourceObject: {fileID: 6345901854761914314, guid: 71d814cc718e6ea45b6a1a719d081f29, type: 3}
|
||||
insertIndex: 1
|
||||
addedObject: {fileID: 1329571671}
|
||||
@@ -9695,6 +9734,142 @@ Transform:
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1413292888}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &692287307
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 692287308}
|
||||
- component: {fileID: 692287310}
|
||||
- component: {fileID: 692287309}
|
||||
m_Layer: 0
|
||||
m_Name: Text (TMP)
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &692287308
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 692287307}
|
||||
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: 1529339494}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &692287309
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 692287307}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: Button
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
m_fontColor32:
|
||||
serializedVersion: 2
|
||||
rgba: 4281479730
|
||||
m_fontColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
|
||||
m_enableVertexGradient: 0
|
||||
m_colorMode: 3
|
||||
m_fontColorGradient:
|
||||
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_fontColorGradientPreset: {fileID: 0}
|
||||
m_spriteAsset: {fileID: 0}
|
||||
m_tintAllSprites: 0
|
||||
m_StyleSheet: {fileID: 0}
|
||||
m_TextStyleHashCode: -1183493901
|
||||
m_overrideHtmlColors: 0
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 24
|
||||
m_fontSizeBase: 24
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 2
|
||||
m_VerticalAlignment: 512
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
m_lineSpacingMax: 0
|
||||
m_paragraphSpacing: 0
|
||||
m_charWidthMaxAdj: 0
|
||||
m_TextWrappingMode: 1
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 0
|
||||
m_ActiveFontFeatures: 6e72656b
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 1
|
||||
m_EmojiFallbackSupport: 1
|
||||
m_parseCtrlCharacters: 1
|
||||
m_isOrthographic: 1
|
||||
m_isCullingEnabled: 0
|
||||
m_horizontalMapping: 0
|
||||
m_verticalMapping: 0
|
||||
m_uvLineOffset: 0
|
||||
m_geometrySortingOrder: 0
|
||||
m_IsTextObjectScaleStatic: 0
|
||||
m_VertexBufferAutoSizeReduction: 0
|
||||
m_useMaxVisibleDescender: 1
|
||||
m_pageToDisplay: 1
|
||||
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_isUsingLegacyAnimationComponent: 0
|
||||
m_isVolumetricText: 0
|
||||
m_hasFontAssetChanged: 0
|
||||
m_baseMaterial: {fileID: 0}
|
||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||
--- !u!222 &692287310
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 692287307}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &692394285
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -11843,6 +12018,41 @@ Transform:
|
||||
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: e3a436e0ac6013f41999e23f2cc91370, type: 3}
|
||||
m_PrefabInstance: {fileID: 853388554}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &853388556 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 5267813504285282014, guid: e3a436e0ac6013f41999e23f2cc91370, type: 3}
|
||||
m_PrefabInstance: {fileID: 853388554}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &853388557 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 5156012375715448861, guid: e3a436e0ac6013f41999e23f2cc91370, type: 3}
|
||||
m_PrefabInstance: {fileID: 853388554}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &853388558 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 8979100604441003880, guid: e3a436e0ac6013f41999e23f2cc91370, type: 3}
|
||||
m_PrefabInstance: {fileID: 853388554}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &853388559 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7095972244864792940, guid: e3a436e0ac6013f41999e23f2cc91370, type: 3}
|
||||
m_PrefabInstance: {fileID: 853388554}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &853388560 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: -6357977629539827254, guid: e3a436e0ac6013f41999e23f2cc91370, type: 3}
|
||||
m_PrefabInstance: {fileID: 853388554}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &853388561 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 1054164785798532287, guid: e3a436e0ac6013f41999e23f2cc91370, type: 3}
|
||||
m_PrefabInstance: {fileID: 853388554}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &853388562 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 4167280743394806330, guid: e3a436e0ac6013f41999e23f2cc91370, type: 3}
|
||||
m_PrefabInstance: {fileID: 853388554}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &863420452
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -18963,6 +19173,11 @@ Transform:
|
||||
- {fileID: 1151457744}
|
||||
m_Father: {fileID: 511943804}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!224 &1508730383 stripped
|
||||
RectTransform:
|
||||
m_CorrespondingSourceObject: {fileID: 6345901854294853152, guid: 71d814cc718e6ea45b6a1a719d081f29, type: 3}
|
||||
m_PrefabInstance: {fileID: 4127012}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &1526174809
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -19025,6 +19240,139 @@ Transform:
|
||||
m_Children: []
|
||||
m_Father: {fileID: 425760900}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1529339493
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1529339494}
|
||||
- component: {fileID: 1529339497}
|
||||
- component: {fileID: 1529339496}
|
||||
- component: {fileID: 1529339495}
|
||||
m_Layer: 0
|
||||
m_Name: Explo
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1529339494
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1529339493}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 2.11, y: 1.39, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 692287308}
|
||||
m_Father: {fileID: 1508730383}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 354, y: 0}
|
||||
m_SizeDelta: {x: 160, y: 30}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &1529339495
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1529339493}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_WrapAround: 0
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
|
||||
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: 0.1
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_SelectedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_SelectedTrigger: Selected
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 1529339496}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls:
|
||||
- m_Target: {fileID: 2061244013}
|
||||
m_TargetAssemblyTypeName:
|
||||
m_MethodName:
|
||||
m_Mode: 1
|
||||
m_Arguments:
|
||||
m_ObjectArgument: {fileID: 0}
|
||||
m_ObjectArgumentAssemblyTypeName:
|
||||
m_IntArgument: 0
|
||||
m_FloatArgument: 0
|
||||
m_StringArgument:
|
||||
m_BoolArgument: 0
|
||||
m_CallState: 2
|
||||
--- !u!114 &1529339496
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1529339493}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0.96981126, g: 0.05672476, b: 0.05672476, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 1
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!222 &1529339497
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1529339493}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &1534921207
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -25386,6 +25734,67 @@ RectTransform:
|
||||
m_CorrespondingSourceObject: {fileID: 713890223910586000, guid: 90ae27b2ef005bc479d956c3d244f591, type: 3}
|
||||
m_PrefabInstance: {fileID: 2059311650}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &2061244013
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 2061244015}
|
||||
- component: {fileID: 2061244014}
|
||||
m_Layer: 0
|
||||
m_Name: GameObject (1)
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &2061244014
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2061244013}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: cacb5007283458a44832374983f2eeff, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
bikeParts:
|
||||
- part: {fileID: 853388562}
|
||||
explodeDirection: {x: 0, y: 0, z: 0}
|
||||
- part: {fileID: 853388561}
|
||||
explodeDirection: {x: 0, y: -1, z: 0}
|
||||
- part: {fileID: 853388560}
|
||||
explodeDirection: {x: -1, y: 0, z: 0}
|
||||
- part: {fileID: 853388559}
|
||||
explodeDirection: {x: 1, y: 0, z: 0}
|
||||
- part: {fileID: 853388558}
|
||||
explodeDirection: {x: 0, y: 1, z: 0}
|
||||
- part: {fileID: 853388557}
|
||||
explodeDirection: {x: 0, y: 0, z: -1}
|
||||
- part: {fileID: 853388556}
|
||||
explodeDirection: {x: 0, y: 0, z: 1}
|
||||
explosionDistance: 1
|
||||
explosionSpeed: 2
|
||||
--- !u!4 &2061244015
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2061244013}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0.391926, y: 0.80195713, z: 1.2730069}
|
||||
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 &2062783191
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -26375,3 +26784,4 @@ SceneRoots:
|
||||
- {fileID: 601256360}
|
||||
- {fileID: 1307385173}
|
||||
- {fileID: 4127012}
|
||||
- {fileID: 2061244015}
|
||||
|
||||
@@ -1,18 +1,47 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class ViewportAktivieren : MonoBehaviour
|
||||
public class ExplodeBike : MonoBehaviour
|
||||
{
|
||||
public GameObject Viewport_Farbe;
|
||||
public GameObject Viewport_Reifen;
|
||||
|
||||
public void SetVisibility(bool visible)
|
||||
[System.Serializable]
|
||||
public class BikePart
|
||||
{
|
||||
if (Viewport_Farbe != null)
|
||||
public Transform part;
|
||||
public Vector3 explodeDirection; // Richtung, in die das Teil explodiert
|
||||
}
|
||||
|
||||
public BikePart[] bikeParts;
|
||||
public float explosionDistance = 2f;
|
||||
public float explosionSpeed = 2f;
|
||||
private bool isExploding = false;
|
||||
|
||||
private Vector3[] originalPositions;
|
||||
|
||||
void Start()
|
||||
{
|
||||
originalPositions = new Vector3[bikeParts.Length];
|
||||
for (int i = 0; i < bikeParts.Length; i++)
|
||||
{
|
||||
Viewport_Farbe.SetActive(visible);
|
||||
Viewport_Reifen.SetActive(!visible);
|
||||
originalPositions[i] = bikeParts[i].part.localPosition;
|
||||
}
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
if (isExploding)
|
||||
{
|
||||
for (int i = 0; i < bikeParts.Length; i++)
|
||||
{
|
||||
Vector3 targetPos = originalPositions[i] + bikeParts[i].explodeDirection.normalized * explosionDistance;
|
||||
bikeParts[i].part.localPosition = Vector3.Lerp(bikeParts[i].part.localPosition, targetPos, Time.deltaTime * explosionSpeed);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void Explode()
|
||||
{
|
||||
isExploding = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user