game: ready to build

This commit is contained in:
Sc0rch-thinks 2024-08-16 23:27:30 +08:00
parent cb5f99e42a
commit 8074991e11
2 changed files with 61 additions and 7 deletions

View file

@ -58235,6 +58235,10 @@ PrefabInstance:
type: 3} type: 3}
insertIndex: -1 insertIndex: -1
addedObject: {fileID: 166574240} addedObject: {fileID: 166574240}
- targetCorrespondingSourceObject: {fileID: 2873307280559283155, guid: 4727a0261e638a347b36b0a4c15200bd,
type: 3}
insertIndex: -1
addedObject: {fileID: 166574245}
m_SourcePrefab: {fileID: 100100000, guid: 4727a0261e638a347b36b0a4c15200bd, type: 3} m_SourcePrefab: {fileID: 100100000, guid: 4727a0261e638a347b36b0a4c15200bd, type: 3}
--- !u!1 &166574239 stripped --- !u!1 &166574239 stripped
GameObject: GameObject:
@ -58263,6 +58267,18 @@ BoxCollider:
serializedVersion: 3 serializedVersion: 3
m_Size: {x: 0.10559394, y: 0.051575586, z: 0.014231677} m_Size: {x: 0.10559394, y: 0.051575586, z: 0.014231677}
m_Center: {x: -0.020941367, y: 0.025665773, z: 0} m_Center: {x: -0.020941367, y: 0.025665773, z: 0}
--- !u!114 &166574245
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 166574239}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 770ec800e73f4df89e7c6a433fdf29a4, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &167665746 --- !u!1001 &167665746
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -116412,13 +116428,13 @@ Transform:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 438254293} m_GameObject: {fileID: 438254293}
serializedVersion: 2 serializedVersion: 2
m_LocalRotation: {x: -0.03581242, y: 0.27431914, z: 0.00011295884, w: 0.96097165} m_LocalRotation: {x: -0.040616825, y: -0.83881706, z: -0.10419493, w: 0.5328036}
m_LocalPosition: {x: 739.145, y: 36, z: 794.803} m_LocalPosition: {x: 849.6, y: 2.6, z: 526.9}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: -3.95, y: 31.902, z: -1.116} m_LocalEulerAnglesHint: {x: -12.596, y: -114.876, z: -2.519}
--- !u!1001 &438381050 --- !u!1001 &438381050
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -309176,7 +309192,7 @@ BoxCollider:
serializedVersion: 2 serializedVersion: 2
m_Bits: 0 m_Bits: 0
m_LayerOverridePriority: 0 m_LayerOverridePriority: 0
m_IsTrigger: 0 m_IsTrigger: 1
m_ProvidesContacts: 0 m_ProvidesContacts: 0
m_Enabled: 1 m_Enabled: 1
serializedVersion: 3 serializedVersion: 3
@ -606619,7 +606635,7 @@ MonoBehaviour:
guiInteractionPromptObject: {fileID: 1226619922} guiInteractionPromptObject: {fileID: 1226619922}
guiHudObject: {fileID: 618797798} guiHudObject: {fileID: 618797798}
guiCompletedMenuObject: {fileID: 395649654} guiCompletedMenuObject: {fileID: 395649654}
player: {fileID: 0} player: {fileID: 1951654640}
--- !u!4 &1766444915 --- !u!4 &1766444915
Transform: Transform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -703776,6 +703792,12 @@ PrefabInstance:
m_AddedGameObjects: [] m_AddedGameObjects: []
m_AddedComponents: [] m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: eb3a8b2d0a5f25c489facbeb7807b854, type: 3} m_SourcePrefab: {fileID: 100100000, guid: eb3a8b2d0a5f25c489facbeb7807b854, type: 3}
--- !u!1 &1951654640 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 4465937683457646742, guid: fede53ad5812a1046bf12a85cacb875a,
type: 3}
m_PrefabInstance: {fileID: 570878807}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &1952647462 --- !u!1001 &1952647462
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -720640,6 +720662,7 @@ GameObject:
m_Component: m_Component:
- component: {fileID: 2006712716} - component: {fileID: 2006712716}
- component: {fileID: 2006712715} - component: {fileID: 2006712715}
- component: {fileID: 2006712717}
m_Layer: 0 m_Layer: 0
m_Name: death m_Name: death
m_TagString: Untagged m_TagString: Untagged
@ -720662,7 +720685,7 @@ BoxCollider:
serializedVersion: 2 serializedVersion: 2
m_Bits: 0 m_Bits: 0
m_LayerOverridePriority: 0 m_LayerOverridePriority: 0
m_IsTrigger: 0 m_IsTrigger: 1
m_ProvidesContacts: 0 m_ProvidesContacts: 0
m_Enabled: 1 m_Enabled: 1
serializedVersion: 3 serializedVersion: 3
@ -720677,12 +720700,27 @@ Transform:
m_GameObject: {fileID: 2006712714} m_GameObject: {fileID: 2006712714}
serializedVersion: 2 serializedVersion: 2
m_LocalRotation: {x: -0, y: 0.7071068, z: -0, w: 0.7071068} m_LocalRotation: {x: -0, y: 0.7071068, z: -0, w: 0.7071068}
m_LocalPosition: {x: 520.4, y: 0.4, z: 519.4} m_LocalPosition: {x: 520.4, y: 0.22, z: 519.4}
m_LocalScale: {x: 203.64787, y: 41.699314, z: 150.31151} m_LocalScale: {x: 203.64787, y: 41.699314, z: 150.31151}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &2006712717
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2006712714}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 7d5a9cf332774b06a7a334f98b8b2014, type: 3}
m_Name:
m_EditorClassIdentifier:
linkedLeapTrigger1: {fileID: 115287837}
linkedLeapTrigger2: {fileID: 1308999174}
linkedLeapTrigger3: {fileID: 1428118813}
--- !u!1001 &2007316506 --- !u!1001 &2007316506
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -737304,6 +737342,11 @@ PrefabInstance:
propertyPath: m_StaticEditorFlags propertyPath: m_StaticEditorFlags
value: 0 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 5392767355865973163, guid: bce6f3764b10cd44592f7407c41a4210,
type: 3}
propertyPath: floorsMoved
value: -10
objectReference: {fileID: 0}
- target: {fileID: 5393186442576023534, guid: bce6f3764b10cd44592f7407c41a4210, - target: {fileID: 5393186442576023534, guid: bce6f3764b10cd44592f7407c41a4210,
type: 3} type: 3}
propertyPath: m_StaticEditorFlags propertyPath: m_StaticEditorFlags
@ -740379,6 +740422,11 @@ PrefabInstance:
propertyPath: m_StaticEditorFlags propertyPath: m_StaticEditorFlags
value: 0 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 7271224173049035841, guid: bce6f3764b10cd44592f7407c41a4210,
type: 3}
propertyPath: levelHeight
value: 3.6
objectReference: {fileID: 0}
- target: {fileID: 7274612996606399156, guid: bce6f3764b10cd44592f7407c41a4210, - target: {fileID: 7274612996606399156, guid: bce6f3764b10cd44592f7407c41a4210,
type: 3} type: 3}
propertyPath: m_StaticEditorFlags propertyPath: m_StaticEditorFlags

View file

@ -4,6 +4,7 @@
* description: lift button behaviour implementation * description: lift button behaviour implementation
*/ */
using System;
using UnityEngine; using UnityEngine;
/// <summary> /// <summary>
@ -30,4 +31,9 @@ public override void Interact()
{ {
if (!liftController.moving && !door.isOpen) StartCoroutine(liftController.Move(floorsMoved)); if (!liftController.moving && !door.isOpen) StartCoroutine(liftController.Move(floorsMoved));
} }
public void Awake()
{
interactionPrompt = "Press [E] to go down";
}
} }