mirror of
				https://github.com/DerTyp7/defrain-shooter-unity.git
				synced 2025-10-30 21:17:09 +01:00 
			
		
		
		
	 0b7ff6f5f1
			
		
	
	0b7ff6f5f1
	
	
	
		
			
			Grenade data is now on Grenade.cs and not on Weapon.cs. You need both scripts to make a grenade work
		
			
				
	
	
		
			296 lines
		
	
	
		
			9.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			296 lines
		
	
	
		
			9.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| %YAML 1.1
 | |
| %TAG !u! tag:unity3d.com,2011:
 | |
| --- !u!1 &2236875552107647873
 | |
| GameObject:
 | |
|   m_ObjectHideFlags: 0
 | |
|   m_CorrespondingSourceObject: {fileID: 0}
 | |
|   m_PrefabInstance: {fileID: 0}
 | |
|   m_PrefabAsset: {fileID: 0}
 | |
|   serializedVersion: 6
 | |
|   m_Component:
 | |
|   - component: {fileID: 7502619830433694848}
 | |
|   m_Layer: 0
 | |
|   m_Name: Muzzle
 | |
|   m_TagString: Untagged
 | |
|   m_Icon: {fileID: 0}
 | |
|   m_NavMeshLayer: 0
 | |
|   m_StaticEditorFlags: 0
 | |
|   m_IsActive: 1
 | |
| --- !u!4 &7502619830433694848
 | |
| Transform:
 | |
|   m_ObjectHideFlags: 0
 | |
|   m_CorrespondingSourceObject: {fileID: 0}
 | |
|   m_PrefabInstance: {fileID: 0}
 | |
|   m_PrefabAsset: {fileID: 0}
 | |
|   m_GameObject: {fileID: 2236875552107647873}
 | |
|   m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
 | |
|   m_LocalPosition: {x: -0.0004, y: -0.01487, z: -0.143}
 | |
|   m_LocalScale: {x: 1, y: 1, z: 1}
 | |
|   m_ConstrainProportionsScale: 0
 | |
|   m_Children: []
 | |
|   m_Father: {fileID: 732033708985862910}
 | |
|   m_RootOrder: 0
 | |
|   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
 | |
| --- !u!1 &3709710254213546924
 | |
| GameObject:
 | |
|   m_ObjectHideFlags: 0
 | |
|   m_CorrespondingSourceObject: {fileID: 0}
 | |
|   m_PrefabInstance: {fileID: 0}
 | |
|   m_PrefabAsset: {fileID: 0}
 | |
|   serializedVersion: 6
 | |
|   m_Component:
 | |
|   - component: {fileID: 808197646603973991}
 | |
|   m_Layer: 0
 | |
|   m_Name: Left_Hand_REF
 | |
|   m_TagString: Untagged
 | |
|   m_Icon: {fileID: 0}
 | |
|   m_NavMeshLayer: 0
 | |
|   m_StaticEditorFlags: 0
 | |
|   m_IsActive: 1
 | |
| --- !u!4 &808197646603973991
 | |
| Transform:
 | |
|   m_ObjectHideFlags: 0
 | |
|   m_CorrespondingSourceObject: {fileID: 0}
 | |
|   m_PrefabInstance: {fileID: 0}
 | |
|   m_PrefabAsset: {fileID: 0}
 | |
|   m_GameObject: {fileID: 3709710254213546924}
 | |
|   m_LocalRotation: {x: -0, y: 0.7071068, z: 0.7071068, w: 0}
 | |
|   m_LocalPosition: {x: -0.03000002, y: -0.11399987, z: -0.42400002}
 | |
|   m_LocalScale: {x: 1, y: 1, z: 1}
 | |
|   m_ConstrainProportionsScale: 0
 | |
|   m_Children: []
 | |
|   m_Father: {fileID: 732033708985862910}
 | |
|   m_RootOrder: 1
 | |
|   m_LocalEulerAnglesHint: {x: -90, y: 90, z: 0}
 | |
| --- !u!1 &3884320679152247161
 | |
| GameObject:
 | |
|   m_ObjectHideFlags: 0
 | |
|   m_CorrespondingSourceObject: {fileID: 0}
 | |
|   m_PrefabInstance: {fileID: 0}
 | |
|   m_PrefabAsset: {fileID: 0}
 | |
|   serializedVersion: 6
 | |
|   m_Component:
 | |
|   - component: {fileID: 5792494204646893847}
 | |
