This commit is contained in:
wuyanchen 2025-12-21 19:37:02 +08:00
parent bab6963d7e
commit a391946f67
8 changed files with 210 additions and 33 deletions

View File

@ -673,7 +673,7 @@ MonoBehaviour:
type: 3} type: 3}
muzzlePrefab: {fileID: 4000010921236120, guid: 66ce0f27574363a4dabe7162e2636e3f, muzzlePrefab: {fileID: 4000010921236120, guid: 66ce0f27574363a4dabe7162e2636e3f,
type: 3} type: 3}
shotAudioClip: {fileID: 8300000, guid: 038911361e37ae84b8fdc585b7b83895, type: 3} shotAudioClip: {fileID: 8300000, guid: 18ff7ad4cffb9ae458e8cbaee7c0d423, type: 3}
--- !u!1 &260372503 --- !u!1 &260372503
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -1668,10 +1668,20 @@ PrefabInstance:
value: value:
objectReference: {fileID: 4541196389373984, guid: e3f361eacdeb09440850ac7397930cba, objectReference: {fileID: 4541196389373984, guid: e3f361eacdeb09440850ac7397930cba,
type: 3} type: 3}
- target: {fileID: 279031484294811146, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3}
propertyPath: lerpSpeed
value: 5
objectReference: {fileID: 0}
- target: {fileID: 279031484294811146, guid: 435ba18295a2b0240b1511cd4d5a7bc3, - target: {fileID: 279031484294811146, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3} type: 3}
propertyPath: shotSpeed propertyPath: shotSpeed
value: 20 value: 12
objectReference: {fileID: 0}
- target: {fileID: 279031484294811146, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3}
propertyPath: audioVolume
value: 0.1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 279031484294811146, guid: 435ba18295a2b0240b1511cd4d5a7bc3, - target: {fileID: 279031484294811146, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3} type: 3}
@ -1692,8 +1702,13 @@ PrefabInstance:
- target: {fileID: 279031484294811146, guid: 435ba18295a2b0240b1511cd4d5a7bc3, - target: {fileID: 279031484294811146, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3} type: 3}
propertyPath: shotDuration propertyPath: shotDuration
value: 0.2 value: 0.12
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 279031484294811146, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3}
propertyPath: shotAudioClip
value:
objectReference: {fileID: 8300000, guid: 18ff7ad4cffb9ae458e8cbaee7c0d423, type: 3}
- target: {fileID: 279031484294811146, guid: 435ba18295a2b0240b1511cd4d5a7bc3, - target: {fileID: 279031484294811146, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3} type: 3}
propertyPath: shotOffsetZMul propertyPath: shotOffsetZMul
@ -1766,10 +1781,20 @@ PrefabInstance:
value: value:
objectReference: {fileID: 4541196389373984, guid: e3f361eacdeb09440850ac7397930cba, objectReference: {fileID: 4541196389373984, guid: e3f361eacdeb09440850ac7397930cba,
type: 3} type: 3}
- target: {fileID: 2521485966335614540, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3}
propertyPath: lerpSpeed
value: 5
objectReference: {fileID: 0}
- target: {fileID: 2521485966335614540, guid: 435ba18295a2b0240b1511cd4d5a7bc3, - target: {fileID: 2521485966335614540, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3} type: 3}
propertyPath: shotSpeed propertyPath: shotSpeed
value: 20 value: 12
objectReference: {fileID: 0}
- target: {fileID: 2521485966335614540, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3}
propertyPath: audioVolume
value: 0.1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2521485966335614540, guid: 435ba18295a2b0240b1511cd4d5a7bc3, - target: {fileID: 2521485966335614540, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3} type: 3}
@ -1790,13 +1815,33 @@ PrefabInstance:
- target: {fileID: 2521485966335614540, guid: 435ba18295a2b0240b1511cd4d5a7bc3, - target: {fileID: 2521485966335614540, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3} type: 3}
propertyPath: shotDuration propertyPath: shotDuration
value: 0.2 value: 0.12
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2521485966335614540, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3}
propertyPath: shotAudioClip
value:
objectReference: {fileID: 8300000, guid: 18ff7ad4cffb9ae458e8cbaee7c0d423, type: 3}
- target: {fileID: 2521485966335614540, guid: 435ba18295a2b0240b1511cd4d5a7bc3, - target: {fileID: 2521485966335614540, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3} type: 3}
propertyPath: shotOffsetZMul propertyPath: shotOffsetZMul
value: -1 value: -1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 4123303403043117342, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3}
propertyPath: m_LocalScale.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4123303403043117342, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3}
propertyPath: m_LocalScale.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4123303403043117342, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3}
propertyPath: m_LocalScale.z
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4123303403043117342, guid: 435ba18295a2b0240b1511cd4d5a7bc3, - target: {fileID: 4123303403043117342, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3} type: 3}
propertyPath: m_LocalPosition.z propertyPath: m_LocalPosition.z
@ -1839,10 +1884,20 @@ PrefabInstance:
value: value:
objectReference: {fileID: 4541196389373984, guid: e3f361eacdeb09440850ac7397930cba, objectReference: {fileID: 4541196389373984, guid: e3f361eacdeb09440850ac7397930cba,
type: 3} type: 3}
- target: {fileID: 5445074278298902311, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3}
propertyPath: lerpSpeed
value: 5
objectReference: {fileID: 0}
- target: {fileID: 5445074278298902311, guid: 435ba18295a2b0240b1511cd4d5a7bc3, - target: {fileID: 5445074278298902311, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3} type: 3}
propertyPath: shotSpeed propertyPath: shotSpeed
value: 20 value: 12
objectReference: {fileID: 0}
- target: {fileID: 5445074278298902311, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3}
propertyPath: audioVolume
value: 0.1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 5445074278298902311, guid: 435ba18295a2b0240b1511cd4d5a7bc3, - target: {fileID: 5445074278298902311, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3} type: 3}
@ -1863,8 +1918,13 @@ PrefabInstance:
- target: {fileID: 5445074278298902311, guid: 435ba18295a2b0240b1511cd4d5a7bc3, - target: {fileID: 5445074278298902311, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3} type: 3}
propertyPath: shotDuration propertyPath: shotDuration
value: 0.2 value: 0.12
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 5445074278298902311, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3}
propertyPath: shotAudioClip
value:
objectReference: {fileID: 8300000, guid: 18ff7ad4cffb9ae458e8cbaee7c0d423, type: 3}
- target: {fileID: 5445074278298902311, guid: 435ba18295a2b0240b1511cd4d5a7bc3, - target: {fileID: 5445074278298902311, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3} type: 3}
propertyPath: shotOffsetZMul propertyPath: shotOffsetZMul
@ -1882,10 +1942,20 @@ PrefabInstance:
value: value:
objectReference: {fileID: 4541196389373984, guid: e3f361eacdeb09440850ac7397930cba, objectReference: {fileID: 4541196389373984, guid: e3f361eacdeb09440850ac7397930cba,
type: 3} type: 3}
- target: {fileID: 5684374028056023295, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3}
propertyPath: lerpSpeed
value: 5
objectReference: {fileID: 0}
- target: {fileID: 5684374028056023295, guid: 435ba18295a2b0240b1511cd4d5a7bc3, - target: {fileID: 5684374028056023295, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3} type: 3}
propertyPath: shotSpeed propertyPath: shotSpeed
value: 20 value: 12
objectReference: {fileID: 0}
- target: {fileID: 5684374028056023295, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3}
propertyPath: audioVolume
value: 0.1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 5684374028056023295, guid: 435ba18295a2b0240b1511cd4d5a7bc3, - target: {fileID: 5684374028056023295, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3} type: 3}
@ -1906,13 +1976,33 @@ PrefabInstance:
- target: {fileID: 5684374028056023295, guid: 435ba18295a2b0240b1511cd4d5a7bc3, - target: {fileID: 5684374028056023295, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3} type: 3}
propertyPath: shotDuration propertyPath: shotDuration
value: 0.2 value: 0.12
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 5684374028056023295, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3}
propertyPath: shotAudioClip
value:
objectReference: {fileID: 8300000, guid: 18ff7ad4cffb9ae458e8cbaee7c0d423, type: 3}
- target: {fileID: 5684374028056023295, guid: 435ba18295a2b0240b1511cd4d5a7bc3, - target: {fileID: 5684374028056023295, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3} type: 3}
propertyPath: shotOffsetZMul propertyPath: shotOffsetZMul
value: -1 value: -1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 7381137082989080464, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3}
propertyPath: m_LocalScale.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7381137082989080464, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3}
propertyPath: m_LocalScale.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7381137082989080464, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3}
propertyPath: m_LocalScale.z
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7381137082989080464, guid: 435ba18295a2b0240b1511cd4d5a7bc3, - target: {fileID: 7381137082989080464, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3} type: 3}
propertyPath: m_LocalPosition.z propertyPath: m_LocalPosition.z
@ -1923,6 +2013,21 @@ PrefabInstance:
propertyPath: flipAngle propertyPath: flipAngle
value: 35 value: 35
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 7563879847434839099, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3}
propertyPath: m_LocalScale.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7563879847434839099, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3}
propertyPath: m_LocalScale.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7563879847434839099, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3}
propertyPath: m_LocalScale.z
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7563879847434839099, guid: 435ba18295a2b0240b1511cd4d5a7bc3, - target: {fileID: 7563879847434839099, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3} type: 3}
propertyPath: m_LocalPosition.z propertyPath: m_LocalPosition.z
@ -1953,6 +2058,21 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.y propertyPath: m_LocalEulerAnglesHint.y
value: 170 value: 170
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 8294881102992473182, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3}
propertyPath: m_LocalScale.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8294881102992473182, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3}
propertyPath: m_LocalScale.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8294881102992473182, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3}
propertyPath: m_LocalScale.z
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8294881102992473182, guid: 435ba18295a2b0240b1511cd4d5a7bc3, - target: {fileID: 8294881102992473182, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3} type: 3}
propertyPath: m_LocalPosition.z propertyPath: m_LocalPosition.z
@ -1970,10 +2090,20 @@ PrefabInstance:
value: value:
objectReference: {fileID: 4541196389373984, guid: e3f361eacdeb09440850ac7397930cba, objectReference: {fileID: 4541196389373984, guid: e3f361eacdeb09440850ac7397930cba,
type: 3} type: 3}
- target: {fileID: 8361625887681834942, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3}
propertyPath: lerpSpeed
value: 5
objectReference: {fileID: 0}
- target: {fileID: 8361625887681834942, guid: 435ba18295a2b0240b1511cd4d5a7bc3, - target: {fileID: 8361625887681834942, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3} type: 3}
propertyPath: shotSpeed propertyPath: shotSpeed
value: 20 value: 12
objectReference: {fileID: 0}
- target: {fileID: 8361625887681834942, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3}
propertyPath: audioVolume
value: 0.1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 8361625887681834942, guid: 435ba18295a2b0240b1511cd4d5a7bc3, - target: {fileID: 8361625887681834942, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3} type: 3}
@ -1994,13 +2124,33 @@ PrefabInstance:
- target: {fileID: 8361625887681834942, guid: 435ba18295a2b0240b1511cd4d5a7bc3, - target: {fileID: 8361625887681834942, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3} type: 3}
propertyPath: shotDuration propertyPath: shotDuration
value: 0.2 value: 0.12
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 8361625887681834942, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3}
propertyPath: shotAudioClip
value:
objectReference: {fileID: 8300000, guid: 18ff7ad4cffb9ae458e8cbaee7c0d423, type: 3}
- target: {fileID: 8361625887681834942, guid: 435ba18295a2b0240b1511cd4d5a7bc3, - target: {fileID: 8361625887681834942, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3} type: 3}
propertyPath: shotOffsetZMul propertyPath: shotOffsetZMul
value: -1 value: -1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 8610239330163254585, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3}
propertyPath: m_LocalScale.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8610239330163254585, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3}
propertyPath: m_LocalScale.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8610239330163254585, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3}
propertyPath: m_LocalScale.z
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8610239330163254585, guid: 435ba18295a2b0240b1511cd4d5a7bc3, - target: {fileID: 8610239330163254585, guid: 435ba18295a2b0240b1511cd4d5a7bc3,
type: 3} type: 3}
propertyPath: m_LocalPosition.z propertyPath: m_LocalPosition.z
@ -2676,7 +2826,7 @@ MonoBehaviour:
type: 3} type: 3}
muzzlePrefab: {fileID: 4000010921236120, guid: 6a0a0f7a97e0e7747accda091cb14743, muzzlePrefab: {fileID: 4000010921236120, guid: 6a0a0f7a97e0e7747accda091cb14743,
type: 3} type: 3}
shotAudioClip: {fileID: 8300000, guid: 038911361e37ae84b8fdc585b7b83895, type: 3} shotAudioClip: {fileID: 8300000, guid: 18ff7ad4cffb9ae458e8cbaee7c0d423, type: 3}
--- !u!1 &1138813630 --- !u!1 &1138813630
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -2706,7 +2856,7 @@ RectTransform:
m_GameObject: {fileID: 1138813630} m_GameObject: {fileID: 1138813630}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 4.2899303, y: 4.2899303, z: 1} m_LocalScale: {x: 4.064236, y: 4.064236, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 97192695} m_Father: {fileID: 97192695}
@ -2820,7 +2970,7 @@ MonoBehaviour:
type: 3} type: 3}
muzzlePrefab: {fileID: 4000010921236120, guid: 033d08e548a8e0c4b85a2110d068aaa0, muzzlePrefab: {fileID: 4000010921236120, guid: 033d08e548a8e0c4b85a2110d068aaa0,
type: 3} type: 3}
shotAudioClip: {fileID: 8300000, guid: 038911361e37ae84b8fdc585b7b83895, type: 3} shotAudioClip: {fileID: 8300000, guid: 18ff7ad4cffb9ae458e8cbaee7c0d423, type: 3}
--- !u!1 &1291040292 --- !u!1 &1291040292
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -3337,7 +3487,7 @@ MonoBehaviour:
type: 3} type: 3}
muzzlePrefab: {fileID: 4000010921236120, guid: 3735129208580034781b585da5229bda, muzzlePrefab: {fileID: 4000010921236120, guid: 3735129208580034781b585da5229bda,
type: 3} type: 3}
shotAudioClip: {fileID: 8300000, guid: 038911361e37ae84b8fdc585b7b83895, type: 3} shotAudioClip: {fileID: 8300000, guid: 18ff7ad4cffb9ae458e8cbaee7c0d423, type: 3}
--- !u!1 &1647833152 --- !u!1 &1647833152
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -3717,7 +3867,7 @@ Transform:
serializedVersion: 2 serializedVersion: 2
m_LocalRotation: {x: 0, y: 0.9848078, z: -0, w: -0.17364809} m_LocalRotation: {x: 0, y: 0.9848078, z: -0, w: -0.17364809}
m_LocalPosition: {x: -18, y: 0, z: -18} m_LocalPosition: {x: -18, y: 0, z: -18}
m_LocalScale: {x: 1.7142857, y: 1.7142857, z: 1.7142857} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 1721029600} m_Father: {fileID: 1721029600}
@ -3742,16 +3892,17 @@ MonoBehaviour:
continueShotCount: 0 continueShotCount: 0
turret: {fileID: 0} turret: {fileID: 0}
gun: {fileID: 0} gun: {fileID: 0}
shotAudioClip: {fileID: 8300000, guid: 038911361e37ae84b8fdc585b7b83895, type: 3} audioVolume: 0.1
shotAudioClip: {fileID: 8300000, guid: 18ff7ad4cffb9ae458e8cbaee7c0d423, type: 3}
hitAudioClip: {fileID: 8300000, guid: 66e0e24e6ada67b4ba418891e0d2460a, type: 3} hitAudioClip: {fileID: 8300000, guid: 66e0e24e6ada67b4ba418891e0d2460a, type: 3}
shotDuration: 0.2 shotDuration: 0.12
shotNextDuration: 0.1 shotNextDuration: 0.1
shotDistance: 18 shotDistance: 18
shotSpeed: 20 shotSpeed: 12
initBulletCount: 15 initBulletCount: 15
shotOffsetZMul: -1 shotOffsetZMul: -1
shotFixAngleX: 0 shotFixAngleX: 0
lerpSpeed: 8 lerpSpeed: 5
isAutoLock: 0 isAutoLock: 0
isShowMuzzle: 1 isShowMuzzle: 1
pressAction: {fileID: 76562581802851548, guid: 50486e0197319e948b872b25ef15b507, pressAction: {fileID: 76562581802851548, guid: 50486e0197319e948b872b25ef15b507,
@ -3808,7 +3959,7 @@ Transform:
serializedVersion: 2 serializedVersion: 2
m_LocalRotation: {x: 0, y: 0.9848078, z: 0, w: 0.17364825} m_LocalRotation: {x: 0, y: 0.9848078, z: 0, w: 0.17364825}
m_LocalPosition: {x: 18, y: 0, z: -18} m_LocalPosition: {x: 18, y: 0, z: -18}
m_LocalScale: {x: 1.7142857, y: 1.7142857, z: 1.7142857} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 1721029600} m_Father: {fileID: 1721029600}
@ -3833,16 +3984,17 @@ MonoBehaviour:
continueShotCount: 0 continueShotCount: 0
turret: {fileID: 0} turret: {fileID: 0}
gun: {fileID: 0} gun: {fileID: 0}
shotAudioClip: {fileID: 8300000, guid: 038911361e37ae84b8fdc585b7b83895, type: 3} audioVolume: 0.1
shotAudioClip: {fileID: 8300000, guid: 18ff7ad4cffb9ae458e8cbaee7c0d423, type: 3}
hitAudioClip: {fileID: 8300000, guid: 66e0e24e6ada67b4ba418891e0d2460a, type: 3} hitAudioClip: {fileID: 8300000, guid: 66e0e24e6ada67b4ba418891e0d2460a, type: 3}
shotDuration: 0.2 shotDuration: 0.12
shotNextDuration: 0.1 shotNextDuration: 0.1
shotDistance: 18 shotDistance: 18
shotSpeed: 20 shotSpeed: 12
initBulletCount: 15 initBulletCount: 15
shotOffsetZMul: -1 shotOffsetZMul: -1
shotFixAngleX: 0 shotFixAngleX: 0
lerpSpeed: 8 lerpSpeed: 5
isAutoLock: 0 isAutoLock: 0
isShowMuzzle: 1 isShowMuzzle: 1
pressAction: {fileID: 76562581802851548, guid: 50486e0197319e948b872b25ef15b507, pressAction: {fileID: 76562581802851548, guid: 50486e0197319e948b872b25ef15b507,
@ -3972,7 +4124,7 @@ RectTransform:
m_GameObject: {fileID: 2083258305} m_GameObject: {fileID: 2083258305}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 4.2899303, y: 4.2899303, z: 1} m_LocalScale: {x: 4.064236, y: 4.064236, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 97192695} m_Father: {fileID: 97192695}
@ -4086,7 +4238,7 @@ MonoBehaviour:
type: 3} type: 3}
muzzlePrefab: {fileID: 4000010921236120, guid: 2cc07ac0b88fafc40b730713b6dac672, muzzlePrefab: {fileID: 4000010921236120, guid: 2cc07ac0b88fafc40b730713b6dac672,
type: 3} type: 3}
shotAudioClip: {fileID: 8300000, guid: 038911361e37ae84b8fdc585b7b83895, type: 3} shotAudioClip: {fileID: 8300000, guid: 18ff7ad4cffb9ae458e8cbaee7c0d423, type: 3}
--- !u!1660057539 &9223372036854775807 --- !u!1660057539 &9223372036854775807
SceneRoots: SceneRoots:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

