From cf59398a8dd1350a182928698c23c3e69ccc261f Mon Sep 17 00:00:00 2001 From: Ino Date: Fri, 16 Jan 2026 14:24:29 +0900 Subject: [PATCH] =?UTF-8?q?=EC=84=9C=ED=8F=AC=ED=84=B0=20=EC=9C=84?= =?UTF-8?q?=EC=B9=98=EB=A5=BC=20=ED=94=8C=EB=A0=88=EC=9D=B4=EC=96=B4=20?= =?UTF-8?q?=EC=9C=84=EC=B9=98=EA=B9=8C=EC=A7=80=20=EB=82=B4=EB=A6=AC?= =?UTF-8?q?=EB=A9=B4=20=EC=A2=8B=EA=B2=A0=EC=8A=B5=EB=8B=88=EB=8B=A4.=20?= =?UTF-8?q?=EC=84=9C=ED=8F=AC=ED=84=B0=EA=B0=80=20=EA=B0=80=EB=81=94=20?= =?UTF-8?q?=ED=9A=8C=EC=A0=84=ED=95=98=EB=8A=94=20=EA=B2=83=20=EA=B0=99?= =?UTF-8?q?=EC=8A=B5=EB=8B=88=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/ResWork/Prefab/Play_Ingame.prefab | 84 +++- Assets/Resources/Supporter/Supporter.prefab | 1 + Assets/SampleScene.unity | 504 +++++++++++++++++++ Assets/Script/InGame/Actor/SupporterActor.cs | 7 +- 4 files changed, 587 insertions(+), 9 deletions(-) diff --git a/Assets/ResWork/Prefab/Play_Ingame.prefab b/Assets/ResWork/Prefab/Play_Ingame.prefab index fd162ee..3edb682 100644 --- a/Assets/ResWork/Prefab/Play_Ingame.prefab +++ b/Assets/ResWork/Prefab/Play_Ingame.prefab @@ -1,5 +1,42 @@ %YAML 1.1 %TAG !u! tag:unity3d.com,2011: +--- !u!1 &332348210646369385 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 6001953578450514545} + m_Layer: 5 + m_Name: SupporterPos + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &6001953578450514545 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 332348210646369385} + 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: + - {fileID: 7208776526740242564} + - {fileID: 8725427933590489720} + m_Father: {fileID: 4111377606588400904} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0} + m_AnchorMax: {x: 0.5, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 1080, y: 1920} + m_Pivot: {x: 0.5, y: 0} --- !u!1 &351787396823144573 GameObject: m_ObjectHideFlags: 0 @@ -1815,6 +1852,37 @@ Transform: - {fileID: 1920088568980632020} m_Father: {fileID: 4111377606588400904} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &2034416900529708808 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 8725427933590489720} + m_Layer: 0 + m_Name: SupporterRot + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &8725427933590489720 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2034416900529708808} + serializedVersion: 2 + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 265, y: 85, z: 0} + m_LocalScale: {x: 75, y: 75, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 6001953578450514545} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &2075193822787407608 GameObject: m_ObjectHideFlags: 0 @@ -5402,7 +5470,7 @@ RectTransform: - {fileID: 3849946494845210551} - {fileID: 1903485514237403637} - {fileID: 8406924210966255483} - - {fileID: 7208776526740242564} + - {fileID: 6001953578450514545} - {fileID: 4565446678480095036} - {fileID: 6585150402215888903} - {fileID: 5061678075927086196} @@ -8403,8 +8471,12 @@ PrefabInstance: serializedVersion: 2 m_Modification: serializedVersion: 3 - m_TransformParent: {fileID: 4111377606588400904} + m_TransformParent: {fileID: 6001953578450514545} m_Modifications: + - target: {fileID: -7235425391866733918, guid: c968a59c90ade6d4bbd85782c0ce38b9, type: 3} + propertyPath: tf_projectile + value: + objectReference: {fileID: 8725427933590489720} - target: {fileID: 102391692130874058, guid: c968a59c90ade6d4bbd85782c0ce38b9, type: 3} propertyPath: m_SortingLayer value: 0 @@ -8935,7 +9007,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 7190565166110990598, guid: c968a59c90ade6d4bbd85782c0ce38b9, type: 3} propertyPath: m_LocalPosition.y - value: -918 + value: 85 objectReference: {fileID: 0} - target: {fileID: 7190565166110990598, guid: c968a59c90ade6d4bbd85782c0ce38b9, type: 3} propertyPath: m_LocalPosition.z @@ -8947,15 +9019,15 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 7190565166110990598, guid: c968a59c90ade6d4bbd85782c0ce38b9, type: 3} propertyPath: m_LocalRotation.x - value: 0 + value: -0 objectReference: {fileID: 0} - target: {fileID: 7190565166110990598, guid: c968a59c90ade6d4bbd85782c0ce38b9, type: 3} propertyPath: m_LocalRotation.y - value: 0 + value: -0 objectReference: {fileID: 0} - target: {fileID: 7190565166110990598, guid: c968a59c90ade6d4bbd85782c0ce38b9, type: 3} propertyPath: m_LocalRotation.z - value: 0 + value: -0 objectReference: {fileID: 0} - target: {fileID: 7190565166110990598, guid: c968a59c90ade6d4bbd85782c0ce38b9, type: 3} propertyPath: m_LocalEulerAnglesHint.x diff --git a/Assets/Resources/Supporter/Supporter.prefab b/Assets/Resources/Supporter/Supporter.prefab index dd1423d..080994b 100644 --- a/Assets/Resources/Supporter/Supporter.prefab +++ b/Assets/Resources/Supporter/Supporter.prefab @@ -569,6 +569,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 0060bc8cb08eb034cbeefb2ed78a29ed, type: 3} m_Name: m_EditorClassIdentifier: + tf_projectile: {fileID: 0} MaxAttackCoolTime: 2 Damage: 5 --- !u!114 &6927600069059857145 diff --git a/Assets/SampleScene.unity b/Assets/SampleScene.unity index 7eb4f8e..17916f2 100644 --- a/Assets/SampleScene.unity +++ b/Assets/SampleScene.unity @@ -17445,6 +17445,222 @@ PrefabInstance: serializedVersion: 3 m_TransformParent: {fileID: 901909686} m_Modifications: + - target: {fileID: 351787396953488355, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 351787396953488355, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 351787396953488355, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 351787396953488355, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 351787397989201312, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 351787397989201312, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 351787397989201312, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 351787397989201312, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1298365646144552531, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1298365646144552531, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1298365646144552531, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1467771610490817847, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1467771610490817847, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1467771610490817847, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1467771610490817847, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2027362653857723309, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2027362653857723309, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2027362653857723309, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2027362653857723309, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2066876199044934063, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2066876199044934063, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2066876199044934063, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2775089715950143664, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2775089715950143664, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2775089715950143664, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2775089715950143664, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3034941298722984408, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3034941298722984408, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3034941298722984408, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3034941298722984408, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3217378376239936541, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3217378376239936541, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3217378376239936541, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3217378376239936541, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3851091814487837347, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3851091814487837347, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3851091814487837347, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3851091814487837347, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4111377604873454816, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4111377604873454816, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4111377604873454816, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4111377604873454816, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4111377605057742992, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4111377605057742992, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4111377605057742992, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4111377605057742992, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4111377605223402641, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4111377605223402641, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4111377605223402641, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4111377605223402641, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4111377605604120026, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4111377605604120026, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4111377605604120026, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4111377605604120026, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} - target: {fileID: 4111377606588400904, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_Pivot.x value: 0.5 @@ -17529,10 +17745,298 @@ PrefabInstance: propertyPath: m_Name value: Play_Ingame objectReference: {fileID: 0} + - target: {fileID: 4111377606602774470, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4111377606602774470, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4111377606646784701, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4111377606646784701, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4111377606646784701, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4111377606646784701, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4241219922751532992, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4241219922751532992, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4241219922751532992, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4241219922751532992, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4330008501081147663, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4330008501081147663, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4330008501081147663, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4330008501081147663, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5132647679849202458, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5132647679849202458, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5132647679849202458, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5574374908717722177, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5574374908717722177, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5574374908717722177, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5678767516249178587, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5678767516249178587, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5678767516249178587, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5691718172133534467, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5691718172133534467, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5691718172133534467, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5691718172133534467, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5961969503056597898, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5961969503056597898, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5961969503056597898, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5961969503056597898, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5997388744017587345, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5997388744017587345, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5997388744017587345, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6081102423751470287, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6081102423751470287, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6081102423751470287, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6093049785316884920, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6093049785316884920, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6093049785316884920, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6093049785316884920, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6400410528953139288, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6400410528953139288, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6400410528953139288, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6515384493741739115, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6515384493741739115, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6515384493741739115, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6715526188961711891, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6715526188961711891, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6715526188961711891, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6715526188961711891, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7053290558194657676, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7053290558194657676, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7053290558194657676, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7053290558194657676, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7296985114498065767, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7296985114498065767, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} - target: {fileID: 7344498057576682711, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target value: objectReference: {fileID: 1571370886} + - target: {fileID: 8201494079889326027, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8201494079889326027, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8201494079889326027, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8473443759915544516, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8473443759915544516, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8473443759915544516, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8473443759915544516, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8809062110974703447, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8809062110974703447, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8809062110974703447, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8809062110974703447, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 9045579651515305713, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 9045579651515305713, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 9045579651515305713, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 9045579651515305713, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_RemovedGameObjects: [] m_AddedGameObjects: [] diff --git a/Assets/Script/InGame/Actor/SupporterActor.cs b/Assets/Script/InGame/Actor/SupporterActor.cs index f5d3695..88723d9 100644 --- a/Assets/Script/InGame/Actor/SupporterActor.cs +++ b/Assets/Script/InGame/Actor/SupporterActor.cs @@ -2,6 +2,7 @@ using UnityEngine; public class SupporterActor : MonoBehaviour { + public Transform tf_projectile; public float MaxAttackCoolTime = 2f; public int Damage = 5; @@ -26,7 +27,7 @@ public class SupporterActor : MonoBehaviour if (mob != null) { UpdateAngle(mob.transform.position); - m_PD.tf_Start = transform; + m_PD.tf_Start = tf_projectile; ProjectileMgr.Ins.Shoot_Projectile(m_PD); } } @@ -34,11 +35,11 @@ public class SupporterActor : MonoBehaviour void UpdateAngle(Vector2 targetWorldPos) { - Vector2 dir = targetWorldPos - (Vector2)transform.position; + Vector2 dir = targetWorldPos - (Vector2)tf_projectile.position; if (dir.sqrMagnitude < 0.0001f) return; - transform.up = dir.normalized; + tf_projectile.up = dir.normalized; } } \ No newline at end of file