Merge branch 'main' of 121.165.94.243:capers/bluewater into NTG

This commit is contained in:
NTG_Lenovo 2023-09-13 12:23:47 +09:00
commit 5a56a9039b
16 changed files with 10496 additions and 171 deletions

View File

@ -15,7 +15,7 @@ RenderSettings:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
serializedVersion: 9 serializedVersion: 9
m_Fog: 1 m_Fog: 1
m_FogColor: {r: 0.9245283, g: 0.9245283, b: 0.9245283, a: 1} m_FogColor: {r: 0.7989498, g: 0.8867924, b: 0.88501716, a: 1}
m_FogMode: 3 m_FogMode: 3
m_FogDensity: 0.007 m_FogDensity: 0.007
m_LinearFogStart: 0 m_LinearFogStart: 0
@ -26,7 +26,7 @@ RenderSettings:
m_AmbientIntensity: 1 m_AmbientIntensity: 1
m_AmbientMode: 0 m_AmbientMode: 0
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
m_SkyboxMaterial: {fileID: 2100000, guid: 2c308a3b06c530748acc49e5e317ee58, type: 2} m_SkyboxMaterial: {fileID: 2100000, guid: 7fece7608763947d9ba913243fda1296, type: 2}
m_HaloStrength: 0.5 m_HaloStrength: 0.5
m_FlareStrength: 1 m_FlareStrength: 1
m_FlareFadeSpeed: 3 m_FlareFadeSpeed: 3
@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity: 1 m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0} m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0} m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0.0001178843, g: 0.006532992, b: 0.05024724, a: 1} m_IndirectSpecularColor: {r: 0.7008067, g: 0.7856396, b: 0.82016647, a: 1}
m_UseRadianceAmbientProbe: 0 m_UseRadianceAmbientProbe: 0
--- !u!157 &4 --- !u!157 &4
LightmapSettings: LightmapSettings:
@ -13934,6 +13934,7 @@ MonoBehaviour:
- {fileID: 21300000, guid: 9180a011ac08440f89deb0b7aa2820f2, type: 3} - {fileID: 21300000, guid: 9180a011ac08440f89deb0b7aa2820f2, type: 3}
- {fileID: 21300000, guid: 9180a011ac08440f89deb0b7aa2820f2, type: 3} - {fileID: 21300000, guid: 9180a011ac08440f89deb0b7aa2820f2, type: 3}
cursorTexture: {fileID: 2800000, guid: 3a146044a282641d99ba04c33b8c2bbf, type: 3} cursorTexture: {fileID: 2800000, guid: 3a146044a282641d99ba04c33b8c2bbf, type: 3}
enemyMarker: {fileID: 21300000, guid: c617a5b08493842c3833527a458fd612, type: 3}
--- !u!4 &107190135 --- !u!4 &107190135
Transform: Transform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -16806,7 +16807,7 @@ PrefabInstance:
serializedVersion: 2 serializedVersion: 2
m_Modification: m_Modification:
serializedVersion: 3 serializedVersion: 3
m_TransformParent: {fileID: 200595900} m_TransformParent: {fileID: 1140805708}
m_Modifications: m_Modifications:
- target: {fileID: 2615590723695262313, guid: fbe5f9d69cf27974fa4899b0bcf542c8, - target: {fileID: 2615590723695262313, guid: fbe5f9d69cf27974fa4899b0bcf542c8,
type: 3} type: 3}
@ -16826,17 +16827,17 @@ PrefabInstance:
- target: {fileID: 2615590723695262313, guid: fbe5f9d69cf27974fa4899b0bcf542c8, - target: {fileID: 2615590723695262313, guid: fbe5f9d69cf27974fa4899b0bcf542c8,
type: 3} type: 3}
propertyPath: m_LocalPosition.x propertyPath: m_LocalPosition.x
value: 61.866997 value: 32.237
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2615590723695262313, guid: fbe5f9d69cf27974fa4899b0bcf542c8, - target: {fileID: 2615590723695262313, guid: fbe5f9d69cf27974fa4899b0bcf542c8,
type: 3} type: 3}
propertyPath: m_LocalPosition.y propertyPath: m_LocalPosition.y
value: 15.52 value: 20.53
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2615590723695262313, guid: fbe5f9d69cf27974fa4899b0bcf542c8, - target: {fileID: 2615590723695262313, guid: fbe5f9d69cf27974fa4899b0bcf542c8,
type: 3} type: 3}
propertyPath: m_LocalPosition.z propertyPath: m_LocalPosition.z
value: -162.25 value: -102.79
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2615590723695262313, guid: fbe5f9d69cf27974fa4899b0bcf542c8, - target: {fileID: 2615590723695262313, guid: fbe5f9d69cf27974fa4899b0bcf542c8,
type: 3} type: 3}
@ -27313,10 +27314,6 @@ Transform:
- {fileID: 1565898989} - {fileID: 1565898989}
- {fileID: 834917485} - {fileID: 834917485}
- {fileID: 1912080424} - {fileID: 1912080424}
- {fileID: 1010297106}
- {fileID: 1344744312}
- {fileID: 1274110287}
- {fileID: 1747236060}
- {fileID: 534668366} - {fileID: 534668366}
- {fileID: 1148974803} - {fileID: 1148974803}
- {fileID: 1019471549} - {fileID: 1019471549}
@ -62443,7 +62440,7 @@ PrefabInstance:
serializedVersion: 2 serializedVersion: 2
m_Modification: m_Modification:
serializedVersion: 3 serializedVersion: 3
m_TransformParent: {fileID: 200595900} m_TransformParent: {fileID: 1140805708}
m_Modifications: m_Modifications:
- target: {fileID: 8555732528907214649, guid: 0fb8c5f1ef56d8449a3945a5d886c1b9, - target: {fileID: 8555732528907214649, guid: 0fb8c5f1ef56d8449a3945a5d886c1b9,
type: 3} type: 3}
@ -62463,17 +62460,17 @@ PrefabInstance:
- target: {fileID: 8555732528907214649, guid: 0fb8c5f1ef56d8449a3945a5d886c1b9, - target: {fileID: 8555732528907214649, guid: 0fb8c5f1ef56d8449a3945a5d886c1b9,
type: 3} type: 3}
propertyPath: m_LocalPosition.x propertyPath: m_LocalPosition.x
value: -7.08 value: -36.71
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 8555732528907214649, guid: 0fb8c5f1ef56d8449a3945a5d886c1b9, - target: {fileID: 8555732528907214649, guid: 0fb8c5f1ef56d8449a3945a5d886c1b9,
type: 3} type: 3}
propertyPath: m_LocalPosition.y propertyPath: m_LocalPosition.y
value: -7.27 value: -2.2599998
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 8555732528907214649, guid: 0fb8c5f1ef56d8449a3945a5d886c1b9, - target: {fileID: 8555732528907214649, guid: 0fb8c5f1ef56d8449a3945a5d886c1b9,
type: 3} type: 3}
propertyPath: m_LocalPosition.z propertyPath: m_LocalPosition.z
value: -107.48 value: -48.020004
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 8555732528907214649, guid: 0fb8c5f1ef56d8449a3945a5d886c1b9, - target: {fileID: 8555732528907214649, guid: 0fb8c5f1ef56d8449a3945a5d886c1b9,
type: 3} type: 3}
@ -75398,6 +75395,7 @@ MonoBehaviour:
launchPoint: {fileID: 1554815066} launchPoint: {fileID: 1554815066}
timeOfFlight: 1 timeOfFlight: 1
predictedPos: {fileID: 1287417561} predictedPos: {fileID: 1287417561}
<Canons>k__BackingField: []
--- !u!114 &476261172 --- !u!114 &476261172
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -96893,31 +96891,6 @@ SkinnedMeshRenderer:
m_Center: {x: -2.6278043, y: -0.0457796, z: -0.0107373} m_Center: {x: -2.6278043, y: -0.0457796, z: -0.0107373}
m_Extent: {x: 2.9271088, y: 0.21452628, z: 1.4139687} m_Extent: {x: 2.9271088, y: 0.21452628, z: 1.4139687}
m_DirtyAABB: 0 m_DirtyAABB: 0
--- !u!1 &619366757 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 4836829392273355565, guid: 8c9e74631c8994b8cb728cde8efae49a,
type: 3}
m_PrefabInstance: {fileID: 2685185313231177978}
m_PrefabAsset: {fileID: 0}
--- !u!114 &619366760
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 619366757}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3e8c36fe9172849798f9c4fd87b77ec7, type: 3}
m_Name:
m_EditorClassIdentifier:
power: 0
reloadTime: 0
radarTargetUI: {fileID: 0}
projectilePrefab: {fileID: 0}
launchPoint: {fileID: 0}
timeOfFlight: 1
predictedPos: {fileID: 0}
--- !u!1 &619911013 --- !u!1 &619911013
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -97525,22 +97498,22 @@ PrefabInstance:
- target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a, - target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a,
type: 3} type: 3}
propertyPath: m_LocalRotation.w propertyPath: m_LocalRotation.w
value: 0.67404693 value: 1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a, - target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a,
type: 3} type: 3}
propertyPath: m_LocalRotation.x propertyPath: m_LocalRotation.x
value: -0.21176523 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a, - target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a,
type: 3} type: 3}
propertyPath: m_LocalRotation.y propertyPath: m_LocalRotation.y
value: 0.66609627 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a, - target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a,
type: 3} type: 3}
propertyPath: m_LocalRotation.z propertyPath: m_LocalRotation.z
value: 0.23902294 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a, - target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a,
type: 3} type: 3}
@ -97571,6 +97544,10 @@ PrefabInstance:
type: 3} type: 3}
insertIndex: -1 insertIndex: -1
addedObject: {fileID: 622062901} addedObject: {fileID: 622062901}
- targetCorrespondingSourceObject: {fileID: 4836829392273355565, guid: 8c9e74631c8994b8cb728cde8efae49a,
type: 3}
insertIndex: -1
addedObject: {fileID: 622062904}
m_SourcePrefab: {fileID: 100100000, guid: 8c9e74631c8994b8cb728cde8efae49a, type: 3} m_SourcePrefab: {fileID: 100100000, guid: 8c9e74631c8994b8cb728cde8efae49a, type: 3}
--- !u!4 &622062898 stripped --- !u!4 &622062898 stripped
Transform: Transform:
@ -97591,12 +97568,30 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
power: 0 power: 0
reloadTime: 0 reloadTime: 1
radarTargetUI: {fileID: 0} radarTargetUI: {fileID: 0}
projectilePrefab: {fileID: 0} projectilePrefab: {fileID: 0}
launchPoint: {fileID: 0} launchPoint: {fileID: 0}
timeOfFlight: 1 timeOfFlight: 1
predictedPos: {fileID: 0} predictedPos: {fileID: 1287417561}
--- !u!1183024399 &622062904
LookAtConstraint:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 598889757}
m_Enabled: 1
serializedVersion: 2
m_Weight: 1
m_RotationAtRest: {x: 0, y: 0, z: 0}
m_RotationOffset: {x: 0, y: 0, z: 0}
m_Roll: 0
m_WorldUpObject: {fileID: 0}
m_UseUpObject: 0
m_Active: 1
m_IsLocked: 0
m_Sources: []
--- !u!1 &622341546 --- !u!1 &622341546
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -98857,22 +98852,22 @@ PrefabInstance:
- target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a, - target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a,
type: 3} type: 3}
propertyPath: m_LocalRotation.w propertyPath: m_LocalRotation.w
value: 0.67404693 value: 1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a, - target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a,
type: 3} type: 3}
propertyPath: m_LocalRotation.x propertyPath: m_LocalRotation.x
value: -0.21176523 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a, - target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a,
type: 3} type: 3}
propertyPath: m_LocalRotation.y propertyPath: m_LocalRotation.y
value: 0.66609627 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a, - target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a,
type: 3} type: 3}
propertyPath: m_LocalRotation.z propertyPath: m_LocalRotation.z
value: 0.23902294 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a, - target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a,
type: 3} type: 3}
@ -98903,6 +98898,10 @@ PrefabInstance:
type: 3} type: 3}
insertIndex: -1 insertIndex: -1
addedObject: {fileID: 1910056923} addedObject: {fileID: 1910056923}
- targetCorrespondingSourceObject: {fileID: 4836829392273355565, guid: 8c9e74631c8994b8cb728cde8efae49a,
type: 3}
insertIndex: -1
addedObject: {fileID: 1910056926}
m_SourcePrefab: {fileID: 100100000, guid: 8c9e74631c8994b8cb728cde8efae49a, type: 3} m_SourcePrefab: {fileID: 100100000, guid: 8c9e74631c8994b8cb728cde8efae49a, type: 3}
--- !u!4 &631284636 stripped --- !u!4 &631284636 stripped
Transform: Transform:
@ -99206,7 +99205,7 @@ PrefabInstance:
serializedVersion: 2 serializedVersion: 2
m_Modification: m_Modification:
serializedVersion: 3 serializedVersion: 3
m_TransformParent: {fileID: 200595900} m_TransformParent: {fileID: 1140805708}
m_Modifications: m_Modifications:
- target: {fileID: 6209097434605892902, guid: a003617243f099842ac3523a93f80e28, - target: {fileID: 6209097434605892902, guid: a003617243f099842ac3523a93f80e28,
type: 3} type: 3}
@ -99216,17 +99215,17 @@ PrefabInstance:
- target: {fileID: 6728647862244700060, guid: a003617243f099842ac3523a93f80e28, - target: {fileID: 6728647862244700060, guid: a003617243f099842ac3523a93f80e28,
type: 3} type: 3}
propertyPath: m_LocalPosition.x propertyPath: m_LocalPosition.x
value: 42.6 value: 12.969999
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 6728647862244700060, guid: a003617243f099842ac3523a93f80e28, - target: {fileID: 6728647862244700060, guid: a003617243f099842ac3523a93f80e28,
type: 3} type: 3}
propertyPath: m_LocalPosition.y propertyPath: m_LocalPosition.y
value: 7.38 value: 12.39
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 6728647862244700060, guid: a003617243f099842ac3523a93f80e28, - target: {fileID: 6728647862244700060, guid: a003617243f099842ac3523a93f80e28,
type: 3} type: 3}
propertyPath: m_LocalPosition.z propertyPath: m_LocalPosition.z
value: -150.79999 value: -91.33999
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 6728647862244700060, guid: a003617243f099842ac3523a93f80e28, - target: {fileID: 6728647862244700060, guid: a003617243f099842ac3523a93f80e28,
type: 3} type: 3}
@ -174781,7 +174780,11 @@ Transform:
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children:
- {fileID: 1010297106}
- {fileID: 1344744312}
- {fileID: 1274110287}
- {fileID: 1747236060}
m_Father: {fileID: 888439616} m_Father: {fileID: 888439616}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1141075561 --- !u!1 &1141075561
@ -181224,6 +181227,7 @@ MonoBehaviour:
launchPoint: {fileID: 0} launchPoint: {fileID: 0}
timeOfFlight: 0 timeOfFlight: 0
predictedPos: {fileID: 0} predictedPos: {fileID: 0}
<Canons>k__BackingField: []
--- !u!114 &1181634886 --- !u!114 &1181634886
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -197552,22 +197556,22 @@ PrefabInstance:
- target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a, - target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a,
type: 3} type: 3}
propertyPath: m_LocalRotation.w propertyPath: m_LocalRotation.w
value: 0.6661488 value: 1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a, - target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a,
type: 3} type: 3}
propertyPath: m_LocalRotation.x propertyPath: m_LocalRotation.x
value: -0.23903932 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a, - target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a,
type: 3} type: 3}
propertyPath: m_LocalRotation.y propertyPath: m_LocalRotation.y
value: -0.67399514 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a, - target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a,
type: 3} type: 3}
propertyPath: m_LocalRotation.z propertyPath: m_LocalRotation.z
value: -0.21174636 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a, - target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a,
type: 3} type: 3}
@ -197598,6 +197602,10 @@ PrefabInstance:
type: 3} type: 3}
insertIndex: -1 insertIndex: -1
addedObject: {fileID: 1647855425} addedObject: {fileID: 1647855425}
- targetCorrespondingSourceObject: {fileID: 4836829392273355565, guid: 8c9e74631c8994b8cb728cde8efae49a,
type: 3}
insertIndex: -1
addedObject: {fileID: 1647855428}
m_SourcePrefab: {fileID: 100100000, guid: 8c9e74631c8994b8cb728cde8efae49a, type: 3} m_SourcePrefab: {fileID: 100100000, guid: 8c9e74631c8994b8cb728cde8efae49a, type: 3}
--- !u!4 &1260016380 stripped --- !u!4 &1260016380 stripped
Transform: Transform:
@ -220114,7 +220122,7 @@ PrefabInstance:
serializedVersion: 2 serializedVersion: 2
m_Modification: m_Modification:
serializedVersion: 3 serializedVersion: 3
m_TransformParent: {fileID: 200595900} m_TransformParent: {fileID: 1140805708}
m_Modifications: m_Modifications:
- target: {fileID: 176149940216585557, guid: 726da43882bc7cf4794b6164bb2acaa5, - target: {fileID: 176149940216585557, guid: 726da43882bc7cf4794b6164bb2acaa5,
type: 3} type: 3}
@ -220124,17 +220132,17 @@ PrefabInstance:
- target: {fileID: 664878819238250479, guid: 726da43882bc7cf4794b6164bb2acaa5, - target: {fileID: 664878819238250479, guid: 726da43882bc7cf4794b6164bb2acaa5,
type: 3} type: 3}
propertyPath: m_LocalPosition.x propertyPath: m_LocalPosition.x
value: 67.01 value: 37.380005
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 664878819238250479, guid: 726da43882bc7cf4794b6164bb2acaa5, - target: {fileID: 664878819238250479, guid: 726da43882bc7cf4794b6164bb2acaa5,
type: 3} type: 3}
propertyPath: m_LocalPosition.y propertyPath: m_LocalPosition.y
value: 7.37 value: 12.38
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 664878819238250479, guid: 726da43882bc7cf4794b6164bb2acaa5, - target: {fileID: 664878819238250479, guid: 726da43882bc7cf4794b6164bb2acaa5,
type: 3} type: 3}
propertyPath: m_LocalPosition.z propertyPath: m_LocalPosition.z
value: -184.48999 value: -125.02999
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 664878819238250479, guid: 726da43882bc7cf4794b6164bb2acaa5, - target: {fileID: 664878819238250479, guid: 726da43882bc7cf4794b6164bb2acaa5,
type: 3} type: 3}
@ -234855,6 +234863,81 @@ MeshFilter:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1480710945} m_GameObject: {fileID: 1480710945}
m_Mesh: {fileID: 4300956, guid: 02ded044b8e0963439276550f50be6f9, type: 3} m_Mesh: {fileID: 4300956, guid: 02ded044b8e0963439276550f50be6f9, type: 3}
--- !u!1 &1481322035
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1481322036}
- component: {fileID: 1481322038}
- component: {fileID: 1481322037}
m_Layer: 5
m_Name: EnemyMarker
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!224 &1481322036
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1481322035}
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: 2105062291}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 10000}
m_SizeDelta: {x: 50, y: 50}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1481322037
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1481322035}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 0, b: 0, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 0}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!222 &1481322038
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1481322035}
m_CullTransparentMesh: 1
--- !u!1 &1481566159 --- !u!1 &1481566159
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -258972,12 +259055,30 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
power: 0 power: 0
reloadTime: 0 reloadTime: 1
radarTargetUI: {fileID: 0} radarTargetUI: {fileID: 0}
projectilePrefab: {fileID: 0} projectilePrefab: {fileID: 0}
launchPoint: {fileID: 0} launchPoint: {fileID: 0}
timeOfFlight: 1 timeOfFlight: 1
predictedPos: {fileID: 0} predictedPos: {fileID: 1287417561}
--- !u!1183024399 &1647855428
LookAtConstraint:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1647855422}
m_Enabled: 1
serializedVersion: 2
m_Weight: 1
m_RotationAtRest: {x: 0, y: 0, z: 0}
m_RotationOffset: {x: 0, y: 0, z: 0}
m_Roll: 0
m_WorldUpObject: {fileID: 0}
m_UseUpObject: 0
m_Active: 1
m_IsLocked: 0
m_Sources: []
--- !u!1 &1648071599 --- !u!1 &1648071599
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -294324,12 +294425,30 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
power: 0 power: 0
reloadTime: 0 reloadTime: 1
radarTargetUI: {fileID: 0} radarTargetUI: {fileID: 0}
projectilePrefab: {fileID: 0} projectilePrefab: {fileID: 0}
launchPoint: {fileID: 0} launchPoint: {fileID: 0}
timeOfFlight: 1 timeOfFlight: 1
predictedPos: {fileID: 0} predictedPos: {fileID: 1287417561}
--- !u!1183024399 &1910056926
LookAtConstraint:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1910056920}
m_Enabled: 1
serializedVersion: 2
m_Weight: 1
m_RotationAtRest: {x: 0, y: 0, z: 0}
m_RotationOffset: {x: 0, y: 0, z: 0}
m_Roll: 0
m_WorldUpObject: {fileID: 0}
m_UseUpObject: 0
m_Active: 1
m_IsLocked: 0
m_Sources: []
--- !u!1 &1911764924 --- !u!1 &1911764924
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -323057,6 +323176,7 @@ RectTransform:
- {fileID: 332484089} - {fileID: 332484089}
- {fileID: 496180836} - {fileID: 496180836}
- {fileID: 528771113367838932} - {fileID: 528771113367838932}
- {fileID: 1481322036}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
@ -323077,6 +323197,7 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
_persistent: 0 _persistent: 0
<RadarTargetUis>k__BackingField: []
--- !u!1 &2105084994 --- !u!1 &2105084994
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -328992,7 +329113,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 6b9354e94ca0743c98216572c03343d5, type: 3} m_Script: {fileID: 11500000, guid: 6b9354e94ca0743c98216572c03343d5, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
<RotationSpeed>k__BackingField: -60 <RotationSpeed>k__BackingField: -30
--- !u!1001 &2685185313231177978 --- !u!1001 &2685185313231177978
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -329019,22 +329140,22 @@ PrefabInstance:
- target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a, - target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a,
type: 3} type: 3}
propertyPath: m_LocalRotation.w propertyPath: m_LocalRotation.w
value: 0.6661488 value: 1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a, - target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a,
type: 3} type: 3}
propertyPath: m_LocalRotation.x propertyPath: m_LocalRotation.x
value: -0.23903932 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a, - target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a,
type: 3} type: 3}
propertyPath: m_LocalRotation.y propertyPath: m_LocalRotation.y
value: -0.67399514 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a, - target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a,
type: 3} type: 3}
propertyPath: m_LocalRotation.z propertyPath: m_LocalRotation.z
value: -0.21174636 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a, - target: {fileID: 2155776711209515616, guid: 8c9e74631c8994b8cb728cde8efae49a,
type: 3} type: 3}
@ -329056,15 +329177,15 @@ PrefabInstance:
propertyPath: m_Name propertyPath: m_Name
value: SM_Prop_Cannon_01 (3) value: SM_Prop_Cannon_01 (3)
objectReference: {fileID: 0} objectReference: {fileID: 0}
m_RemovedComponents: - target: {fileID: 7810505435716704953, guid: 8c9e74631c8994b8cb728cde8efae49a,
- {fileID: 2556788256821959539, guid: 8c9e74631c8994b8cb728cde8efae49a, type: 3} type: 3}
propertyPath: predictedPos
value:
objectReference: {fileID: 1287417561}
m_RemovedComponents: []
m_RemovedGameObjects: [] m_RemovedGameObjects: []
m_AddedGameObjects: [] m_AddedGameObjects: []
m_AddedComponents: m_AddedComponents: []
- targetCorrespondingSourceObject: {fileID: 4836829392273355565, guid: 8c9e74631c8994b8cb728cde8efae49a,
type: 3}
insertIndex: -1
addedObject: {fileID: 619366760}
m_SourcePrefab: {fileID: 100100000, guid: 8c9e74631c8994b8cb728cde8efae49a, type: 3} m_SourcePrefab: {fileID: 100100000, guid: 8c9e74631c8994b8cb728cde8efae49a, type: 3}
--- !u!1 &3000142793521421624 --- !u!1 &3000142793521421624
GameObject: GameObject:
@ -329081,7 +329202,7 @@ GameObject:
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
m_IsActive: 1 m_IsActive: 0
--- !u!222 &4145116082927252014 --- !u!222 &4145116082927252014
CanvasRenderer: CanvasRenderer:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View File