|   m_Layer: 0
 | |
|   m_Name: Right_Hand_REF
 | |
|   m_TagString: Untagged
 | |
|   m_Icon: {fileID: 0}
 | |
|   m_NavMeshLayer: 0
 | |
|   m_StaticEditorFlags: 0
 | |
|   m_IsActive: 1
 | |
| --- !u!4 &5792494204646893847
 | |
| Transform:
 | |
|   m_ObjectHideFlags: 0
 | |
|   m_CorrespondingSourceObject: {fileID: 0}
 | |
|   m_PrefabInstance: {fileID: 0}
 | |
|   m_PrefabAsset: {fileID: 0}
 | |
|   m_GameObject: {fileID: 3884320679152247161}
 | |
|   m_LocalRotation: {x: -0, y: 0.7071068, z: 0.7071068, w: 0}
 | |
|   m_LocalPosition: {x: 0.030000005, y: -0.10400012, z: -0.42400002}
 | |
|   m_LocalScale: {x: 1, y: 1, z: 1}
 | |
|   m_ConstrainProportionsScale: 0
 | |
|   m_Children: []
 | |
|   m_Father: {fileID: 732033708985862910}
 | |
|   m_RootOrder: 2
 | |
|   m_LocalEulerAnglesHint: {x: -90, y: 90, z: 0}
 | |
| --- !u!1 &5071598280516985511
 | |
| GameObject:
 | |
|   m_ObjectHideFlags: 0
 | |
|   m_CorrespondingSourceObject: {fileID: 0}
 | |
|   m_PrefabInstance: {fileID: 0}
 | |
|   m_PrefabAsset: {fileID: 0}
 | |
|   serializedVersion: 6
 | |
|   m_Component:
 | |
|   - component: {fileID: 732033708985862910}
 | |
|   - component: {fileID: 6352645931139448055}
 | |
|   - component: {fileID: 5204381087217674634}
 | |
|   - component: {fileID: 9082234699677627348}
 | |
|   - component: {fileID: 2072484884}
 | |
|   m_Layer: 0
 | |
|   m_Name: Grenade
 | |
|   m_TagString: Weapon
 | |
|   m_Icon: {fileID: 0}
 | |
|   m_NavMeshLayer: 0
 | |
|   m_StaticEditorFlags: 0
 | |
|   m_IsActive: 1
 | |
| --- !u!4 &732033708985862910
 | |
| Transform:
 | |
|   m_ObjectHideFlags: 0
 | |
|   m_CorrespondingSourceObject: {fileID: 0}
 | |
|   m_PrefabInstance: {fileID: 0}
 | |
|   m_PrefabAsset: {fileID: 0}
 | |
|   m_GameObject: {fileID: 5071598280516985511}
 | |
|   m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
 | |
|   m_LocalPosition: {x: 0, y: 0, z: 0.03999999}
 | |
|   m_LocalScale: {x: 1, y: 1, z: 1}
 | |
|   m_ConstrainProportionsScale: 0
 | |
|   m_Children:
 | |
|   - {fileID: 7502619830433694848}
 | |
|   - {fileID: 808197646603973991}
 | |
|   - {fileID: 5792494204646893847}
 | |
|   - {fileID: 5918420165866215312}
 | |
|   m_Father: {fileID: 0}
 | |
|   m_RootOrder: 0
 | |
|   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
 | |
| --- !u!114 &6352645931139448055
 | |
| MonoBehaviour:
 | |
|   m_ObjectHideFlags: 0
 | |
|   m_CorrespondingSourceObject: {fileID: 0}
 | |
|   m_PrefabInstance: {fileID: 0}
 | |
|   m_PrefabAsset: {fileID: 0}
 | |
|   m_GameObject: {fileID: 5071598280516985511}
 | |
|   m_Enabled: 1
 | |
|   m_EditorHideFlags: 0
 | |
|   m_Script: {fileID: 11500000, guid: 48948dfe9d76b07488dacd46a7955fa1, type: 3}
 | |
|   m_Name: 
 | |
|   m_EditorClassIdentifier: 
 | |
| --- !u!114 &5204381087217674634
 | |
| MonoBehaviour:
 | |
|   m_ObjectHideFlags: 0
 | |
|   m_CorrespondingSourceObject: {fileID: 0}
 | |
|   m_PrefabInstance: {fileID: 0}
 | |
|   m_PrefabAsset: {fileID: 0}
 | |
