bgm
This commit is contained in:
parent
22bbc32fee
commit
740be9a39b
@ -898,6 +898,80 @@ Transform:
|
|||||||
m_CorrespondingSourceObject: {fileID: 7695382262159251195, guid: ccaf4affb26fa0d44ae2c5195096ae23, type: 3}
|
m_CorrespondingSourceObject: {fileID: 7695382262159251195, guid: ccaf4affb26fa0d44ae2c5195096ae23, type: 3}
|
||||||
m_PrefabInstance: {fileID: 211893249}
|
m_PrefabInstance: {fileID: 211893249}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
--- !u!1001 &244540676
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 1791811809}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 3639845821426641848, guid: 82d978b18e27ff34dbbc77617ff023ff, type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3639845821426641848, guid: 82d978b18e27ff34dbbc77617ff023ff, type: 3}
|
||||||
|
propertyPath: m_LocalScale.x
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3639845821426641848, guid: 82d978b18e27ff34dbbc77617ff023ff, type: 3}
|
||||||
|
propertyPath: m_LocalScale.y
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3639845821426641848, guid: 82d978b18e27ff34dbbc77617ff023ff, type: 3}
|
||||||
|
propertyPath: m_LocalScale.z
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3639845821426641848, guid: 82d978b18e27ff34dbbc77617ff023ff, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3639845821426641848, guid: 82d978b18e27ff34dbbc77617ff023ff, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3639845821426641848, guid: 82d978b18e27ff34dbbc77617ff023ff, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3639845821426641848, guid: 82d978b18e27ff34dbbc77617ff023ff, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3639845821426641848, guid: 82d978b18e27ff34dbbc77617ff023ff, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: 0.000000021855694
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3639845821426641848, guid: 82d978b18e27ff34dbbc77617ff023ff, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3639845821426641848, guid: 82d978b18e27ff34dbbc77617ff023ff, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: -0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3639845821426641848, guid: 82d978b18e27ff34dbbc77617ff023ff, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3639845821426641848, guid: 82d978b18e27ff34dbbc77617ff023ff, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3639845821426641848, guid: 82d978b18e27ff34dbbc77617ff023ff, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4163723892946596098, guid: 82d978b18e27ff34dbbc77617ff023ff, type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: Spaceship_4_pt1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: 82d978b18e27ff34dbbc77617ff023ff, type: 3}
|
||||||
|
--- !u!4 &244540677 stripped
|
||||||
|
Transform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 3639845821426641848, guid: 82d978b18e27ff34dbbc77617ff023ff, type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 244540676}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
--- !u!1001 &258632380
|
--- !u!1001 &258632380
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -2490,6 +2564,7 @@ GameObject:
|
|||||||
- component: {fileID: 551772364}
|
- component: {fileID: 551772364}
|
||||||
- component: {fileID: 551772363}
|
- component: {fileID: 551772363}
|
||||||
- component: {fileID: 551772367}
|
- component: {fileID: 551772367}
|
||||||
|
- component: {fileID: 551772368}
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: player
|
m_Name: player
|
||||||
m_TagString: Player
|
m_TagString: Player
|
||||||
@ -2574,6 +2649,102 @@ MonoBehaviour:
|
|||||||
- {fileID: 1510022094}
|
- {fileID: 1510022094}
|
||||||
fireRange: 100000
|
fireRange: 100000
|
||||||
missileSpeed: 20
|
missileSpeed: 20
|
||||||
|
--- !u!82 &551772368
|
||||||
|
AudioSource:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 551772362}
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 4
|
||||||
|
OutputAudioMixerGroup: {fileID: 0}
|
||||||
|
m_audioClip: {fileID: 8300000, guid: 08275926559dacf46a13a26c527261d7, type: 3}
|
||||||
|
m_PlayOnAwake: 1
|
||||||
|
m_Volume: 1
|
||||||
|
m_Pitch: 1
|
||||||
|
Loop: 1
|
||||||
|
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 &564820385
|
--- !u!1001 &564820385
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -8925,6 +9096,61 @@ Rigidbody:
|
|||||||
m_Interpolate: 0
|
m_Interpolate: 0
|
||||||
m_Constraints: 126
|
m_Constraints: 126
|
||||||
m_CollisionDetection: 0
|
m_CollisionDetection: 0
|
||||||
|
--- !u!1 &1791811807
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1791811809}
|
||||||
|
- component: {fileID: 1791811808}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Wingman (1)
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!114 &1791811808
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1791811807}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 5d4e303ad852e2744befaaee843307d9, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
player: {fileID: 0}
|
||||||
|
followDistance: 30
|
||||||
|
followHeight: 20
|
||||||
|
followLR: -10
|
||||||
|
followSpeed: 5
|
||||||
|
rotationSpeed: 3
|
||||||
|
speed: 10
|
||||||
|
target: {fileID: 0}
|
||||||
|
missilePrefab: {fileID: 1238843893459588, guid: 5e3d6c0072deb2e488ab27aa60bb5cb9, type: 3}
|
||||||
|
missileSpawnPoint: {fileID: 0}
|
||||||
|
--- !u!4 &1791811809
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1791811807}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 309.7, y: 0, z: 235}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 244540677}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 7
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!1001 &1813134572
|
--- !u!1001 &1813134572
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -9713,6 +9939,7 @@ MonoBehaviour:
|
|||||||
player: {fileID: 0}
|
player: {fileID: 0}
|
||||||
followDistance: 30
|
followDistance: 30
|
||||||
followHeight: 20
|
followHeight: 20
|
||||||
|
followLR: 10
|
||||||
followSpeed: 5
|
followSpeed: 5
|
||||||
rotationSpeed: 3
|
rotationSpeed: 3
|
||||||
speed: 10
|
speed: 10
|
||||||
|
BIN
Assets/music/bgm/bgm.mp3
Normal file
BIN
Assets/music/bgm/bgm.mp3
Normal file
Binary file not shown.
22
Assets/music/bgm/bgm.mp3.meta
Normal file
22
Assets/music/bgm/bgm.mp3.meta
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 08275926559dacf46a13a26c527261d7
|
||||||
|
AudioImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 6
|
||||||
|
defaultSettings:
|
||||||
|
loadType: 0
|
||||||
|
sampleRateSetting: 0
|
||||||
|
sampleRateOverride: 44100
|
||||||
|
compressionFormat: 1
|
||||||
|
quality: 1
|
||||||
|
conversionMode: 0
|
||||||
|
platformSettingOverrides: {}
|
||||||
|
forceToMono: 0
|
||||||
|
normalize: 1
|
||||||
|
preloadAudioData: 1
|
||||||
|
loadInBackground: 0
|
||||||
|
ambisonic: 0
|
||||||
|
3D: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -11,6 +11,7 @@ public class WingmanController : MonoBehaviour
|
|||||||
public Transform player; // 主机(玩家飞机)
|
public Transform player; // 主机(玩家飞机)
|
||||||
public float followDistance = 30f; // 僚机与主机的跟随距离
|
public float followDistance = 30f; // 僚机与主机的跟随距离
|
||||||
public float followHeight = 20f; // 僚机与主机之间的高度差
|
public float followHeight = 20f; // 僚机与主机之间的高度差
|
||||||
|
public float followLR = 10;
|
||||||
public float followSpeed = 5f; // 僚机跟随的速度
|
public float followSpeed = 5f; // 僚机跟随的速度
|
||||||
public float rotationSpeed = 3f; // 僚机旋转速度
|
public float rotationSpeed = 3f; // 僚机旋转速度
|
||||||
public float speed = 10f; // 导弹的速度
|
public float speed = 10f; // 导弹的速度
|
||||||
@ -71,7 +72,7 @@ public class WingmanController : MonoBehaviour
|
|||||||
// 跟随主机
|
// 跟随主机
|
||||||
private void FollowPlayer()
|
private void FollowPlayer()
|
||||||
{
|
{
|
||||||
Vector3 desiredPosition = player.position - player.forward * followDistance + Vector3.up * followHeight;
|
Vector3 desiredPosition = player.position - player.forward * followDistance + Vector3.up * followHeight+ Vector3.back* followLR;
|
||||||
Vector3 smoothedPosition = Vector3.Lerp(transform.position, desiredPosition, followSpeed * Time.deltaTime);
|
Vector3 smoothedPosition = Vector3.Lerp(transform.position, desiredPosition, followSpeed * Time.deltaTime);
|
||||||
transform.position = smoothedPosition;
|
transform.position = smoothedPosition;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user