@ -89,6 +89,24 @@ public partial class @BlueWater: IInputActionCollection2, IDisposable
""processors"": """", ""processors"": """",
""interactions"": """", ""interactions"": """",
""initialStateCheck"": false ""initialStateCheck"": false
},
{
""name"": ""Targeting"",
""type"": ""Button"",
""id"": ""bb26b6ad-feae-49d8-a4d8-3633bcabfcab"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": ""Tap"",
""initialStateCheck"": false
},
{
""name"": ""TargetingHold"",
""type"": ""Button"",
""id"": ""c3e552b9-a9be-4d38-8cde-27cc60f7888f"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": ""Hold(duration=1)"",
""initialStateCheck"": false
} }
], ],
""bindings"": [ ""bindings"": [
@ -212,6 +230,28 @@ public partial class @BlueWater: IInputActionCollection2, IDisposable
""action"": ""InteractionE"", ""action"": ""InteractionE"",
""isComposite"": false, ""isComposite"": false,
""isPartOfComposite"": false ""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""671ada78-e8be-4dcf-80af-2c4468d01253"",
""path"": ""<Keyboard>/q"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard"",
""action"": ""Targeting"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""d05dfab0-611f-4f60-b424-f14d98636c55"",
""path"": ""<Keyboard>/q"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard"",
""action"": ""TargetingHold"",
""isComposite"": false,
""isPartOfComposite"": false
} }
] ]
}, },
@ -351,6 +391,8 @@ public partial class @BlueWater: IInputActionCollection2, IDisposable
m_Player_Zkey = m_Player.FindAction("Zkey", throwIfNotFound: true); m_Player_Zkey = m_Player.FindAction("Zkey", throwIfNotFound: true);
m_Player_TakeAim = m_Player.FindAction("TakeAim", throwIfNotFound: true); m_Player_TakeAim = m_Player.FindAction("TakeAim", throwIfNotFound: true);
m_Player_InteractionE = m_Player.FindAction("InteractionE", throwIfNotFound: true); m_Player_InteractionE = m_Player.FindAction("InteractionE", throwIfNotFound: true);
m_Player_Targeting = m_Player.FindAction("Targeting", throwIfNotFound: true);
m_Player_TargetingHold = m_Player.FindAction("TargetingHold", throwIfNotFound: true);
// Camera // Camera
m_Camera = asset.FindActionMap("Camera", throwIfNotFound: true); m_Camera = asset.FindActionMap("Camera", throwIfNotFound: true);
m_Camera_Zoom = m_Camera.FindAction("Zoom", throwIfNotFound: true); m_Camera_Zoom = m_Camera.FindAction("Zoom", throwIfNotFound: true);
@ -427,6 +469,8 @@ public partial class @BlueWater: IInputActionCollection2, IDisposable
private readonly InputAction m_Player_Zkey; private readonly InputAction m_Player_Zkey;
private readonly InputAction m_Player_TakeAim; private readonly InputAction m_Player_TakeAim;
private readonly InputAction m_Player_InteractionE; private readonly InputAction m_Player_InteractionE;
private readonly InputAction m_Player_Targeting;
private readonly InputAction m_Player_TargetingHold;
public struct PlayerActions public struct PlayerActions
{ {
private @BlueWater m_Wrapper; private @BlueWater m_Wrapper;
@ -438,6 +482,8 @@ public partial class @BlueWater: IInputActionCollection2, IDisposable
public InputAction @Zkey => m_Wrapper.m_Player_Zkey; public InputAction @Zkey => m_Wrapper.m_Player_Zkey;
public InputAction @TakeAim => m_Wrapper.m_Player_TakeAim; public InputAction @TakeAim => m_Wrapper.m_Player_TakeAim;
public InputAction @InteractionE => m_Wrapper.m_Player_InteractionE; public InputAction @InteractionE => m_Wrapper.m_Player_InteractionE;
public InputAction @Targeting => m_Wrapper.m_Player_Targeting;
public InputAction @TargetingHold => m_Wrapper.m_Player_TargetingHold;
public InputActionMap Get() { return m_Wrapper.m_Player; } public InputActionMap Get() { return m_Wrapper.m_Player; }
public void Enable() { Get().Enable(); } public void Enable() { Get().Enable(); }
public void Disable() { Get().Disable(); } public void Disable() { Get().Disable(); }
@ -468,6 +514,12 @@ public partial class @BlueWater: IInputActionCollection2, IDisposable
@InteractionE.started += instance.OnInteractionE; @InteractionE.started += instance.OnInteractionE;
@InteractionE.performed += instance.OnInteractionE; @InteractionE.performed += instance.OnInteractionE;
@InteractionE.canceled += instance.OnInteractionE; @InteractionE.canceled += instance.OnInteractionE;
@Targeting.started += instance.OnTargeting;
@Targeting.performed += instance.OnTargeting;
@Targeting.canceled += instance.OnTargeting;
@TargetingHold.started += instance.OnTargetingHold;
@TargetingHold.performed += instance.OnTargetingHold;
@TargetingHold.canceled += instance.OnTargetingHold;
} }
private void UnregisterCallbacks(IPlayerActions instance) private void UnregisterCallbacks(IPlayerActions instance)
@ -493,6 +545,12 @@ public partial class @BlueWater: IInputActionCollection2, IDisposable
@InteractionE.started -= instance.OnInteractionE; @InteractionE.started -= instance.OnInteractionE;
@InteractionE.performed -= instance.OnInteractionE; @InteractionE.performed -= instance.OnInteractionE;
@InteractionE.canceled -= instance.OnInteractionE; @InteractionE.canceled -= instance.OnInteractionE;
@Targeting.started -= instance.OnTargeting;
@Targeting.performed -= instance.OnTargeting;
@Targeting.canceled -= instance.OnTargeting;
@TargetingHold.started -= instance.OnTargetingHold;
@TargetingHold.performed -= instance.OnTargetingHold;
@TargetingHold.canceled -= instance.OnTargetingHold;
} }
public void RemoveCallbacks(IPlayerActions instance) public void RemoveCallbacks(IPlayerActions instance)
@ -636,6 +694,8 @@ public partial class @BlueWater: IInputActionCollection2, IDisposable
void OnZkey(InputAction.CallbackContext context); void OnZkey(InputAction.CallbackContext context);
void OnTakeAim(InputAction.CallbackContext context); void OnTakeAim(InputAction.CallbackContext context);
void OnInteractionE(InputAction.CallbackContext context); void OnInteractionE(InputAction.CallbackContext context);
void OnTargeting(InputAction.CallbackContext context);
void OnTargetingHold(InputAction.CallbackContext context);
} }
public interface ICameraActions public interface ICameraActions
{ {

View File

@ -67,6 +67,24 @@
"processors": "", "processors": "",
"interactions": "", "interactions": "",
"initialStateCheck": false "initialStateCheck": false
},
{
"name": "Targeting",
"type": "Button",
"id": "bb26b6ad-feae-49d8-a4d8-3633bcabfcab",
"expectedControlType": "Button",
"processors": "",
"interactions": "Tap",
"initialStateCheck": false
},
{
"name": "TargetingHold",
"type": "Button",
"id": "c3e552b9-a9be-4d38-8cde-27cc60f7888f",
"expectedControlType": "Button",
"processors": "",
"interactions": "Hold(duration=1)",
"initialStateCheck": false
} }
], ],
"bindings": [ "bindings": [
@ -190,6 +208,28 @@
"action": "InteractionE", "action": "InteractionE",
"isComposite": false, "isComposite": false,
"isPartOfComposite": false "isPartOfComposite": false
},
{
"name": "",
"id": "671ada78-e8be-4dcf-80af-2c4468d01253",
"path": "<Keyboard>/q",
"interactions": "",
"processors": "",
"groups": "Keyboard",
"action": "Targeting",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "d05dfab0-611f-4f60-b424-f14d98636c55",
"path": "<Keyboard>/q",
"interactions": "",
"processors": "",
"groups": "Keyboard",
"action": "TargetingHold",
"isComposite": false,
"isPartOfComposite": false
} }
] ]
}, },