|   m_GameObject: {fileID: 5071598280516985511}
 | |
|   m_Enabled: 1
 | |
|   m_EditorHideFlags: 0
 | |
|   m_Script: {fileID: 11500000, guid: c98f5c47a8b7dd64f86fd6f42c4d6e5e, type: 3}
 | |
|   m_Name: 
 | |
|   m_EditorClassIdentifier: 
 | |
|   weaponKind: 3
 | |
|   dropForce: 20
 | |
|   damage: 15
 | |
|   firerate: 320
 | |
|   recoilStrength: 15
 | |
|   currentAmmunition: 8
 | |
|   magazinSize: 16
 | |
|   totalAmmunition: 0
 | |
|   bulletExit: {fileID: 2236875552107647873}
 | |
|   allowAction: 1
 | |
|   weaponAnimator: {fileID: 8776644024920372975}
 | |
|   gunRightREF: {fileID: 5792494204646893847}
 | |
|   gunLeftREF: {fileID: 808197646603973991}
 | |
|   isGrenade: 1
 | |
|   timer: 2
 | |
|   explosionForce: 300
 | |
|   grenadeRadius: 3
 | |
|   hasExploded: 0
 | |
|   hasBeenThrown: 1
 | |
| --- !u!114 &9082234699677627348
 | |
| MonoBehaviour:
 | |
|   m_ObjectHideFlags: 0
 | |
|   m_CorrespondingSourceObject: {fileID: 0}
 | |
|   m_PrefabInstance: {fileID: 0}
 | |
|   m_PrefabAsset: {fileID: 0}
 | |
|   m_GameObject: {fileID: 5071598280516985511}
 | |
|   m_Enabled: 1
 | |
|   m_EditorHideFlags: 0
 | |
|   m_Script: {fileID: 11500000, guid: efa52c67441299049b2e2634d9e3e534, type: 3}
 | |
|   m_Name: 
 | |
|   m_EditorClassIdentifier: 
 | |
|   explodeParticle: {fileID: 8367325100912176335, guid: a8150377575143e4ba9ff51ba16504aa, type: 3}
 | |
|   weapon: {fileID: 5204381087217674634}
 | |
|   showExplosion: 1
 | |
| --- !u!54 &2072484884
 | |
| Rigidbody:
 | |
|   m_ObjectHideFlags: 0
 | |
|   m_CorrespondingSourceObject: {fileID: 0}
 | |
|   m_PrefabInstance: {fileID: 0}
 | |
|   m_PrefabAsset: {fileID: 0}
 | |
|   m_GameObject: {fileID: 5071598280516985511}
 | |
|   serializedVersion: 2
 | |
|   m_Mass: 1
 | |
|   m_Drag: 0
 | |
|   m_AngularDrag: 0.05
 | |
|   m_UseGravity: 1
 | |
|   m_IsKinematic: 0
 | |
|   m_Interpolate: 0
 | |
|   m_Constraints: 0
 | |
|   m_CollisionDetection: 0
 | |
| --- !u!1001 &3607281645661515732
 | |
| PrefabInstance:
 | |
|   m_ObjectHideFlags: 0
 | |
|   serializedVersion: 2
 | |
|   m_Modification:
 | |
|     m_TransformParent: {fileID: 732033708985862910}
 | |
|     m_Modifications:
 | |
|     - target: {fileID: 6930424391121909826, guid: dbdc6c009fc3f6144933dcf93b67f8cb, type: 3}
 | |
|       propertyPath: m_Name
 | |
|       value: GrenadeObject
 | |
|       objectReference: {fileID: 0}
 | |
|     - target: {fileID: 6930424391121909828, guid: dbdc6c009fc3f6144933dcf93b67f8cb, type: 3}
 | |
|       propertyPath: m_RootOrder
 | |
|       value: 3
 | |
|       objectReference: {fileID: 0}
 | |
|     - target: {fileID: 6930424391121909828, guid: dbdc6c009fc3f6144933dcf93b67f8cb, type: 3}
 | |
|       propertyPath: m_LocalPosition.x
 | |
|       value: 18.046112
 | |
|       objectReference: {fileID: 0}
 | |
|     - target: {fileID: 6930424391121909828, guid: dbdc6c009fc3f6144933dcf93b67f8cb, type: 3}
 | |
|       propertyPath: m_LocalPosition.y
 | |
|       value: 1.8965256
 | |
