hud hp 추가 등

This commit is contained in:
Ino 2026-01-14 06:40:48 +09:00
parent c532a59584
commit c6c34ffe1e
12 changed files with 695 additions and 614 deletions

View File

@ -6,7 +6,6 @@
- 몬스터
- 투사체(이펙트)
몬스터 이동방식 구현
// - 직진
- 지그재그

View File

@ -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,11 +1742,46 @@ 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
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6585150402215888903}
m_Layer: 5
m_Name: HUD
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &6585150402215888903
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1751807646433481151}
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: 4111377606588400904}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1910481058885768818
GameObject:
m_ObjectHideFlags: 0
@ -1848,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
@ -1921,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
@ -2108,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
@ -2256,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
@ -2291,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
@ -2373,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
@ -2593,9 +2628,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
@ -2628,9 +2663,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
@ -2665,9 +2700,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
@ -2740,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: 924.75, y: -50}
m_SizeDelta: {x: 68.5, y: 105}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6648869032753469536
@ -3103,9 +3138,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
@ -3330,9 +3365,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
@ -3558,9 +3593,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
@ -3924,9 +3959,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
@ -5080,7 +5115,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
@ -5097,6 +5132,7 @@ RectTransform:
- {fileID: 3849946494845210551}
- {fileID: 8406924210966255483}
- {fileID: 4565446678480095036}
- {fileID: 6585150402215888903}
- {fileID: 5061678075927086196}
- {fileID: 4111377606315435504}
- {fileID: 4111377605452252100}
@ -5149,6 +5185,7 @@ MonoBehaviour:
- {fileID: 2066876199044934063}
- {fileID: 1298365646144552531}
- {fileID: 5678767516249178587}
tf_hudparent: {fileID: 6585150402215888903}
tf_fence: {fileID: 5691718172133534467}
--- !u!1 &4111377606590957781
GameObject:
@ -5320,7 +5357,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}
@ -5432,9 +5469,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
@ -6180,9 +6217,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
@ -6367,9 +6404,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
@ -6592,9 +6629,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
@ -6667,9 +6704,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
@ -6860,9 +6897,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
@ -7008,9 +7045,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
@ -7045,9 +7082,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
@ -7120,9 +7157,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
@ -7290,9 +7327,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
@ -7481,7 +7518,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}
@ -7650,9 +7687,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
@ -7760,9 +7797,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

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 306324fee2fc2ef489986e479dd88f61
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,265 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &2061723215200996860
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6507262739845936840}
- component: {fileID: 6769422636989817066}
- component: {fileID: 1523463580469938900}
m_Layer: 5
m_Name: New Image
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &6507262739845936840
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2061723215200996860}
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: 8548648796748856310}
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: 0}
m_SizeDelta: {x: 192, y: 192}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6769422636989817066
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2061723215200996860}
m_CullTransparentMesh: 1
--- !u!114 &1523463580469938900
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2061723215200996860}
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: 1, b: 1, a: 1}
m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: a3c2fa0cf857d684196fdcbf24a4485b, type: 3}
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!1 &3680300428379449552
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8548648796748856310}
- component: {fileID: -7444133458602713332}
m_Layer: 5
m_Name: HUD_HP
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &8548648796748856310
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3680300428379449552}
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: 6507262739845936840}
- {fileID: 9090863148673544101}
m_Father: {fileID: 0}
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: 0}
m_SizeDelta: {x: 100, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &-7444133458602713332
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3680300428379449552}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6068cbccfca79ff4a9dc8da967a464a5, type: 3}
m_Name:
m_EditorClassIdentifier:
t_hp: {fileID: 2115538773684125255}
offset: {x: -50, y: 0}
--- !u!1 &6166925352905701575
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 9090863148673544101}
- component: {fileID: 4108712977612135944}
- component: {fileID: 2115538773684125255}
m_Layer: 5
m_Name: t_hp
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &9090863148673544101
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6166925352905701575}
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: 8548648796748856310}
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: 5.1, y: 5.6}
m_SizeDelta: {x: 200, y: 50}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &4108712977612135944
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6166925352905701575}
m_CullTransparentMesh: 1
--- !u!114 &2115538773684125255
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6166925352905701575}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: 000
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2100000, guid: 79459efec17a4d00a321bdcc27bbc385, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4294967295
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 50
m_fontSizeBase: 50
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 1
m_HorizontalAlignment: 2
m_VerticalAlignment: 4096
m_textAlignment: 65535
m_characterSpacing: -10
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_TextWrappingMode: 0
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 0
m_ActiveFontFeatures: 6e72656b
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_EmojiFallbackSupport: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: ed8cabdeec25c0040850097e023da987
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -65,6 +65,7 @@ Transform:
m_ConstrainProportionsScale: 1
m_Children:
- {fileID: 4679124192412452}
- {fileID: 1090960412504591673}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &695906546759284123
@ -1375,3 +1376,210 @@ SpriteRenderer:
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!1 &364148225312177574
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4473649609132141091}
- component: {fileID: 1238755157654720973}
m_Layer: 0
m_Name: NormalShield_Noraml
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4473649609132141091
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 364148225312177574}
serializedVersion: 2
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 600, z: 0}
m_LocalScale: {x: 200, y: 200, z: 200}
m_ConstrainProportionsScale: 1
m_Children: []
m_Father: {fileID: 1090960412504591673}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &1238755157654720973
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 364148225312177574}
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: 4
m_Sprite: {fileID: 21300000, guid: a3c2fa0cf857d684196fdcbf24a4485b, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
m_Size: {x: 1.92, y: 1.92}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!1 &4463882891514848185
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4973085035991788585}
- component: {fileID: 5363639451810769206}
m_Layer: 0
m_Name: NonCrashShield
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4973085035991788585
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4463882891514848185}
serializedVersion: 2
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: -600, z: 0}
m_LocalScale: {x: 200, y: 200, z: 200}
m_ConstrainProportionsScale: 1
m_Children: []
m_Father: {fileID: 1090960412504591673}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &5363639451810769206
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4463882891514848185}
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: 4
m_Sprite: {fileID: 21300000, guid: e286dee9940748c4f94eae835d92a8e9, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
m_Size: {x: 1.92, y: 1.92}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!1 &7610231058272992920
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1090960412504591673}
m_Layer: 0
m_Name: Shields
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1090960412504591673
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7610231058272992920}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 331, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 4473649609132141091}
- {fileID: 4973085035991788585}
m_Father: {fileID: 4205530439835790}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}