View File

@ -46,6 +46,7 @@ namespace BlueWaterProject
[Title("DataBase", "Sprites")] [Title("DataBase", "Sprites")]
public Sprite[] cardType; public Sprite[] cardType;
public Texture2D cursorTexture; public Texture2D cursorTexture;
public Sprite enemyMarker;
protected override void OnAwake() protected override void OnAwake()
{ {

View File

@ -1,6 +1,9 @@
using System; using System;
using System.Collections;
using System.Collections.Generic;
using Blobcreate.ProjectileToolkit; using Blobcreate.ProjectileToolkit;
using UnityEngine; using UnityEngine;
using UnityEngine.Animations;
// ReSharper disable once CheckNamespace // ReSharper disable once CheckNamespace
namespace BlueWaterProject namespace BlueWaterProject
@ -8,8 +11,11 @@ namespace BlueWaterProject
public class Canon : MonoBehaviour public class Canon : MonoBehaviour
{ {
public float power; public float power;
public float reloadTime; public float reloadTime = 1f;
public GameObject radarTargetUI; public RadarTargetUI radarTargetUI;
private bool isReloading;
private LookAtConstraint canonLookAtConstraint;
public Rigidbody projectilePrefab; public Rigidbody projectilePrefab;
public Transform launchPoint; public Transform launchPoint;
@ -20,6 +26,7 @@ namespace BlueWaterProject
{ {
projectilePrefab = DataManager.Inst.grenadeFire.GetComponent<Rigidbody>(); projectilePrefab = DataManager.Inst.grenadeFire.GetComponent<Rigidbody>();
launchPoint = transform.Find("FirePoint"); launchPoint = transform.Find("FirePoint");
canonLookAtConstraint = GetComponent<LookAtConstraint>();
} }
private void Awake() private void Awake()
@ -27,11 +34,38 @@ namespace BlueWaterProject
Init(); Init();
} }
private void Update()
{
if (!GameManager.Inst.player.IsTargeting) return;
if(!radarTargetUI.gameObject.activeInHierarchy && !isReloading)
StartCoroutine(ReloadCoroutine());
}
private IEnumerator ReloadCoroutine()
{
isReloading = true;
yield return new WaitForSeconds(reloadTime);
radarTargetUI.Reactivate();
isReloading = false;
}
public void Fire() public void Fire()
{ {
var myRigid = Instantiate(projectilePrefab, launchPoint.position, launchPoint.rotation); var myRigid = Instantiate(projectilePrefab, launchPoint.position, launchPoint.rotation);
var v = Projectile.VelocityByTime(myRigid.transform.position, predictedPos.position, timeOfFlight); var v = Projectile.VelocityByTime(myRigid.transform.position, predictedPos.position, timeOfFlight);
myRigid.AddForce(v, ForceMode.VelocityChange); myRigid.AddForce(v, ForceMode.VelocityChange);
} }
public void LookAtTarget()
{
canonLookAtConstraint.SetSources(new List<ConstraintSource>
{
new ConstraintSource
{
sourceTransform = predictedPos,
weight = 1
}
});
}
} }
} }

