Commit c83631f1 authored by 杨泽宇's avatar 杨泽宇

更新

parent ffa1abd5
......@@ -8924,6 +8924,134 @@ Transform:
m_CorrespondingSourceObject: {fileID: 497674, guid: 4cca7528b2dd17349ba3af63e9a4e9bd, type: 3}
m_PrefabInstance: {fileID: 391864702}
m_PrefabAsset: {fileID: 0}
--- !u!1 &393423564
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 393423565}
- component: {fileID: 393423566}
m_Layer: 0
m_Name: "\u80CC\u666F\u97F3\u4E50"
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &393423565
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 393423564}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1955992606}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!82 &393423566
AudioSource:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 393423564}
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: 0}
m_audioClip: {fileID: 0}
m_PlayOnAwake: 1
m_Volume: 1
m_Pitch: 1
Loop: 0
Mute: 0
Spatialize: 0
SpatializePostEffects: 0
Priority: 128
DopplerLevel: 1
MinDistance: 1
MaxDistance: 500
Pan2D: 0
rolloffMode: 0
BypassEffects: 0
BypassListenerEffects: 0
BypassReverbZones: 0
rolloffCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 1
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
panLevelCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
spreadCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
reverbZoneMixCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
--- !u!1001 &397621577
PrefabInstance:
m_ObjectHideFlags: 0
......@@ -17856,7 +17984,6 @@ Transform:
- {fileID: 954967911}
- {fileID: 1176898240}
- {fileID: 65298910}
- {fileID: 2070346015}
- {fileID: 1617800978}
m_Father: {fileID: 224032582}
m_RootOrder: 0
......@@ -35664,7 +35791,7 @@ Transform:
- {fileID: 166180296}
- {fileID: 2070168288}
m_Father: {fileID: 841979737}
m_RootOrder: 6
m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1621230061
GameObject:
......@@ -44311,6 +44438,38 @@ Transform:
m_Father: {fileID: 2053213363}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1955992605
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1955992606}
m_Layer: 0
m_Name: '[Audio]'
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1955992606
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1955992605}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 14.612036, y: -4.972002, z: -8.208846}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 393423565}
m_Father: {fileID: 0}
m_RootOrder: 7
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &1956859999
PrefabInstance:
m_ObjectHideFlags: 0
......@@ -46704,161 +46863,6 @@ Transform:
m_CorrespondingSourceObject: {fileID: 4581174368300158, guid: cf5c497dab271a94ea67c68a4ff17901, type: 3}
m_PrefabInstance: {fileID: 2070168287}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &2070346014
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 841979737}
m_Modifications:
- target: {fileID: 1039629085476194, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
propertyPath: m_StaticEditorFlags
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1281390812340332, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
propertyPath: m_StaticEditorFlags
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1323208419837002, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
propertyPath: m_StaticEditorFlags
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1542902510608036, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
propertyPath: m_StaticEditorFlags
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1622232976377010, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
propertyPath: m_StaticEditorFlags
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1726313305313632, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
propertyPath: m_Name
value: "\u684C\u5B50"
objectReference: {fileID: 0}
- target: {fileID: 1726313305313632, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1726313305313632, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
propertyPath: m_StaticEditorFlags
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1759630777689410, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
propertyPath: m_StaticEditorFlags
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1783922960785520, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
propertyPath: m_StaticEditorFlags
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1786883054691498, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
propertyPath: m_StaticEditorFlags
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1874875865659392, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
propertyPath: m_StaticEditorFlags
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1929250437691182, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
propertyPath: m_StaticEditorFlags
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1931951053581256, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
propertyPath: m_StaticEditorFlags
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1988315547219024, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
propertyPath: m_StaticEditorFlags
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4852415821403696, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
propertyPath: m_RootOrder
value: 5
objectReference: {fileID: 0}
- target: {fileID: 4852415821403696, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
propertyPath: m_LocalScale.x
value: 0.4957
objectReference: {fileID: 0}
- target: {fileID: 4852415821403696, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
propertyPath: m_LocalScale.y
value: 0.74904
objectReference: {fileID: 0}
- target: {fileID: 4852415821403696, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
propertyPath: m_LocalScale.z
value: 1.1703
objectReference: {fileID: 0}
- target: {fileID: 4852415821403696, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
propertyPath: m_LocalPosition.x
value: 4.987889
objectReference: {fileID: 0}
- target: {fileID: 4852415821403696, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
propertyPath: m_LocalPosition.y
value: -1.68
objectReference: {fileID: 0}
- target: {fileID: 4852415821403696, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
propertyPath: m_LocalPosition.z
value: -8.067488
objectReference: {fileID: 0}
- target: {fileID: 4852415821403696, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4852415821403696, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4852415821403696, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4852415821403696, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4852415821403696, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4852415821403696, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4852415821403696, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
--- !u!4 &2070346015 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 4852415821403696, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
m_PrefabInstance: {fileID: 2070346014}
m_PrefabAsset: {fileID: 0}
--- !u!1 &2070346016 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 1726313305313632, guid: b436bc42939f2fc4e9807f0ed8923764, type: 3}
m_PrefabInstance: {fileID: 2070346014}
m_PrefabAsset: {fileID: 0}
--- !u!95 &2070346017
Animator:
serializedVersion: 4
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2070346016}
m_Enabled: 1
m_Avatar: {fileID: 0}
m_Controller: {fileID: 9100000, guid: 70c45b32e65cc324bb28e0f3b1a81dc6, type: 2}
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
--- !u!1001 &2075051724
PrefabInstance:
m_ObjectHideFlags: 0
......@@ -886,6 +886,134 @@ Rigidbody:
m_Interpolate: 0
m_Constraints: 126
m_CollisionDetection: 2
--- !u!1 &21216015
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 21216016}
- component: {fileID: 21216017}
m_Layer: 0
m_Name: "\u80CC\u666F\u97F3\u4E50"
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &21216016
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 21216015}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1164186546}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!82 &21216017
AudioSource:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 21216015}
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: 0}
m_audioClip: {fileID: 0}
m_PlayOnAwake: 1
m_Volume: 1
m_Pitch: 1
Loop: 0
Mute: 0
Spatialize: 0
SpatializePostEffects: 0
Priority: 128
DopplerLevel: 1
MinDistance: 1
MaxDistance: 500
Pan2D: 0
rolloffMode: 0
BypassEffects: 0
BypassListenerEffects: 0
BypassReverbZones: 0
rolloffCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 1
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
panLevelCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
spreadCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
reverbZoneMixCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
--- !u!1 &23727020
GameObject:
m_ObjectHideFlags: 0
......@@ -27801,76 +27929,6 @@ Transform:
m_CorrespondingSourceObject: {fileID: 494454, guid: 330cb4022ab025540873195715e79709, type: 3}
m_PrefabInstance: {fileID: 692411056}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &693958519
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 1516729367}
m_Modifications:
- target: {fileID: 106414, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_Name
value: Chest3A (1)
objectReference: {fileID: 0}
- target: {fileID: 106414, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 132136, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_RootOrder
value: 10
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_LocalPosition.x
value: -11.14
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_LocalPosition.y
value: 0.52157086
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_LocalPosition.z
value: -11.51
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_LocalRotation.w
value: 0.00015377997
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_LocalRotation.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
--- !u!4 &693958520 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
m_PrefabInstance: {fileID: 693958519}
m_PrefabAsset: {fileID: 0}
--- !u!1 &694409863 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 619892579208741393, guid: f0be1cf98bccf194d81d6f33e8b157fd, type: 3}
......@@ -31660,84 +31718,6 @@ Transform:
m_CorrespondingSourceObject: {fileID: 430130, guid: 4231e0dded830ca4aa3c26a4a570a9ed, type: 3}
m_PrefabInstance: {fileID: 794178395}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &796878636
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 1516729367}
m_Modifications:
- target: {fileID: 151424, guid: 59239972e06758840a5ea9b8ed1edd88, type: 3}
propertyPath: m_Name
value: Camp1_Shooting_shield
objectReference: {fileID: 0}
- target: {fileID: 151424, guid: 59239972e06758840a5ea9b8ed1edd88, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 421950, guid: 59239972e06758840a5ea9b8ed1edd88, type: 3}
propertyPath: m_RootOrder
value: 5
objectReference: {fileID: 0}
- target: {fileID: 421950, guid: 59239972e06758840a5ea9b8ed1edd88, type: 3}
propertyPath: m_LocalScale.x
value: 1.4204714
objectReference: {fileID: 0}
- target: {fileID: 421950, guid: 59239972e06758840a5ea9b8ed1edd88, type: 3}
propertyPath: m_LocalScale.y
value: 1.4204713
objectReference: {fileID: 0}
- target: {fileID: 421950, guid: 59239972e06758840a5ea9b8ed1edd88, type: 3}
propertyPath: m_LocalScale.z
value: 1.4204714
objectReference: {fileID: 0}
- target: {fileID: 421950, guid: 59239972e06758840a5ea9b8ed1edd88, type: 3}
propertyPath: m_LocalPosition.x
value: -11.07007
objectReference: {fileID: 0}
- target: {fileID: 421950, guid: 59239972e06758840a5ea9b8ed1edd88, type: 3}
propertyPath: m_LocalPosition.y
value: 0.56
objectReference: {fileID: 0}
- target: {fileID: 421950, guid: 59239972e06758840a5ea9b8ed1edd88, type: 3}
propertyPath: m_LocalPosition.z
value: 9.129
objectReference: {fileID: 0}
- target: {fileID: 421950, guid: 59239972e06758840a5ea9b8ed1edd88, type: 3}
propertyPath: m_LocalRotation.w
value: 0.00018064678
objectReference: {fileID: 0}
- target: {fileID: 421950, guid: 59239972e06758840a5ea9b8ed1edd88, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 421950, guid: 59239972e06758840a5ea9b8ed1edd88, type: 3}
propertyPath: m_LocalRotation.y
value: -1
objectReference: {fileID: 0}
- target: {fileID: 421950, guid: 59239972e06758840a5ea9b8ed1edd88, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 421950, guid: 59239972e06758840a5ea9b8ed1edd88, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 421950, guid: 59239972e06758840a5ea9b8ed1edd88, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: -179.979
objectReference: {fileID: 0}
- target: {fileID: 421950, guid: 59239972e06758840a5ea9b8ed1edd88, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 59239972e06758840a5ea9b8ed1edd88, type: 3}
--- !u!4 &796878637 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 421950, guid: 59239972e06758840a5ea9b8ed1edd88, type: 3}
m_PrefabInstance: {fileID: 796878636}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &797960724
PrefabInstance:
m_ObjectHideFlags: 0
......@@ -35948,76 +35928,6 @@ Transform:
m_CorrespondingSourceObject: {fileID: 5436288968888213965, guid: 5b8e6f448d2678049b8ada36f8ac8469, type: 3}
m_PrefabInstance: {fileID: 909737239}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &912185099
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 1516729367}
m_Modifications:
- target: {fileID: 106414, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_Name
value: Chest3A (2)
objectReference: {fileID: 0}
- target: {fileID: 106414, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 132136, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_RootOrder
value: 11
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_LocalPosition.x
value: -11.061
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_LocalPosition.y
value: 0.52157086
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_LocalPosition.z
value: -8.89
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_LocalRotation.y
value: -0.00013421474
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
--- !u!4 &912185100 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
m_PrefabInstance: {fileID: 912185099}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &912713501
PrefabInstance:
m_ObjectHideFlags: 0
......@@ -46697,6 +46607,38 @@ Rigidbody:
m_Interpolate: 0
m_Constraints: 126
m_CollisionDetection: 2
--- !u!1 &1164186545
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1164186546}
m_Layer: 0
m_Name: '[Audio]'
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1164186546
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1164186545}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 14.612036, y: -4.972002, z: -8.208846}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 21216016}
m_Father: {fileID: 0}
m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1164215213
GameObject:
m_ObjectHideFlags: 0
......@@ -56897,76 +56839,6 @@ Transform:
m_CorrespondingSourceObject: {fileID: 483478, guid: ce1b1c89cc01b594b97ffd660fb7409e, type: 3}
m_PrefabInstance: {fileID: 1443862389}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &1445822669
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 1516729367}
m_Modifications:
- target: {fileID: 106414, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_Name
value: Chest3A
objectReference: {fileID: 0}
- target: {fileID: 106414, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 132136, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_RootOrder
value: 9
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_LocalPosition.x
value: 4.467
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_LocalPosition.y
value: 0.52157086
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_LocalPosition.z
value: -16.096
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_LocalRotation.w
value: 0.7070982
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_LocalRotation.y
value: 0.7071154
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
--- !u!4 &1445822670 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 457420, guid: f0f2dc8bb3179ad41a8ed8affbaa373a, type: 3}
m_PrefabInstance: {fileID: 1445822669}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &1447547632
PrefabInstance:
m_ObjectHideFlags: 0
......@@ -58133,72 +58005,6 @@ MeshRenderer:
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!1001 &1466786816
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 1516729367}
m_Modifications:
- target: {fileID: 619892579208741393, guid: f0be1cf98bccf194d81d6f33e8b157fd, type: 3}
propertyPath: m_Name
value: "\u7BAD"
objectReference: {fileID: 0}
- target: {fileID: 619892579208741393, guid: f0be1cf98bccf194d81d6f33e8b157fd, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4452497413181212913, guid: f0be1cf98bccf194d81d6f33e8b157fd, type: 3}
propertyPath: m_RootOrder
value: 6
objectReference: {fileID: 0}
- target: {fileID: 4452497413181212913, guid: f0be1cf98bccf194d81d6f33e8b157fd, type: 3}
propertyPath: m_LocalPosition.x
value: -12
objectReference: {fileID: 0}
- target: {fileID: 4452497413181212913, guid: f0be1cf98bccf194d81d6f33e8b157fd, type: 3}
propertyPath: m_LocalPosition.y
value: 1.481
objectReference: {fileID: 0}
- target: {fileID: 4452497413181212913, guid: f0be1cf98bccf194d81d6f33e8b157fd, type: 3}
propertyPath: m_LocalPosition.z
value: 3.252
objectReference: {fileID: 0}
- target: {fileID: 4452497413181212913, guid: f0be1cf98bccf194d81d6f33e8b157fd, type: 3}
propertyPath: m_LocalRotation.w
value: -0.25857484
objectReference: {fileID: 0}
- target: {fileID: 4452497413181212913, guid: f0be1cf98bccf194d81d6f33e8b157fd, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4452497413181212913, guid: f0be1cf98bccf194d81d6f33e8b157fd, type: 3}
propertyPath: m_LocalRotation.y
value: -0.9659913
objectReference: {fileID: 0}
- target: {fileID: 4452497413181212913, guid: f0be1cf98bccf194d81d6f33e8b157fd, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4452497413181212913, guid: f0be1cf98bccf194d81d6f33e8b157fd, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4452497413181212913, guid: f0be1cf98bccf194d81d6f33e8b157fd, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: -209.971
objectReference: {fileID: 0}
- target: {fileID: 4452497413181212913, guid: f0be1cf98bccf194d81d6f33e8b157fd, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: f0be1cf98bccf194d81d6f33e8b157fd, type: 3}
--- !u!4 &1466786817 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 4452497413181212913, guid: f0be1cf98bccf194d81d6f33e8b157fd, type: 3}
m_PrefabInstance: {fileID: 1466786816}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &1467475530
PrefabInstance:
m_ObjectHideFlags: 0
......@@ -59293,12 +59099,6 @@ Transform:
- {fileID: 765160589}
- {fileID: 2037598886}
- {fileID: 1393080857}
- {fileID: 796878637}
- {fileID: 1466786817}
- {fileID: 1845275291}
- {fileID: 1445822670}
- {fileID: 693958520}
- {fileID: 912185100}
m_Father: {fileID: 167421220}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
......@@ -70911,72 +70711,6 @@ Transform:
m_CorrespondingSourceObject: {fileID: 483478, guid: ce1b1c89cc01b594b97ffd660fb7409e, type: 3}
m_PrefabInstance: {fileID: 1838711427}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &1845275290
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 1516729367}
m_Modifications:
- target: {fileID: 7163566398723780895, guid: cb79a93b562dcd1469eb5b5aa463b6f9, type: 3}
propertyPath: m_Name
value: "\u5F13"
objectReference: {fileID: 0}
- target: {fileID: 7163566398723780895, guid: cb79a93b562dcd1469eb5b5aa463b6f9, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7503499472696683429, guid: cb79a93b562dcd1469eb5b5aa463b6f9, type: 3}
propertyPath: m_RootOrder
value: 7
objectReference: {fileID: 0}
- target: {fileID: 7503499472696683429, guid: cb79a93b562dcd1469eb5b5aa463b6f9, type: 3}
propertyPath: m_LocalPosition.x
value: -11.761053
objectReference: {fileID: 0}
- target: {fileID: 7503499472696683429, guid: cb79a93b562dcd1469eb5b5aa463b6f9, type: 3}
propertyPath: m_LocalPosition.y
value: 1.4459999
objectReference: {fileID: 0}
- target: {fileID: 7503499472696683429, guid: cb79a93b562dcd1469eb5b5aa463b6f9, type: 3}
propertyPath: m_LocalPosition.z
value: 2.8938642
objectReference: {fileID: 0}
- target: {fileID: 7503499472696683429, guid: cb79a93b562dcd1469eb5b5aa463b6f9, type: 3}
propertyPath: m_LocalRotation.w
value: 0.9183955
objectReference: {fileID: 0}
- target: {fileID: 7503499472696683429, guid: cb79a93b562dcd1469eb5b5aa463b6f9, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 7503499472696683429, guid: cb79a93b562dcd1469eb5b5aa463b6f9, type: 3}
propertyPath: m_LocalRotation.y
value: 0.39566362
objectReference: {fileID: 0}
- target: {fileID: 7503499472696683429, guid: cb79a93b562dcd1469eb5b5aa463b6f9, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 7503499472696683429, guid: cb79a93b562dcd1469eb5b5aa463b6f9, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7503499472696683429, guid: cb79a93b562dcd1469eb5b5aa463b6f9, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 46.615
objectReference: {fileID: 0}
- target: {fileID: 7503499472696683429, guid: cb79a93b562dcd1469eb5b5aa463b6f9, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: cb79a93b562dcd1469eb5b5aa463b6f9, type: 3}
--- !u!4 &1845275291 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 7503499472696683429, guid: cb79a93b562dcd1469eb5b5aa463b6f9, type: 3}
m_PrefabInstance: {fileID: 1845275290}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &1846064574
PrefabInstance:
m_ObjectHideFlags: 0
......@@ -81395,10 +81129,34 @@ PrefabInstance:
m_Modification:
m_TransformParent: {fileID: 1462700133}
m_Modifications:
- target: {fileID: 1352057902094776254, guid: 214988958e981e741b51092f52f8ad65, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.size
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1352057902094776254, guid: 214988958e981e741b51092f52f8ad65, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Mode
value: 5
objectReference: {fileID: 0}
- target: {fileID: 1352057902094776254, guid: 214988958e981e741b51092f52f8ad65, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target
value:
objectReference: {fileID: 771713723}
- target: {fileID: 1352057902094776254, guid: 214988958e981e741b51092f52f8ad65, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName
value: LoadScene
objectReference: {fileID: 0}
- target: {fileID: 1352057902094776254, guid: 214988958e981e741b51092f52f8ad65, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_TargetAssemblyTypeName
value: SceneLoader, Assembly-CSharp
objectReference: {fileID: 0}
- target: {fileID: 1352057902094776254, guid: 214988958e981e741b51092f52f8ad65, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Arguments.m_StringArgument
value: 1_Maze1
objectReference: {fileID: 0}
- target: {fileID: 1352057902094776254, guid: 214988958e981e741b51092f52f8ad65, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Arguments.m_ObjectArgumentAssemblyTypeName
value: UnityEngine.Object, UnityEngine
objectReference: {fileID: 0}
- target: {fileID: 1352057902135631817, guid: 214988958e981e741b51092f52f8ad65, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target
value:
fileFormatVersion: 2
guid: 282e7966c9781324a8655c830e7bbc21
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
......@@ -4,7 +4,7 @@ using UnityEngine;
using UnityEngine.XR.Interaction.Toolkit;
/// <summary>
/// 更新人物碰撞体的位置
/// 更新人物碰撞体的位置(当玩家蹲下或跳起的时候)
/// </summary>
public class CustomCharacterControllerDriver : CharacterControllerDriver
{
......
fileFormatVersion: 2
guid: 11596f8294e85e044a5b8f5c8a687d6c
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 9a42f6b5fc011c14d8224f50174c3731
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 9e53b40a05a972143b75742019717fed
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
......@@ -3,25 +3,28 @@ using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR.Interaction.Toolkit;
/// <summary>
/// 弓箭控制器
/// </summary>
public class ArrowController : MonoBehaviour
{
// Start is called before the first frame update
public GameObject arrowPrefab;
//[Tooltip("弓箭的预制体")]
//public GameObject arrowPrefab;
//[Tooltip("弓箭生成的地方")]
//public GameObject arrowPlace;
[Tooltip("弓箭搭载到弓的地方")]
public GameObject arrowTrigger;
[Tooltip("弓箭返回的地方")]
public GameObject arrowBack;
[Tooltip("弓箭的朝向")]
public Vector3 arrowHeading;
[Tooltip("弓箭是否可以发射")]
public bool waitingToShoot = false;
void Start()
{
//arrowPlace = GameObject.Find("XR Interaction Setup/XR Origin (XR Rig)/Camera Offset/Main Camera/ArrowPlace");
}
// Update is called once per frame
void Update()
{
//更新弓箭搭载在弓上的位置
arrowHeading = arrowTrigger.transform.position - arrowBack.transform.position;
if (waitingToShoot)
{
......@@ -30,13 +33,16 @@ public class ArrowController : MonoBehaviour
}
}
/// <summary>
/// 用于无限生成弓箭
/// </summary>
//public void GrabArrow()
//{
// GameObject arrow = Instantiate(arrowPrefab, arrowPlace.transform.position, arrowPlace.transform.rotation);
// arrow.transform.parent = GameObject.Find("XR Interaction Setup/XR Origin (XR Rig)/Camera Offset/Main Camera").transform;
//}
public void GrabArrow()
{
//GameObject arrow = Instantiate(arrowPrefab, arrowPlace.transform.position, arrowPlace.transform.rotation);
//arrow.transform.parent = GameObject.Find("XR Interaction Setup/XR Origin (XR Rig)/Camera Offset/Main Camera").transform;
}
public void ReleaseArrow()
{
gameObject.GetComponent<Rigidbody>().useGravity = true;
......@@ -48,8 +54,6 @@ public class ArrowController : MonoBehaviour
gameObject.transform.parent = arrowTrigger.transform;
waitingToShoot = true;
}
Debug.Log("ReleaseArrow:" + gameObject.transform.parent);
}
void OnTriggerEnter(Collider other)
......
......@@ -5,27 +5,22 @@ using UnityEngine.UI;
using TMPro;
using UnityEngine.Events;
/// <summary>
/// 弓箭射中箭靶
/// </summary>
public class ArrowScore : MonoBehaviour
{
[Tooltip("提示文本")]
public TMP_Text text_Tip;
// Start is called before the first frame update
[Tooltip("箭靶中心点(用于计算得分)")]
public GameObject targetCenter;
[Tooltip("集中触发事件")]
public UnityEvent ArrowOnEvent;
void Start()
{
}
// Update is called once per frame
void Update()
{
}
/// <summary>
/// 计算得分和触发击中事件
/// </summary>
/// <param name="collider"></param>
void OnTriggerEnter(Collider collider)
{
if (collider.tag == "Arrow")
......
......@@ -4,7 +4,9 @@ using UnityEngine;
public class ArrowTrigger : MonoBehaviour
{
[Tooltip("保存当前箭是否被箭托触发器触发,并存储触发的箭对象")]
public GameObject arrowOnBow;
[Tooltip("标记当前箭是否处于箭托触发器内部")]
private bool arrowStatus;
void OnTriggerEnter(Collider other)
......
......@@ -8,30 +8,27 @@ using UnityEngine.Events;
/// </summary>
public class BowController : MonoBehaviour
{
[Tooltip("箭的发射速度")]
public float arrowSpeed = 400;
[Tooltip("箭托触发器")]
public GameObject arrowTrigger;
[Tooltip("箭搭载点")]
public GameObject arrowAttachedPoint;
[Tooltip("弓弦初始点")]
public GameObject stringStartPoint;
[Tooltip("弓弦末端")]
public GameObject stringEndPoint;
[Tooltip("弓弦中心点")]
public GameObject stringMiddlePoint;
[Tooltip("弓箭发射出发事件")]
public UnityEvent ArrowOnEvent;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
/// <summary>
/// 释放弓弦,发射箭
/// </summary>
public void ReleaseString()
{
//Debug.Log("ReleaseString");
stringMiddlePoint.transform.position = (stringStartPoint.transform.position + stringEndPoint.transform.position + new Vector3(0, 0.07f, 0)) / 2;
stringMiddlePoint.GetComponent<Rigidbody>().velocity = new Vector3(0, 0, 0);
stringMiddlePoint.GetComponent<Rigidbody>().angularVelocity = new Vector3(0, 0, 0);
......
fileFormatVersion: 2
guid: 5d603c08ab62c7f4c84d0ca40ee7ee08
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: ccefe2de7e150544280f2d61bf8f1d37
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 55c835296dc895b48b483e36b7991ed7
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 7a48928f9177a8e4ea3299dbbdb528ad
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 961d2bb484f418c4a8a7fd2cfdbd5da0
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
......@@ -59,10 +59,10 @@ AnimatorStateMachine:
m_ChildStates:
- serializedVersion: 1
m_State: {fileID: -5373289927847206711}
m_Position: {x: 300, y: 190, z: 0}
m_Position: {x: 340, y: 200, z: 0}
- serializedVersion: 1
m_State: {fileID: 4282061337827641718}
m_Position: {x: 330, y: 90, z: 0}
m_Position: {x: 360, y: 110, z: 0}
- serializedVersion: 1
m_State: {fileID: 8482386419465628447}
m_Position: {x: 326, y: 39, z: 0}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment