From 07d987cec6330829e26be57c8f81d548ff358b37 Mon Sep 17 00:00:00 2001 From: Ino Date: Fri, 16 Jan 2026 07:22:16 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A1=B0=EC=9E=91=20=EA=B0=9C=EC=84=A0=20?= =?UTF-8?q?=EC=9E=91=EC=97=85=20=EC=A4=91...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/ResWork/Prefab/Play_Ingame.prefab | 209 +++++------ .../Projectile/Projectile_MobMelee.prefab | 5 +- Assets/SampleScene.unity | 346 +++++++++++------- .../Script/InGame/Actor/AimArrowController.cs | 12 +- 4 files changed, 332 insertions(+), 240 deletions(-) diff --git a/Assets/ResWork/Prefab/Play_Ingame.prefab b/Assets/ResWork/Prefab/Play_Ingame.prefab index 63064c5..ec1c46d 100644 --- a/Assets/ResWork/Prefab/Play_Ingame.prefab +++ b/Assets/ResWork/Prefab/Play_Ingame.prefab @@ -156,9 +156,9 @@ RectTransform: - {fileID: 351787397619305960} m_Father: {fileID: 351787397931536801} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 84, y: -28} m_SizeDelta: {x: 168, y: 56} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &351787396953488285 @@ -630,9 +630,9 @@ RectTransform: - {fileID: 351787398816937879} m_Father: {fileID: 351787397931536801} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 84, y: -124} m_SizeDelta: {x: 168, y: 56} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &351787397989201314 @@ -1066,9 +1066,9 @@ RectTransform: m_Children: [] m_Father: {fileID: 6552677842084449146} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 582.25, y: -50} m_SizeDelta: {x: 68.5, y: 105} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &7163430304694369180 @@ -1484,9 +1484,9 @@ RectTransform: m_Children: [] m_Father: {fileID: 6552677842084449146} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 171.25, y: -50} m_SizeDelta: {x: 68.5, y: 105} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &7823538357930750549 @@ -1557,9 +1557,9 @@ RectTransform: m_Children: [] m_Father: {fileID: 4565446678480095036} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 574, y: 0} m_SizeDelta: {x: 100, y: 100} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &1167237153372624789 @@ -1669,9 +1669,9 @@ RectTransform: m_Children: [] m_Father: {fileID: 6552677842084449146} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 239.75, y: -50} m_SizeDelta: {x: 68.5, y: 105} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &435610639417173863 @@ -1742,9 +1742,9 @@ RectTransform: m_Children: [] m_Father: {fileID: 4565446678480095036} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 174, y: 0} m_SizeDelta: {x: 100, y: 100} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &1751807646433481151 @@ -1883,9 +1883,9 @@ RectTransform: m_Children: [] m_Father: {fileID: 6552677842084449146} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 376.75, y: -50} m_SizeDelta: {x: 68.5, y: 105} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &7600085844187918154 @@ -1956,9 +1956,9 @@ RectTransform: m_Children: [] m_Father: {fileID: 4565446678480095036} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 474, y: 0} m_SizeDelta: {x: 100, y: 100} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &2741785787345250520 @@ -2143,9 +2143,9 @@ RectTransform: m_Children: [] m_Father: {fileID: 6552677842084449146} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 1061.75, y: -50} m_SizeDelta: {x: 68.5, y: 105} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &169289265744140556 @@ -2291,9 +2291,9 @@ RectTransform: m_Children: [] m_Father: {fileID: 4565446678480095036} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 374, y: 0} m_SizeDelta: {x: 100, y: 100} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &3012097178321555086 @@ -2326,9 +2326,9 @@ RectTransform: m_Children: [] m_Father: {fileID: 4565446678480095036} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 74, y: 0} m_SizeDelta: {x: 100, y: 100} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &3205156981863902613 @@ -2408,9 +2408,9 @@ RectTransform: m_Children: [] m_Father: {fileID: 4565446678480095036} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 774, y: 0} m_SizeDelta: {x: 100, y: 100} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &3310522054914711900 @@ -2703,9 +2703,9 @@ RectTransform: m_Children: [] m_Father: {fileID: 4565446678480095036} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 874, y: 0} m_SizeDelta: {x: 100, y: 100} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &3575237912658796926 @@ -2738,9 +2738,9 @@ RectTransform: m_Children: [] m_Father: {fileID: 4565446678480095036} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 674, y: 0} m_SizeDelta: {x: 100, y: 100} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &3772368741423675718 @@ -2775,9 +2775,9 @@ RectTransform: m_Children: [] m_Father: {fileID: 6552677842084449146} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 34.25, y: -50} m_SizeDelta: {x: 68.5, y: 105} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &7400539125868673273 @@ -2850,9 +2850,9 @@ RectTransform: m_Children: [] m_Father: {fileID: 6552677842084449146} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 924.75, y: -50} m_SizeDelta: {x: 68.5, y: 105} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &6648869032753469536 @@ -3213,9 +3213,9 @@ RectTransform: - {fileID: 4111377605186515536} m_Father: {fileID: 4111377605869284182} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 74.985, y: -738} m_SizeDelta: {x: 150.03, y: 149.47} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &4111377604873454818 @@ -3440,9 +3440,9 @@ RectTransform: - {fileID: 4111377606575878288} m_Father: {fileID: 4111377605869284182} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 74.985, y: -246} m_SizeDelta: {x: 150.03, y: 149.47} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &4111377605057742994 @@ -3668,9 +3668,9 @@ RectTransform: - {fileID: 4111377605378486164} m_Father: {fileID: 4111377605869284182} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 74.985, y: -82} m_SizeDelta: {x: 150.03, y: 149.47} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &4111377605223402643 @@ -4091,9 +4091,9 @@ RectTransform: - {fileID: 4111377606218893651} m_Father: {fileID: 4111377605869284182} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 74.985, y: -574} m_SizeDelta: {x: 150.03, y: 149.47} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &4111377605604120004 @@ -5247,7 +5247,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 1 + m_IsActive: 0 --- !u!224 &4111377606588400904 RectTransform: m_ObjectHideFlags: 0 @@ -5492,7 +5492,7 @@ RectTransform: m_Father: {fileID: 4111377606625657608} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} + m_AnchorMax: {x: 0.426, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} @@ -5604,9 +5604,9 @@ RectTransform: - {fileID: 4111377606184979533} m_Father: {fileID: 4111377605869284182} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 74.985, y: -410} m_SizeDelta: {x: 150.03, y: 149.47} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &4111377606646784703 @@ -6154,8 +6154,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 0} - m_AnchoredPosition: {x: 0, y: 249} - m_SizeDelta: {x: 0, y: 50} + m_AnchoredPosition: {x: 0, y: 230.23} + m_SizeDelta: {x: 0, y: 24.98} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &727317815655610731 CanvasRenderer: @@ -6372,6 +6372,7 @@ MonoBehaviour: m_EditorClassIdentifier: arrow: {fileID: 8937393983639744836} projectileParent: {fileID: 5061678075927086196} + m_AngleSpeed: 1.5 --- !u!1 &5364417891367720637 GameObject: m_ObjectHideFlags: 0 @@ -6402,9 +6403,9 @@ RectTransform: m_Children: [] m_Father: {fileID: 4565446678480095036} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 974, y: 0} m_SizeDelta: {x: 100, y: 100} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &5407196538856758320 @@ -6589,9 +6590,9 @@ RectTransform: m_Children: [] m_Father: {fileID: 6552677842084449146} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 787.75, y: -50} m_SizeDelta: {x: 68.5, y: 105} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &6536984518647531088 @@ -6814,9 +6815,9 @@ RectTransform: m_Children: [] m_Father: {fileID: 6552677842084449146} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 308.25, y: -50} m_SizeDelta: {x: 68.5, y: 105} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &2756278015230701219 @@ -6889,9 +6890,9 @@ RectTransform: m_Children: [] m_Father: {fileID: 6552677842084449146} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 513.75, y: -50} m_SizeDelta: {x: 68.5, y: 105} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &4086053485889352588 @@ -7082,9 +7083,9 @@ RectTransform: m_Children: [] m_Father: {fileID: 6552677842084449146} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 102.75, y: -50} m_SizeDelta: {x: 68.5, y: 105} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &7747941206271507375 @@ -7230,9 +7231,9 @@ RectTransform: m_Children: [] m_Father: {fileID: 4565446678480095036} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 274, y: 0} m_SizeDelta: {x: 100, y: 100} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &7756595007517502617 @@ -7267,9 +7268,9 @@ RectTransform: m_Children: [] m_Father: {fileID: 6552677842084449146} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 719.25, y: -50} m_SizeDelta: {x: 68.5, y: 105} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &210884713592062119 @@ -7342,9 +7343,9 @@ RectTransform: m_Children: [] m_Father: {fileID: 6552677842084449146} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 993.25, y: -50} m_SizeDelta: {x: 68.5, y: 105} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &1975886415892911861 @@ -7512,9 +7513,9 @@ RectTransform: m_Children: [] m_Father: {fileID: 6552677842084449146} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 856.25, y: -50} m_SizeDelta: {x: 68.5, y: 105} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &2085836979284517684 @@ -7703,7 +7704,7 @@ RectTransform: m_Father: {fileID: 8995922341521496394} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} + m_AnchorMax: {x: 0.426, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} @@ -7872,9 +7873,9 @@ RectTransform: m_Children: [] m_Father: {fileID: 6552677842084449146} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 650.75, y: -50} m_SizeDelta: {x: 68.5, y: 105} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &8157428590540182390 @@ -7982,9 +7983,9 @@ RectTransform: m_Children: [] m_Father: {fileID: 6552677842084449146} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 445.25, y: -50} m_SizeDelta: {x: 68.5, y: 105} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &7304670376984328887 diff --git a/Assets/Resources/Projectile/Projectile_MobMelee.prefab b/Assets/Resources/Projectile/Projectile_MobMelee.prefab index 0ef46d2..233a4a6 100644 --- a/Assets/Resources/Projectile/Projectile_MobMelee.prefab +++ b/Assets/Resources/Projectile/Projectile_MobMelee.prefab @@ -59,7 +59,6 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: m_Speed: 12 - m_MaxBounce: 3 radius: 0.1 --- !u!61 &4784918102884404883 BoxCollider2D: @@ -95,7 +94,7 @@ BoxCollider2D: m_UsedByEffector: 0 m_CompositeOperation: 0 m_CompositeOrder: 0 - m_Offset: {x: 0, y: 0} + m_Offset: {x: 0, y: -90.491974} m_SpriteTilingProperty: border: {x: 0, y: 0, z: 0, w: 0} pivot: {x: 0, y: 0} @@ -105,5 +104,5 @@ BoxCollider2D: drawMode: 0 adaptiveTiling: 0 m_AutoTiling: 0 - m_Size: {x: 100, y: 150} + m_Size: {x: 100, y: 330.98395} m_EdgeRadius: 0 diff --git a/Assets/SampleScene.unity b/Assets/SampleScene.unity index 88b8b12..d07cf63 100644 --- a/Assets/SampleScene.unity +++ b/Assets/SampleScene.unity @@ -17447,219 +17447,219 @@ PrefabInstance: m_Modifications: - target: {fileID: 351787396953488355, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 351787396953488355, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 351787396953488355, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 84 + value: 0 objectReference: {fileID: 0} - target: {fileID: 351787396953488355, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.y - value: -28 + value: 0 objectReference: {fileID: 0} - target: {fileID: 351787397989201312, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 351787397989201312, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 351787397989201312, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 84 + value: 0 objectReference: {fileID: 0} - target: {fileID: 351787397989201312, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.y - value: -124 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1298365646144552531, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1298365646144552531, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1298365646144552531, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 874 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1467771610490817847, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1467771610490817847, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1467771610490817847, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 719.25 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1467771610490817847, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.y - value: -50 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2027362653857723309, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2027362653857723309, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2027362653857723309, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 171.25 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2027362653857723309, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.y - value: -50 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2066876199044934063, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2066876199044934063, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2066876199044934063, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 774 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2775089715950143664, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2775089715950143664, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2775089715950143664, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 376.75 + value: 0 objectReference: {fileID: 0} - target: {fileID: 2775089715950143664, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.y - value: -50 + value: 0 objectReference: {fileID: 0} - target: {fileID: 3034941298722984408, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 3034941298722984408, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 3034941298722984408, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 993.25 + value: 0 objectReference: {fileID: 0} - target: {fileID: 3034941298722984408, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.y - value: -50 + value: 0 objectReference: {fileID: 0} - target: {fileID: 3217378376239936541, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 3217378376239936541, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 3217378376239936541, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 1061.75 + value: 0 objectReference: {fileID: 0} - target: {fileID: 3217378376239936541, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.y - value: -50 + value: 0 objectReference: {fileID: 0} - target: {fileID: 3851091814487837347, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 3851091814487837347, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 3851091814487837347, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 924.75 + value: 0 objectReference: {fileID: 0} - target: {fileID: 3851091814487837347, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.y - value: -50 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4111377604873454816, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4111377604873454816, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4111377604873454816, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 74.985 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4111377604873454816, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.y - value: -738 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4111377605057742992, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4111377605057742992, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4111377605057742992, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 74.985 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4111377605057742992, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.y - value: -246 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4111377605223402641, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4111377605223402641, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4111377605223402641, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 74.985 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4111377605223402641, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.y - value: -82 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4111377605604120026, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4111377605604120026, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4111377605604120026, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 74.985 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4111377605604120026, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.y - value: -574 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4111377606588400904, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_Pivot.x @@ -17747,235 +17747,235 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 4111377606588400911, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_IsActive + value: 1 + 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.x - value: 0.426 - objectReference: {fileID: 0} - target: {fileID: 4111377606602774470, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4111377606646784701, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4111377606646784701, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4111377606646784701, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 74.985 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4111377606646784701, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.y - value: -410 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4241219922751532992, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4241219922751532992, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4241219922751532992, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 445.25 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4241219922751532992, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.y - value: -50 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4330008501081147663, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4330008501081147663, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4330008501081147663, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 513.75 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4330008501081147663, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.y - value: -50 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5132647679849202458, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5132647679849202458, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5132647679849202458, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 674 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5574374908717722177, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5574374908717722177, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5574374908717722177, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 574 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5678767516249178587, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5678767516249178587, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5678767516249178587, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 974 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5691718172133534467, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5691718172133534467, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5691718172133534467, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 34.25 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5691718172133534467, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.y - value: -50 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5961969503056597898, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5961969503056597898, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5961969503056597898, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 582.25 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5961969503056597898, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.y - value: -50 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5997388744017587345, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5997388744017587345, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 5997388744017587345, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 174 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6081102423751470287, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6081102423751470287, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6081102423751470287, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 474 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6093049785316884920, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6093049785316884920, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6093049785316884920, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 308.25 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6093049785316884920, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.y - value: -50 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6400410528953139288, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6400410528953139288, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6400410528953139288, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 274 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6515384493741739115, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6515384493741739115, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6515384493741739115, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 74 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6715526188961711891, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6715526188961711891, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6715526188961711891, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 787.75 + value: 0 objectReference: {fileID: 0} - target: {fileID: 6715526188961711891, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.y - value: -50 + value: 0 objectReference: {fileID: 0} - target: {fileID: 7053290558194657676, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 7053290558194657676, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 7053290558194657676, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 102.75 + value: 0 objectReference: {fileID: 0} - target: {fileID: 7053290558194657676, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.y - value: -50 + value: 0 objectReference: {fileID: 0} - target: {fileID: 7296985114498065767, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.x - value: 0.426 + value: 0 objectReference: {fileID: 0} - target: {fileID: 7296985114498065767, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 7344498057576682711, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target @@ -17983,63 +17983,63 @@ PrefabInstance: objectReference: {fileID: 1571370886} - target: {fileID: 8201494079889326027, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 8201494079889326027, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 8201494079889326027, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 374 + value: 0 objectReference: {fileID: 0} - target: {fileID: 8473443759915544516, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 8473443759915544516, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 8473443759915544516, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 856.25 + value: 0 objectReference: {fileID: 0} - target: {fileID: 8473443759915544516, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.y - value: -50 + value: 0 objectReference: {fileID: 0} - target: {fileID: 8809062110974703447, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 8809062110974703447, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 8809062110974703447, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 650.75 + value: 0 objectReference: {fileID: 0} - target: {fileID: 8809062110974703447, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.y - value: -50 + value: 0 objectReference: {fileID: 0} - target: {fileID: 9045579651515305713, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 9045579651515305713, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 9045579651515305713, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.x - value: 239.75 + value: 0 objectReference: {fileID: 0} - target: {fileID: 9045579651515305713, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3} propertyPath: m_AnchoredPosition.y - value: -50 + value: 0 objectReference: {fileID: 0} m_RemovedComponents: [] m_RemovedGameObjects: [] @@ -285528,6 +285528,93 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1265807740} m_CullTransparentMesh: 1 +--- !u!1 &1266197613 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1266197615} + - component: {fileID: 1266197614} + m_Layer: 0 + m_Name: Arrow + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!212 &1266197614 +SpriteRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1266197613} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 0 + m_RayTraceProcedural: 0 + m_RayTracingAccelStructBuildFlagsOverride: 0 + m_RayTracingAccelStructBuildFlags: 1 + m_SmallMeshCulling: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: a97c105638bdf8b4a8650670310a4cd3, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: -9 + m_Sprite: {fileID: 21300000, guid: 9dea6512a45784ff7b2a5bbdfa996d16, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 0.54, y: 0.64} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!4 &1266197615 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1266197613} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: -6.57, z: 0} + m_LocalScale: {x: 2.5, y: 3, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1266280110 GameObject: m_ObjectHideFlags: 0 @@ -493961,3 +494048,4 @@ SceneRoots: - {fileID: 11995857} - {fileID: 1293320786} - {fileID: 2318160772376801329} + - {fileID: 1266197615} diff --git a/Assets/Script/InGame/Actor/AimArrowController.cs b/Assets/Script/InGame/Actor/AimArrowController.cs index c091da5..aae8a62 100644 --- a/Assets/Script/InGame/Actor/AimArrowController.cs +++ b/Assets/Script/InGame/Actor/AimArrowController.cs @@ -109,13 +109,17 @@ public class AimArrowController : MonoBehaviour } } - void UpdateArrow(Vector2 currentPos) + public float m_AngleSpeed = 1.5f; + void UpdateArrow(Vector2 screenPos) { + Debug.Log(screenPos); arrow.enabled = true; - Vector2 dir = currentPos - (Vector2)arrow.transform.position; - - float angle = (Mathf.Atan2(dir.y, dir.x) * Mathf.Rad2Deg - 45f) * 7.5f; + Vector2 baseScreenPos = Camera.main.WorldToScreenPoint(projectileParent.position); + Vector2 dir = screenPos - baseScreenPos; + dir.y = Mathf.Abs(dir.y); + float angle = Mathf.Atan2(dir.y, dir.x) * Mathf.Rad2Deg - 90f; + angle *= m_AngleSpeed; angle = Mathf.Clamp(angle, -80f, 80f); arrow.rectTransform.rotation = Quaternion.Euler(0, 0, angle); }