View File

@ -33,15 +33,17 @@ namespace BlueWaterProject
[Title("레이더")] [Title("레이더")]
public Collider[] radar = new Collider[10]; public Collider[] radar = new Collider[10];
public Transform[] inCameraRadar = new Transform[10]; public List<Transform> inCameraRadar = new (10);
public Transform target; public Transform target;
public bool IsTargeting { get; private set; }
[Title("캐논")] [Title("캐논")]
public Rigidbody projectilePrefab; public Rigidbody projectilePrefab;
public Transform launchPoint; public Transform launchPoint;
public float timeOfFlight; public float timeOfFlight;
public Transform predictedPos; public Transform predictedPos;
public List<Canon> Canons { get; } = new (GlobalValue.MAX_CANON_COUNT); [field: SerializeField]
public List<Canon> Canons { get; private set; } = new (GlobalValue.MAX_CANON_COUNT);
public bool IsAssaultMode { get; set; } public bool IsAssaultMode { get; set; }
public bool IsInShipMode { get; set; } public bool IsInShipMode { get; set; }
@ -52,6 +54,7 @@ namespace BlueWaterProject
{ {
character = transform.Find("Character").gameObject; character = transform.Find("Character").gameObject;
rb = GetComponent<Rigidbody>(); rb = GetComponent<Rigidbody>();
GetComponentsInChildren(Canons);
} }
#region Unity Function #region Unity Function
@ -61,24 +64,16 @@ namespace BlueWaterProject
Init(); Init();
} }
private void Start()
{
CanonInit();
}
private void FixedUpdate() private void FixedUpdate()
{ {
if (IsInShipMode) HandleMovement();
{
MoveCharacterPlayer();
}
else
{
MoveShipPlayer();
RotatePlayer();
} }
private void Update()
{
FindInRadarRange();
FilterInCameraObjects();
LookAtTarget();
} }
#endregion #endregion
@ -106,11 +101,24 @@ namespace BlueWaterProject
private void MoveCharacterPlayer() private void MoveCharacterPlayer()
{ {
Vector3 movement = character.transform.rotation * new Vector3(-movementInput.y, 0, movementInput.x) * (characterSpeed * Time.deltaTime); var movement = character.transform.rotation * new Vector3(-movementInput.y, 0, movementInput.x) * (characterSpeed * Time.deltaTime);
character.transform.position += movement; character.transform.position += movement;
} }
private void HandleMovement()
{
if (IsInShipMode)
{
MoveCharacterPlayer();
}
else
{
MoveShipPlayer();
RotatePlayer();
}
}
#endregion #endregion
#region AssaultMode/DreadgeMode Switch #region AssaultMode/DreadgeMode Switch
@ -142,9 +150,24 @@ namespace BlueWaterProject
#region Interaction Key #region Interaction Key
private void OnInteractionE(InputValue value) private void OnTargeting(InputValue value) //Q
{ {
UiManager.Inst.CheckRadarOverlap(); if(inCameraRadar.Count == 0) return;
IsTargeting = true;
UiManager.Inst.RadarUIOnOff(IsTargeting);
FindTarget();
}
private void OnTargetingHold(InputValue value) //Q Hold
{
IsTargeting = false;
UiManager.Inst.RadarUIOnOff(IsTargeting);
}
private void OnInteractionE(InputValue value) //E
{
if(IsTargeting) UiManager.Inst.CheckRadarOverlap();
} }
private void OnInteraction(InputValue value) //F private void OnInteraction(InputValue value) //F
@ -181,7 +204,7 @@ namespace BlueWaterProject
UiManager.Inst.AddCard(); UiManager.Inst.AddCard();
} }
#region TakeAim & Fire #region TakeAim
private void OnTakeAim(InputValue value) // Space private void OnTakeAim(InputValue value) // Space
{ {
@ -211,9 +234,59 @@ namespace BlueWaterProject
#endregion #endregion
private void CanonInit() #region CanonAndRader
private void FindInRadarRange()
{ {
GetComponentsInChildren(Canons); Physics.OverlapSphereNonAlloc(transform.position, GlobalValue.RADAR_RANGE, radar, LayerMask.GetMask(GlobalValue.ENEMY_LAYER));
} }
private void FilterInCameraObjects()
{
inCameraRadar.Clear();
foreach (var col in radar)
{
if (col == null) continue;
var screenPoint = Camera.main.WorldToViewportPoint(col.transform.position);
if (screenPoint.z > 0 && screenPoint.x >= 0 && screenPoint.x <= 1 && screenPoint.y >= 0 && screenPoint.y <= 1)
{
inCameraRadar.Add(col.transform);
}
}
inCameraRadar.Sort((a, b) => Vector3.Distance(transform.position, a.position).CompareTo(Vector3.Distance(transform.position, b.position)));
}
private void FindTarget()
{
var oldTarget = target;
foreach (var trans in inCameraRadar)
{
if (trans.Find("TestTarget") == null) continue;
if (target != null && trans.Find("TestTarget").transform == oldTarget) continue;
target = trans.Find("TestTarget").transform; // Set new target
break; // Exit the loop
}
// Check if target has changed
if (target != oldTarget)
{
// Call some method if target has changed
UiManager.Inst.RadarTargetInit();
}
}
private void LookAtTarget()
{
if (target == null) return;
foreach (var canon in Canons)
{
canon.predictedPos = target;
canon.LookAtTarget();
UiManager.Inst.UpdateEnemyMarker(target);
}
}
#endregion
} }
} }