Binary file not shown.

View File

@ -0,0 +1,23 @@
fileFormatVersion: 2
guid: DnJJ4y38B38mTfrH627/jC+DuoHJg99niITNY8HPTwPJ+A/kfUNcPG8=
AudioImporter:
externalObjects: {}
serializedVersion: 7
defaultSettings:
serializedVersion: 2
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
preloadAudioData: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

View File

@ -24,6 +24,8 @@ public class Shot : MonoBehaviour
public Transform turret; public Transform turret;
public Transform gun; public Transform gun;
[Tooltip("音效声音大小")]
public float audioVolume = 1f;
[Tooltip("发射音效")] [Tooltip("发射音效")]
public AudioClip shotAudioClip; public AudioClip shotAudioClip;
[Tooltip("击中音效")] [Tooltip("击中音效")]
@ -394,7 +396,7 @@ public class Shot : MonoBehaviour
{ {
if (hitAudioClip != null) if (hitAudioClip != null)
{ {
AudioTool.AudioSource.PlayOneShot(hitAudioClip, 0.5f); AudioTool.AudioSource.PlayOneShot(hitAudioClip, audioVolume);
} }
currentShotCount++; currentShotCount++;
@ -455,10 +457,10 @@ public class Shot : MonoBehaviour
// 1. 播放音效 // 1. 播放音效
if (!isNextLineShot && shotAudioClip != null) if (!isNextLineShot && shotAudioClip != null)
{ {
if(DateTime.Now - beforeShotTime > TimeSpan.FromSeconds(shotDuration)) if (DateTime.Now - beforeShotTime > TimeSpan.FromSeconds(shotDuration))
{ {
beforeShotTime = DateTime.Now; beforeShotTime = DateTime.Now;
AudioTool.AudioSource.PlayOneShot(shotAudioClip); AudioTool.AudioSource.PlayOneShot(shotAudioClip, audioVolume);
} }
} }
@ -556,7 +558,7 @@ public class Shot : MonoBehaviour
{ {
//动画完成处理(超出视距范围外,或者击中爆炸) //动画完成处理(超出视距范围外,或者击中爆炸)
ShotBulletComplete(bulletComp, currentShotCount, muzzleObj); ShotBulletComplete(bulletComp, currentShotCount, muzzleObj);
}); });
if (muzzleObj != null) if (muzzleObj != null)
{ {

View File

@ -29,7 +29,7 @@ MonoBehaviour:
HideAfterCallMain: 1 HideAfterCallMain: 1
preloadFiles: preloadFiles:
Orientation: 0 Orientation: 0
bgImageSrc: Assets/TowerDefence/Images/SplashScreen/SplashScreen.jpg bgImageSrc: Assets/Game1/Images/SplashScreen/SplashScreen2.jpg
dataFileSubPrefix: dataFileSubPrefix:
maxStorage: 200 maxStorage: 200
defaultReleaseSize: 31457280 defaultReleaseSize: 31457280

View File

@ -1020,7 +1020,7 @@ PlayerSettings:
-s ERROR_ON_UNDEFINED_SYMBOLS=0 -s TOTAL_MEMORY=256MB -s EXPORTED_RUNTIME_METHODS=''["ccall","cwrap","stackTrace","addRunDependency","removeRunDependency","FS_createPath","FS_createDataFile","stackTrace","writeStackCookie","checkStackCookie","lengthBytesUTF8","stringToUTF8"]'' -s ERROR_ON_UNDEFINED_SYMBOLS=0 -s TOTAL_MEMORY=256MB -s EXPORTED_RUNTIME_METHODS=''["ccall","cwrap","stackTrace","addRunDependency","removeRunDependency","FS_createPath","FS_createDataFile","stackTrace","writeStackCookie","checkStackCookie","lengthBytesUTF8","stringToUTF8"]''
--profiling-funcs ' --profiling-funcs '
weixinMiniGameModulesDirectory: weixinMiniGameModulesDirectory:
weixinMiniGameTemplate: PATH:H:\Dev\UMiniGame\Library\PackageCache\com.qq.weixin.minigame@4443e5a9bc\WebGLTemplates\WXTemplate2022TJ weixinMiniGameTemplate: PATH:E:\Dev3\UMiniGame\Library\PackageCache\com.qq.weixin.minigame@4443e5a9bc\WebGLTemplates\WXTemplate2022TJ
weixinMiniGameAnalyzeBuildSize: 0 weixinMiniGameAnalyzeBuildSize: 0
weixinMiniGameUseEmbeddedResources: 0 weixinMiniGameUseEmbeddedResources: 0
weixinMiniGameCompressionFormat: 2 weixinMiniGameCompressionFormat: 2