|       objectReference: {fileID: 0}
 | |
|     - target: {fileID: 6930424391121909828, guid: dbdc6c009fc3f6144933dcf93b67f8cb, type: 3}
 | |
|       propertyPath: m_LocalPosition.z
 | |
|       value: -9.051534
 | |
|       objectReference: {fileID: 0}
 | |
|     - target: {fileID: 6930424391121909828, guid: dbdc6c009fc3f6144933dcf93b67f8cb, type: 3}
 | |
|       propertyPath: m_LocalRotation.w
 | |
|       value: 1
 | |
|       objectReference: {fileID: 0}
 | |
|     - target: {fileID: 6930424391121909828, guid: dbdc6c009fc3f6144933dcf93b67f8cb, type: 3}
 | |
|       propertyPath: m_LocalRotation.x
 | |
|       value: 0
 | |
|       objectReference: {fileID: 0}
 | |
|     - target: {fileID: 6930424391121909828, guid: dbdc6c009fc3f6144933dcf93b67f8cb, type: 3}
 | |
|       propertyPath: m_LocalRotation.y
 | |
|       value: 0
 | |
|       objectReference: {fileID: 0}
 | |
|     - target: {fileID: 6930424391121909828, guid: dbdc6c009fc3f6144933dcf93b67f8cb, type: 3}
 | |
|       propertyPath: m_LocalRotation.z
 | |
|       value: 0
 | |
|       objectReference: {fileID: 0}
 | |
|     - target: {fileID: 6930424391121909828, guid: dbdc6c009fc3f6144933dcf93b67f8cb, type: 3}
 | |
|       propertyPath: m_LocalEulerAnglesHint.x
 | |
|       value: 0
 | |
|       objectReference: {fileID: 0}
 | |
|     - target: {fileID: 6930424391121909828, guid: dbdc6c009fc3f6144933dcf93b67f8cb, type: 3}
 | |
|       propertyPath: m_LocalEulerAnglesHint.y
 | |
|       value: 0
 | |
|       objectReference: {fileID: 0}
 | |
|     - target: {fileID: 6930424391121909828, guid: dbdc6c009fc3f6144933dcf93b67f8cb, type: 3}
 | |
|       propertyPath: m_LocalEulerAnglesHint.z
 | |
|       value: 0
 | |
|       objectReference: {fileID: 0}
 | |
|     m_RemovedComponents: []
 | |
|   m_SourcePrefab: {fileID: 100100000, guid: dbdc6c009fc3f6144933dcf93b67f8cb, type: 3}
 | |
| --- !u!1 &5918420165866215318 stripped
 | |
| GameObject:
 | |
|   m_CorrespondingSourceObject: {fileID: 6930424391121909826, guid: dbdc6c009fc3f6144933dcf93b67f8cb, type: 3}
 | |
|   m_PrefabInstance: {fileID: 3607281645661515732}
 | |
|   m_PrefabAsset: {fileID: 0}
 | |
| --- !u!4 &5918420165866215312 stripped
 | |
| Transform:
 | |
|   m_CorrespondingSourceObject: {fileID: 6930424391121909828, guid: dbdc6c009fc3f6144933dcf93b67f8cb, type: 3}
 | |
|   m_PrefabInstance: {fileID: 3607281645661515732}
 | |
|   m_PrefabAsset: {fileID: 0}
 | |
| --- !u!95 &8776644024920372975
 | |
| Animator:
 | |
|   serializedVersion: 4
 | |
|   m_ObjectHideFlags: 0
 | |
|   m_CorrespondingSourceObject: {fileID: 0}
 | |
|   m_PrefabInstance: {fileID: 0}
 | |
|   m_PrefabAsset: {fileID: 0}
 | |
|   m_GameObject: {fileID: 5918420165866215318}
 | |
|   m_Enabled: 1
 | |
|   m_Avatar: {fileID: 0}
 | |
|   m_Controller: {fileID: 0}
 | |
|   m_CullingMode: 0
 | |
|   m_UpdateMode: 0
 | |
|   m_ApplyRootMotion: 0
 | |
|   m_LinearVelocityBlending: 0
 | |
|   m_StabilizeFeet: 0
 | |
|   m_WarningMessage: 
 | |
|   m_HasTransformHierarchy: 1
 | |
|   m_AllowConstantClipSamplingOptimization: 1
 | |
|   m_KeepAnimatorControllerStateOnDisable: 0
 |