View File

@ -11,11 +11,9 @@ namespace BlueWaterProject
public float RotationSpeed { get; set; } public float RotationSpeed { get; set; }
private float currentRotationZ = 0f; private float currentRotationZ = 0f;
private void Update() private void FixedUpdate()
{ {
currentRotationZ += RotationSpeed * Time.deltaTime; transform.Rotate(0, 0, RotationSpeed * Time.deltaTime);
currentRotationZ = currentRotationZ % 360; // 360을 초과하지 않도록
transform.eulerAngles = new Vector3(0, 0, currentRotationZ);
} }
} }
} }

View File

@ -1,3 +1,4 @@
using System.Collections;
using UnityEngine; using UnityEngine;
using UnityEngine.UI; using UnityEngine.UI;
@ -12,6 +13,7 @@ namespace BlueWaterProject
private void OnEnable() private void OnEnable()
{ {
Image = GetComponent<Image>(); Image = GetComponent<Image>();
transform.rotation = Quaternion.Euler(0, 0, RotationZ + Image.fillAmount * -180);
} }
private void Update() private void Update()
@ -29,5 +31,14 @@ namespace BlueWaterProject
RotationZ = rotation; RotationZ = rotation;
Image.fillAmount = fillAmount; Image.fillAmount = fillAmount;
} }
public void Reactivate()
{
RadarTargetInit(Random.Range(0f, 360f), Random.Range(0.1f, 0.2f));
if (!transform.gameObject.activeSelf)
{
transform.gameObject.SetActive(true);
}
}
} }
} }

