separated logic for weapon code refactored

This commit is contained in:
Mausham
2025-12-30 12:43:44 -08:00
parent 37dd15d1b9
commit 1a61f3c506
19 changed files with 157 additions and 191 deletions

View File

@@ -29865,7 +29865,7 @@ MonoBehaviour:
m_EditorClassIdentifier: Unity.Cinemachine::Unity.Cinemachine.CinemachineThirdPersonAim
AimCollisionFilter:
serializedVersion: 2
m_Bits: 1
m_Bits: 4294967295
IgnoreTag:
AimDistance: 200
NoiseCancellation: 1
@@ -36155,6 +36155,7 @@ MonoBehaviour:
playerConfig: {fileID: 11400000, guid: 893990031b7e34e48aec7db96883252f, type: 2}
cameraConfig: {fileID: 11400000, guid: e862049a6864bb347903dec038b0ba28, type: 2}
gunWeapon: {fileID: 1291938116}
TargetProvider: {fileID: 9174570246757384965}
--- !u!1 &968176019
GameObject:
m_ObjectHideFlags: 0
@@ -41314,8 +41315,9 @@ MonoBehaviour:
m_EditorClassIdentifier: PresentationAssembly::Darkmatter.Presentation.GunWeapon
MuzzleFlashParticle: {fileID: 7825428930137112052}
BulletHitEffectParticle: {fileID: 370982010}
fireRate: 1
fireRate: 0.1
ammoCount: 40
BulletHole: {fileID: 4555957734307141869, guid: 4de3748ba04e4fa41b656da3f8d23a5a, type: 3}
--- !u!1 &1316836208
GameObject:
m_ObjectHideFlags: 0
@@ -46374,7 +46376,7 @@ MonoBehaviour:
m_EditorClassIdentifier: Unity.Cinemachine::Unity.Cinemachine.CinemachineThirdPersonAim
AimCollisionFilter:
serializedVersion: 2
m_Bits: 1
m_Bits: 4294967295
IgnoreTag:
AimDistance: 200
NoiseCancellation: 1
@@ -57690,9 +57692,10 @@ GameObject:
- component: {fileID: 3649487752288184257}
- component: {fileID: 3317298528410109698}
- component: {fileID: 9174570246757384964}
- component: {fileID: 3102384702973419205}
- component: {fileID: 5149987667482231426}
- component: {fileID: 7539699777945653300}
- component: {fileID: 3102384702973419205}
- component: {fileID: 9174570246757384965}
m_Layer: 0
m_Name: Player
m_TagString: Untagged
@@ -59020,15 +59023,6 @@ MonoBehaviour:
serializedVersion: 2
m_Bits: 8
turnSpeed: 4
smoothing: 10
animator: {fileID: 3649487752288184257}
aim: {fileID: 1758691227}
muzzlePos: {fileID: 2862136830057316804}
fireRate: 0.1
muzzleFlashParticle: {fileID: 7825428930137112052}
bulletHitParticle: {fileID: 370982010}
BulletHole: {fileID: 4555957734307141869, guid: 4de3748ba04e4fa41b656da3f8d23a5a, type: 3}
bulletAmount: 40
--- !u!1 &7547960368595836929
GameObject:
m_ObjectHideFlags: 0
@@ -98583,6 +98577,25 @@ CharacterController:
m_SkinWidth: 0.08
m_MinMoveDistance: 0.001
m_Center: {x: 0, y: 1.4, z: 0}
--- !u!114 &9174570246757384965
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 682798877665067124}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 315b8f05ac753ce4cb4b05beec2a6f9f, type: 3}
m_Name:
m_EditorClassIdentifier: PresentationAssembly::Darkmatter.Presentation.PlayerTargetProvider
aimLayer:
serializedVersion: 2
m_Bits: 0
currentAimPos: {x: 0, y: 0, z: 0}
AimObject: {fileID: 1758691227}
smoothing: 10
maxDistance: 100
--- !u!1660057539 &9223372036854775807
SceneRoots:
m_ObjectHideFlags: 0