add unlock system for tools

This commit is contained in:
2026-06-29 22:15:59 -05:00
parent 9dfcee6159
commit fc0bcf0201
12 changed files with 513 additions and 65 deletions
+91 -7
View File
@@ -477,6 +477,7 @@ Transform:
m_LocalScale: {x: 6.6666665, y: 2.2222223, z: 6.6666665}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 6727541304562925855}
- {fileID: 6959836037467520223}
- {fileID: 7557613548437949332}
- {fileID: 4497923176373106572}
@@ -501,7 +502,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!4 &6959836037467520223
Transform:
m_ObjectHideFlags: 0
@@ -531,6 +532,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 21ea1f4973209f34aa1bfb2f1dda5454, type: 3}
m_Name:
m_EditorClassIdentifier:
ToolType: 1
useTimeSec: 0
altUseTimeSec: 0
inUse: 0
@@ -1454,6 +1456,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: fe5aedf75d904534296ad0d07fe55622, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Throwable
ToolType: 5
useTimeSec: 0
altUseTimeSec: 0
inUse: 0
@@ -1825,6 +1828,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: edd0364a446d1fd489dd8bbb53de613a, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Flashlight
ToolType: 2
useTimeSec: 0
altUseTimeSec: 0
inUse: 0
@@ -1875,6 +1879,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 8adaf1de0b489444189e21893ccde9b5, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::Ballgun
ToolType: 4
useTimeSec: 0
altUseTimeSec: 0
inUse: 0
@@ -2426,6 +2431,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 70102eddcaad3044d9ac0ec62519caad, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::GrappleGun
ToolType: 3
useTimeSec: 0.2
altUseTimeSec: 0
inUse: 0
@@ -2572,7 +2578,7 @@ Transform:
serializedVersion: 2
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: -0.78, z: 0}
m_LocalScale: {x: 1, y: 3, z: 1}
m_LocalScale: {x: 1, y: 2.41278, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 6581087177990818461}
@@ -3083,6 +3089,82 @@ BoxCollider:
serializedVersion: 3
m_Size: {x: 1, y: 1, z: 1}
m_Center: {x: 0, y: 0, z: 0}
--- !u!1 &9052018062808764455
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6727541304562925855}
- component: {fileID: 2779253558307207697}
- component: {fileID: 8034242111769562475}
m_Layer: 0
m_Name: NoTool
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &6727541304562925855
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9052018062808764455}
serializedVersion: 2
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0.016199952, z: 0.01755007}
m_LocalScale: {x: 0.15, y: 0.14999999, z: 0.15}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 6581087177990818461}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &2779253558307207697
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9052018062808764455}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 15984e9d9e7f6074f97a69185e39ebb6, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::NoTool
ToolType: 0
useTimeSec: 0
altUseTimeSec: 0
inUse: 0
--- !u!54 &8034242111769562475
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9052018062808764455}
serializedVersion: 5
m_Mass: 1
m_LinearDamping: 0
m_AngularDamping: 0.05
m_CenterOfMass: {x: 0, y: 0, z: 0}
m_InertiaTensor: {x: 1, y: 1, z: 1}
m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_ImplicitCom: 1
m_ImplicitTensor: 1
m_UseGravity: 0
m_IsKinematic: 1
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!1 &9054701043111961555
GameObject:
m_ObjectHideFlags: 0
@@ -3134,6 +3216,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
DougBody: {fileID: 6233083279635182816}
tools:
- {fileID: 2779253558307207697}
- {fileID: 948123141231275876}
- {fileID: 2884873557578242522}
- {fileID: 6033266832729015012}
@@ -3141,7 +3224,8 @@ MonoBehaviour:
- {fileID: 6038027350876930962}
walkSpeed: 2
sprintMultiplier: 1.5
gravity: 1
gravity: 5
rotationSpeed: 40
cameraController: {fileID: 5478143440182735446}
--- !u!114 &5478143440182735446
MonoBehaviour:
@@ -3165,7 +3249,7 @@ MonoBehaviour:
minDistance: 1
zoomSpeed: 5
heightOffset: -0.75
collisionRadius: 0.3
collisionRadius: 0.01
collisionOffset: 0.2
collisionMask:
serializedVersion: 2
@@ -3206,13 +3290,13 @@ CharacterController:
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Height: 3
m_Height: 2.67
m_Radius: 0.92
m_SlopeLimit: 45
m_StepOffset: 0.3
m_SkinWidth: 0.03
m_SkinWidth: 0.01
m_MinMoveDistance: 0
m_Center: {x: 0, y: -0.51, z: 0}
m_Center: {x: 0, y: -0.66, z: 0}
--- !u!1 &9105254285813222465
GameObject:
m_ObjectHideFlags: 0