View File

@ -23,9 +23,13 @@ namespace BlueWaterProject
[Title("Radar")] [Title("Radar")]
private Transform radar; private Transform radar;
private Transform radarTargets; private Transform radarTargets;
public List<RadarTargetUI> RadarTargetUis { get; } = new (GlobalValue.MAX_CANON_COUNT); [field: SerializeField] public List<RadarTargetUI> RadarTargetUis { get; private set; } = new (GlobalValue.MAX_CANON_COUNT);
public RadarNeedle RadarNeedle { get; private set; } public RadarNeedle RadarNeedle { get; private set; }
[Title("Enemy Marker")]
private Image enemyMarker; // 적을 표시할 마커 (Image)
private Transform enemyTarget; // 타겟 (적)
private void Init() private void Init()
{ {
@ -37,6 +41,9 @@ namespace BlueWaterProject
radarTargets = radar.Find("RadarTargets"); radarTargets = radar.Find("RadarTargets");
RadarNeedle = radar.Find("RadarNeedle").GetComponent<RadarNeedle>(); RadarNeedle = radar.Find("RadarNeedle").GetComponent<RadarNeedle>();
enemyMarker = transform.Find("EnemyMarker").GetComponent<Image>();
enemyMarker.sprite = DataManager.Inst.enemyMarker;
} }
protected override void OnAwake() protected override void OnAwake()
@ -49,10 +56,7 @@ namespace BlueWaterProject
CursorTextureChange(); CursorTextureChange();
AssaultCardInit(); AssaultCardInit();
for (var i = 0; i < GameManager.Inst.player.Canons.Count; i++) //RadarTargetInit();
{
RadarTargetInit();
}
} }
public void AddCard() //TODO Test button and function, delete later public void AddCard() //TODO Test button and function, delete later
@ -86,11 +90,25 @@ namespace BlueWaterProject
} }
public void RadarTargetInit() public void RadarTargetInit()
{
if (RadarTargetUis.Count == 0)
{
for (var i = 0; i < GameManager.Inst.player.Canons.Count; i++)
{ {
var obj = Instantiate(DataManager.Inst.radarTargetUi, radarTargets); var obj = Instantiate(DataManager.Inst.radarTargetUi, radarTargets);
var radarTargetUi = obj.GetComponent<RadarTargetUI>(); var radarTargetUi = obj.GetComponent<RadarTargetUI>();
radarTargetUi.RadarTargetInit(Random.Range(0f, 360f), Random.Range(0.1f, 0.2f)); radarTargetUi.RadarTargetInit(Random.Range(0f, 360f), Random.Range(0.1f, 0.2f));
RadarTargetUis.Add(radarTargetUi); RadarTargetUis.Add(radarTargetUi);
GameManager.Inst.player.Canons[i].radarTargetUI = radarTargetUi;
}
}
else
{
for (var i = 0; i < RadarTargetUis.Count; i++)
{
RadarTargetUis[i].Reactivate();
}
}
} }
public void CheckRadarOverlap() public void CheckRadarOverlap()
@ -100,24 +118,50 @@ namespace BlueWaterProject
for (var i = 0; i < RadarTargetUis.Count; i++) for (var i = 0; i < RadarTargetUis.Count; i++)
{ {
var radarTargetUI = RadarTargetUis[i]; var radarTargetUI = RadarTargetUis[i];
var startAngle = radarTargetUI.RotationZ; var canon = GameManager.Inst.player.Canons[i];
var endAngle = radarTargetUI.RotationZ + radarTargetUI.Image.fillAmount * 360f; var startAngle = radarTargetUI.RotationZ - radarTargetUI.Image.fillAmount * 180f;
var endAngle = radarTargetUI.RotationZ + radarTargetUI.Image.fillAmount * 180f;
// 각도 비교 및 허용 오차 추가 if (!IsOverlap(needleRotationZ, startAngle, endAngle, GlobalValue.RADAR_OVERLAP_TOLERANCE)) continue;
if (IsOverlap(needleRotationZ, startAngle, endAngle, GlobalValue.RADAR_OVERLAP_TOLERANCE)) // 5도의 오차 허용 if (!radarTargetUI.gameObject.activeSelf) continue;
{
radarTargetUI.gameObject.SetActive(false); radarTargetUI.gameObject.SetActive(false);
} canon.Fire();
} }
} }
private bool IsOverlap(float needleRotation, float startAngle, float endAngle, float tolerance = 0) private bool IsOverlap(float needleRotation, float startAngle, float endAngle, float tolerance = 0)
{ {
// 오프셋 보정 예시 var correctedNeedleRotation = needleRotation;
var correctedNeedleRotation = needleRotation + 36;
return correctedNeedleRotation >= (startAngle - tolerance) && correctedNeedleRotation <= (endAngle + tolerance); return correctedNeedleRotation >= (startAngle - tolerance) && correctedNeedleRotation <= (endAngle + tolerance);
} }
public void UpdateEnemyMarker(Transform target)
{
enemyTarget = target;
if (enemyTarget != null && GameManager.Inst.player.IsTargeting)
{
Vector3 screenPos = Camera.main.WorldToScreenPoint(enemyTarget.position);
if (screenPos.z > 0)
{
enemyMarker.gameObject.SetActive(true);
enemyMarker.transform.position = new Vector2(screenPos.x, screenPos.y);
}
else
{
enemyMarker.gameObject.SetActive(false);
}
}
else
{
enemyMarker.gameObject.SetActive(false);
}
}
public void RadarUIOnOff(bool isOn)
{
radar.gameObject.SetActive(isOn);
}
} }
} }