View File

@ -17445,222 +17445,6 @@ PrefabInstance:
serializedVersion: 3
m_TransformParent: {fileID: 901909686}
m_Modifications:
- target: {fileID: 351787396953488355, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 351787396953488355, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 351787396953488355, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 84
objectReference: {fileID: 0}
- target: {fileID: 351787396953488355, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.y
value: -28
objectReference: {fileID: 0}
- target: {fileID: 351787397989201312, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 351787397989201312, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 351787397989201312, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 84
objectReference: {fileID: 0}
- target: {fileID: 351787397989201312, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.y
value: -124
objectReference: {fileID: 0}
- target: {fileID: 1298365646144552531, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1298365646144552531, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1298365646144552531, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 874
objectReference: {fileID: 0}
- target: {fileID: 1467771610490817847, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1467771610490817847, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1467771610490817847, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 719.25
objectReference: {fileID: 0}
- target: {fileID: 1467771610490817847, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.y
value: -50
objectReference: {fileID: 0}
- target: {fileID: 2027362653857723309, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2027362653857723309, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2027362653857723309, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 171.25
objectReference: {fileID: 0}
- target: {fileID: 2027362653857723309, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.y
value: -50
objectReference: {fileID: 0}
- target: {fileID: 2066876199044934063, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2066876199044934063, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2066876199044934063, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 774
objectReference: {fileID: 0}
- target: {fileID: 2775089715950143664, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2775089715950143664, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2775089715950143664, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 376.75
objectReference: {fileID: 0}
- target: {fileID: 2775089715950143664, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.y
value: -50
objectReference: {fileID: 0}
- target: {fileID: 3034941298722984408, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3034941298722984408, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3034941298722984408, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 993.25
objectReference: {fileID: 0}
- target: {fileID: 3034941298722984408, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.y
value: -50
objectReference: {fileID: 0}
- target: {fileID: 3217378376239936541, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3217378376239936541, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3217378376239936541, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 1061.75
objectReference: {fileID: 0}
- target: {fileID: 3217378376239936541, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.y
value: -50
objectReference: {fileID: 0}
- target: {fileID: 3851091814487837347, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3851091814487837347, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3851091814487837347, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 924.75
objectReference: {fileID: 0}
- target: {fileID: 3851091814487837347, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.y
value: -50
objectReference: {fileID: 0}
- target: {fileID: 4111377604873454816, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4111377604873454816, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4111377604873454816, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 74.985
objectReference: {fileID: 0}
- target: {fileID: 4111377604873454816, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.y
value: -738
objectReference: {fileID: 0}
- target: {fileID: 4111377605057742992, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4111377605057742992, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4111377605057742992, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 74.985
objectReference: {fileID: 0}
- target: {fileID: 4111377605057742992, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.y
value: -246
objectReference: {fileID: 0}
- target: {fileID: 4111377605223402641, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4111377605223402641, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4111377605223402641, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 74.985
objectReference: {fileID: 0}
- target: {fileID: 4111377605223402641, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.y
value: -82
objectReference: {fileID: 0}
- target: {fileID: 4111377605604120026, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4111377605604120026, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4111377605604120026, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 74.985
objectReference: {fileID: 0}
- target: {fileID: 4111377605604120026, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.y
value: -574
objectReference: {fileID: 0}
- target: {fileID: 4111377606588400904, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_Pivot.x
value: 0.5
@ -17745,298 +17529,6 @@ PrefabInstance:
propertyPath: m_Name
value: Play_Ingame
objectReference: {fileID: 0}
- target: {fileID: 4111377606588400911, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_IsActive
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
objectReference: {fileID: 0}
- target: {fileID: 4111377606646784701, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4111377606646784701, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4111377606646784701, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 74.985
objectReference: {fileID: 0}
- target: {fileID: 4111377606646784701, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.y
value: -410
objectReference: {fileID: 0}
- target: {fileID: 4241219922751532992, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4241219922751532992, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4241219922751532992, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 445.25
objectReference: {fileID: 0}
- target: {fileID: 4241219922751532992, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.y
value: -50
objectReference: {fileID: 0}
- target: {fileID: 4330008501081147663, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4330008501081147663, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4330008501081147663, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 513.75
objectReference: {fileID: 0}
- target: {fileID: 4330008501081147663, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.y
value: -50
objectReference: {fileID: 0}
- target: {fileID: 5132647679849202458, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5132647679849202458, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5132647679849202458, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 674
objectReference: {fileID: 0}
- target: {fileID: 5574374908717722177, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5574374908717722177, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5574374908717722177, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 574
objectReference: {fileID: 0}
- target: {fileID: 5678767516249178587, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5678767516249178587, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5678767516249178587, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 974
objectReference: {fileID: 0}
- target: {fileID: 5691718172133534467, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5691718172133534467, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5691718172133534467, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 34.25
objectReference: {fileID: 0}
- target: {fileID: 5691718172133534467, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.y
value: -50
objectReference: {fileID: 0}
- target: {fileID: 5961969503056597898, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5961969503056597898, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5961969503056597898, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 582.25
objectReference: {fileID: 0}
- target: {fileID: 5961969503056597898, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.y
value: -50
objectReference: {fileID: 0}
- target: {fileID: 5997388744017587345, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5997388744017587345, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5997388744017587345, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 174
objectReference: {fileID: 0}
- target: {fileID: 6081102423751470287, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6081102423751470287, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6081102423751470287, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 474
objectReference: {fileID: 0}
- target: {fileID: 6093049785316884920, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6093049785316884920, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6093049785316884920, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 308.25
objectReference: {fileID: 0}
- target: {fileID: 6093049785316884920, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.y
value: -50
objectReference: {fileID: 0}
- target: {fileID: 6400410528953139288, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6400410528953139288, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6400410528953139288, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 274
objectReference: {fileID: 0}
- target: {fileID: 6515384493741739115, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6515384493741739115, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6515384493741739115, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 74
objectReference: {fileID: 0}
- target: {fileID: 6715526188961711891, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6715526188961711891, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6715526188961711891, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 787.75
objectReference: {fileID: 0}
- target: {fileID: 6715526188961711891, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.y
value: -50
objectReference: {fileID: 0}
- target: {fileID: 7053290558194657676, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7053290558194657676, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7053290558194657676, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 102.75
objectReference: {fileID: 0}
- target: {fileID: 7053290558194657676, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.y
value: -50
objectReference: {fileID: 0}
- target: {fileID: 7296985114498065767, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.x
value: 0.426
objectReference: {fileID: 0}
- target: {fileID: 7296985114498065767, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8201494079889326027, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8201494079889326027, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8201494079889326027, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 374
objectReference: {fileID: 0}
- target: {fileID: 8473443759915544516, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8473443759915544516, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8473443759915544516, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 856.25
objectReference: {fileID: 0}
- target: {fileID: 8473443759915544516, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.y
value: -50
objectReference: {fileID: 0}
- target: {fileID: 8809062110974703447, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8809062110974703447, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8809062110974703447, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 650.75
objectReference: {fileID: 0}
- target: {fileID: 8809062110974703447, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.y
value: -50
objectReference: {fileID: 0}
- target: {fileID: 9045579651515305713, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 9045579651515305713, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 9045579651515305713, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.x
value: 239.75
objectReference: {fileID: 0}
- target: {fileID: 9045579651515305713, guid: 7a72290f58c260649a424bb4dd1d8726, type: 3}
propertyPath: m_AnchoredPosition.y
value: -50
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []

View File

@ -10,6 +10,7 @@ public class MobActor : MonoBehaviour
float FenceY, m_attackTimer;
eMobState m_State = eMobState.Move;
Animator m_Animator;
HUD_HP m_HUD_HP;
string poolKey;
IngameMgr owner;
@ -60,12 +61,15 @@ public class MobActor : MonoBehaviour
public void Set(MonsterTableData data, float fenceY)
{
gameObject.SetActive(true);
if (m_HUD_HP == null)
m_HUD_HP = DSUtil.Get_Clone<HUD_HP>("HUD/HUD_HP", IngameMgr.Ins.tf_hudparent);
m_State = eMobState.Move;
m_Data = data;
FenceY = fenceY;
m_attackTimer = m_Data.f_AttackDelay;
m_HP = m_Data.n_DefaultHp;
m_HUD_HP.Set(transform, m_HP);
}
void Move()
@ -114,9 +118,16 @@ public class MobActor : MonoBehaviour
public void Get_Dmg(int dmg)
{
m_HP -= dmg;
m_HUD_HP.Set(m_HP);
if (m_HP <= 0)
{
gameObject.SetActive(false);
}
}
public void Off()
{
gameObject.SetActive(false);
m_HUD_HP.gameObject.SetActive(false);
}
}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: adeb67b76a7ff85439bb8fda56789a85
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,45 @@
using TMPro;
using UnityEngine;
public class HUD_HP : MonoBehaviour
{
public TextMeshProUGUI t_hp;
protected Camera m_Camera;
protected Transform m_Actor;
RectTransform m_RectTransform;
RectTransform CanvasRect;
public Vector2 offset = new Vector2(-5f, 0f);
void Init()
{
if (m_Camera == null) m_Camera = Camera.main;
if (CanvasRect == null) CanvasRect = GameUI.Ins.GetComponent<RectTransform>();
m_RectTransform = GetComponent<RectTransform>();
transform.localScale = Vector3.one * 0.5f;
}
public void Set(Transform tf, int hp)
{
Set(hp);
Init();
m_Actor = tf;
t_hp.text = hp.ToString();
}
public void Set(int hp)
{
t_hp.text = hp.ToString();
gameObject.SetActive(hp > 0);
}
void Update()
{
if (m_Camera == null) m_Camera = Camera.main;
if (m_Actor)
{
Vector2 ViewportPosition = m_Camera.WorldToViewportPoint(m_Actor.position);
Vector2 WorldObject_ScreenPosition = new Vector2((ViewportPosition.x * CanvasRect.sizeDelta.x) - (CanvasRect.sizeDelta.x * 0.5f), (ViewportPosition.y * CanvasRect.sizeDelta.y) - (CanvasRect.sizeDelta.y * 0.5f) - 15f);
m_RectTransform.anchoredPosition = WorldObject_ScreenPosition + offset;
}
}
}

View File

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 6068cbccfca79ff4a9dc8da967a464a5

View File

@ -13,6 +13,7 @@ public class IngameMgr : MonoBehaviourSingletonTemplate<IngameMgr>
[Header("Monster")]
public Transform[] tfs_mobparent;
public Transform tf_hudparent;
[Header("Fence")]
public Transform tf_fence;
@ -24,9 +25,7 @@ public class IngameMgr : MonoBehaviourSingletonTemplate<IngameMgr>
private void OnEnable()
{
foreach (var kv in mob_pools)
foreach (var mob in kv.Value)
mob.gameObject.SetActive(false);
foreach (var kv in mob_pools) foreach (var mob in kv.Value) mob.Off();
CurStageData = table_stageconfig.Ins.Get_Data(10001);
CurUnitData = table_unit.Ins.Get_Data(1001);