View File

@ -18,6 +18,8 @@ namespace BlueWaterProject
/// <summary> Radar 바늘이 레이더에 겹치는 허용 범위 </summary> /// <summary> Radar 바늘이 레이더에 겹치는 허용 범위 </summary>
public const float RADAR_OVERLAP_TOLERANCE = 5f; public const float RADAR_OVERLAP_TOLERANCE = 5f;
public const float RADAR_RANGE = 100f;
public const string ENEMY_LAYER = "Enemy";
public enum UnitType public enum UnitType
{ {

View File

@ -6,7 +6,7 @@ TextureImporter:
serializedVersion: 12 serializedVersion: 12
mipmaps: mipmaps:
mipMapMode: 0 mipMapMode: 0
enableMipMap: 1 enableMipMap: 0
sRGBTexture: 1 sRGBTexture: 1
linearTexture: 0 linearTexture: 0
fadeOut: 0 fadeOut: 0
@ -37,13 +37,13 @@ TextureImporter:
filterMode: 1 filterMode: 1
aniso: 1 aniso: 1
mipBias: 0 mipBias: 0
wrapU: 0 wrapU: 1
wrapV: 0 wrapV: 1
wrapW: 0 wrapW: 0
nPOTScale: 1 nPOTScale: 0
lightmap: 0 lightmap: 0
compressionQuality: 50 compressionQuality: 50
spriteMode: 0 spriteMode: 1
spriteExtrude: 1 spriteExtrude: 1
spriteMeshType: 1 spriteMeshType: 1
alignment: 0 alignment: 0
@ -54,7 +54,7 @@ TextureImporter:
alphaUsage: 1 alphaUsage: 1
alphaIsTransparency: 1 alphaIsTransparency: 1
spriteTessellationDetail: -1 spriteTessellationDetail: -1
textureType: 0 textureType: 8
textureShape: 1 textureShape: 1
singleChannelComponent: 0 singleChannelComponent: 0
flipbookRows: 1 flipbookRows: 1
@ -109,7 +109,7 @@ TextureImporter:
outline: [] outline: []
physicsShape: [] physicsShape: []
bones: [] bones: []
spriteID: spriteID: 5e97eb03825dee720800000000000000
internalID: 0 internalID: 0
vertices: [] vertices: []
indices: indices:

View File

@ -9,7 +9,6 @@ GameObject:
serializedVersion: 6 serializedVersion: 6
m_Component: m_Component:
- component: {fileID: 1055643547297219040} - component: {fileID: 1055643547297219040}
- component: {fileID: 2556788256821959539}
m_Layer: 7 m_Layer: 7
m_Name: FirePoint m_Name: FirePoint
m_TagString: Untagged m_TagString: Untagged
@ -26,30 +25,12 @@ Transform:
m_GameObject: {fileID: 1552059112848199257} m_GameObject: {fileID: 1552059112848199257}
serializedVersion: 2 serializedVersion: 2
m_LocalRotation: {x: 0.23903932, y: 0.67399514, z: 0.21174636, w: 0.6661488} m_LocalRotation: {x: 0.23903932, y: 0.67399514, z: 0.21174636, w: 0.6661488}
m_LocalPosition: {x: -0.012, y: 0.818, z: 1.822} m_LocalPosition: {x: 0, y: 0.85, z: 1.8}
m_LocalScale: {x: 1.4093482, y: 1.4093485, z: 1.4093487} m_LocalScale: {x: 1.4093482, y: 1.4093485, z: 1.4093487}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 2155776711209515616} m_Father: {fileID: 2155776711209515616}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &2556788256821959539
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1552059112848199257}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3e8c36fe9172849798f9c4fd87b77ec7, type: 3}
m_Name:
m_EditorClassIdentifier:
power: 0
reloadTime: 0
projectilePrefab: {fileID: 0}
launchPoint: {fileID: 0}
timeOfFlight: 1
predictedPos: {fileID: 0}
--- !u!1 &4836829392273355565 --- !u!1 &4836829392273355565
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -61,6 +42,8 @@ GameObject:
- component: {fileID: 2155776711209515616} - component: {fileID: 2155776711209515616}
- component: {fileID: 244436262679622758} - component: {fileID: 244436262679622758}
- component: {fileID: 1460342609431344591} - component: {fileID: 1460342609431344591}
- component: {fileID: 7810505435716704953}
- component: {fileID: 6596633941343312909}
m_Layer: 7 m_Layer: 7
m_Name: SM_Prop_Cannon_01 (3) m_Name: SM_Prop_Cannon_01 (3)
m_TagString: Untagged m_TagString: Untagged
@ -76,7 +59,7 @@ Transform:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4836829392273355565} m_GameObject: {fileID: 4836829392273355565}
serializedVersion: 2 serializedVersion: 2
m_LocalRotation: {x: -0.23903932, y: -0.67399514, z: -0.21174636, w: 0.6661488} m_LocalRotation: {x: -0.23903994, y: -0.67399746, z: -0.21174595, w: 0.66614646}
m_LocalPosition: {x: -0.8625002, y: 2.4082499, z: 0.795002} m_LocalPosition: {x: -0.8625002, y: 2.4082499, z: 0.795002}
m_LocalScale: {x: 0.7095477, y: 0.7095476, z: 0.70954806} m_LocalScale: {x: 0.7095477, y: 0.7095476, z: 0.70954806}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
@ -134,3 +117,40 @@ MeshRenderer:
m_SortingLayer: 0 m_SortingLayer: 0
m_SortingOrder: 0 m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0} m_AdditionalVertexStreams: {fileID: 0}
--- !u!114 &7810505435716704953
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4836829392273355565}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3e8c36fe9172849798f9c4fd87b77ec7, type: 3}
m_Name:
m_EditorClassIdentifier:
power: 0
reloadTime: 1
radarTargetUI: {fileID: 0}
projectilePrefab: {fileID: 0}
launchPoint: {fileID: 0}
timeOfFlight: 1
predictedPos: {fileID: 0}
--- !u!1183024399 &6596633941343312909
LookAtConstraint:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4836829392273355565}
m_Enabled: 1
serializedVersion: 2
m_Weight: 1
m_RotationAtRest: {x: 0, y: 0, z: 0}
m_RotationOffset: {x: 0, y: 0, z: 0}
m_Roll: 0
m_WorldUpObject: {fileID: 0}
m_UseUpObject: 0
m_Active: 1
m_IsLocked: 0
m_Sources: []

View File

@ -59,7 +59,7 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
m_Material: {fileID: 0} m_Material: {fileID: 0}
m_Color: {r: 1, g: 0.9263606, b: 0, a: 0.39215687} m_Color: {r: 1, g: 0.92549026, b: 0, a: 0.39215687}
m_RaycastTarget: 1 m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1 m_Maskable: 1

View File

@ -24,9 +24,7 @@ Material:
m_Shader: {fileID: 4800000, guid: 8d2bb70cbf9db8d4da26e15b26e74248, type: 3} m_Shader: {fileID: 4800000, guid: 8d2bb70cbf9db8d4da26e15b26e74248, type: 3}
m_Parent: {fileID: 0} m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0 m_ModifiedSerializedProperties: 0
m_ValidKeywords: m_ValidKeywords: []
- _GLOSSINESS_FROM_BASE_ALPHA
- _SPECULAR_COLOR
m_InvalidKeywords: [] m_InvalidKeywords: []
m_LightmapFlags: 4 m_LightmapFlags: 4
m_EnableInstancingVariants: 0 m_EnableInstancingVariants: 0
@ -96,7 +94,7 @@ Material:
- _ZWrite: 1 - _ZWrite: 1
m_Colors: m_Colors:
- _BaseColor: {r: 0.17616299, g: 0.42104325, b: 0.5686274, a: 1} - _BaseColor: {r: 0.17616299, g: 0.42104325, b: 0.5686274, a: 1}
- _Color: {r: 1, g: 1, b: 1, a: 1} - _Color: {r: 0.17616296, g: 0.42104322, b: 0.5686274, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.5, g: 0.5, b: 0.5, a: 0.5} - _SpecColor: {r: 0.5, g: 0.5, b: 0.5, a: 0.5}
m_BuildTextureStacks: [] m_BuildTextureStacks: []

View File

@ -24,9 +24,7 @@ Material:
m_Shader: {fileID: 4800000, guid: 8d2bb70cbf9db8d4da26e15b26e74248, type: 3} m_Shader: {fileID: 4800000, guid: 8d2bb70cbf9db8d4da26e15b26e74248, type: 3}
m_Parent: {fileID: 0} m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0 m_ModifiedSerializedProperties: 0
m_ValidKeywords: m_ValidKeywords: []
- _GLOSSINESS_FROM_BASE_ALPHA
- _SPECULAR_COLOR
m_InvalidKeywords: [] m_InvalidKeywords: []
m_LightmapFlags: 4 m_LightmapFlags: 4
m_EnableInstancingVariants: 0 m_EnableInstancingVariants: 0
@ -53,7 +51,7 @@ Material:
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MainTex: - _MainTex:
m_Texture: {fileID: 0} m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1} m_Scale: {x: 50, y: 50}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _SpecGlossMap: - _SpecGlossMap:
m_Texture: {fileID: 0} m_Texture: {fileID: 0}
@ -96,7 +94,7 @@ Material:
- _ZWrite: 1 - _ZWrite: 1
m_Colors: m_Colors:
- _BaseColor: {r: 0.19438672, g: 0.46459937, b: 0.62745106, a: 1} - _BaseColor: {r: 0.19438672, g: 0.46459937, b: 0.62745106, a: 1}
- _Color: {r: 1, g: 1, b: 1, a: 1} - _Color: {r: 0.19438669, g: 0.4645993, b: 0.62745106, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.5, g: 0.5, b: 0.5, a: 0.5} - _SpecColor: {r: 0.5, g: 0.5, b: 0.5, a: 0.5}
m_BuildTextureStacks: [] m_BuildTextureStacks: []

File diff suppressed because it is too large Load Diff