Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
tetra-tower
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Oenos
tetra-tower
Commits
2664fff9
Commit
2664fff9
authored
Feb 20, 2019
by
18류지석
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
콤보 표시 그림으로 바꿈. 애니메이션 PPT같음 ^오^
parent
cc22d91d
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
396 additions
and
180 deletions
+396
-180
Player.prefab
Assets/Prefabs/Characters/Player.prefab
+5
-3
TestTools.prefab
Assets/Prefabs/TetrisMap/TestTools.prefab
+0
-154
CharPrefab.prefab
Assets/Prefabs/UI/In-Game UI/CharPrefab.prefab
+82
-0
CharPrefab.prefab.meta
Assets/Prefabs/UI/In-Game UI/CharPrefab.prefab.meta
+8
-0
ComboUI.prefab
Assets/Prefabs/UI/In-Game UI/ComboUI.prefab
+170
-0
ComboUI.prefab.meta
Assets/Prefabs/UI/In-Game UI/ComboUI.prefab.meta
+8
-0
PlayerAttack.cs
Assets/Scripts/Characters/PlayerAttack.cs
+6
-23
ComboUI.cs
Assets/Scripts/UI/In-game UI/ComboUI.cs
+106
-0
ComboUI.cs.meta
Assets/Scripts/UI/In-game UI/ComboUI.cs.meta
+11
-0
No files found.
Assets/Prefabs/Characters/Player.prefab
View file @
2664fff9
...
@@ -361,6 +361,9 @@ MonoBehaviour:
...
@@ -361,6 +361,9 @@ MonoBehaviour:
vanishLayer
:
vanishLayer
:
serializedVersion
:
2
serializedVersion
:
2
m_Bits
:
0
m_Bits
:
0
stopLayer
:
serializedVersion
:
2
m_Bits
:
0
attackCombo
:
attackCombo
:
---
!u!114
&114574072693989902
---
!u!114
&114574072693989902
MonoBehaviour
:
MonoBehaviour
:
...
@@ -399,8 +402,6 @@ MonoBehaviour:
...
@@ -399,8 +402,6 @@ MonoBehaviour:
playingSkill
:
0
playingSkill
:
0
originComboTime
:
1
originComboTime
:
1
comboTime
:
1
comboTime
:
1
time
:
{
fileID
:
0
}
combo
:
{
fileID
:
0
}
comboArray
:
comboArray
:
StartTime
:
0
StartTime
:
0
anim
:
{
fileID
:
95992411616135034
}
anim
:
{
fileID
:
95992411616135034
}
...
@@ -409,6 +410,7 @@ MonoBehaviour:
...
@@ -409,6 +410,7 @@ MonoBehaviour:
-
{
fileID
:
7400000
,
guid
:
b1bf5cd583e214e448b83335f6c2d7a6
,
type
:
2
}
-
{
fileID
:
7400000
,
guid
:
b1bf5cd583e214e448b83335f6c2d7a6
,
type
:
2
}
-
{
fileID
:
7400000
,
guid
:
b7ca0c87c2a73cb4e939b4d06abd4217
,
type
:
2
}
-
{
fileID
:
7400000
,
guid
:
b7ca0c87c2a73cb4e939b4d06abd4217
,
type
:
2
}
-
{
fileID
:
7400000
,
guid
:
9133e696bcae7294c86f6702b20b4ae7
,
type
:
2
}
-
{
fileID
:
7400000
,
guid
:
9133e696bcae7294c86f6702b20b4ae7
,
type
:
2
}
comboUI
:
{
fileID
:
0
}
---
!u!114
&114906702720267008
---
!u!114
&114906702720267008
MonoBehaviour
:
MonoBehaviour
:
m_ObjectHideFlags
:
1
m_ObjectHideFlags
:
1
...
@@ -455,7 +457,7 @@ SpriteRenderer:
...
@@ -455,7 +457,7 @@ SpriteRenderer:
m_AutoUVMaxAngle
:
89
m_AutoUVMaxAngle
:
89
m_LightmapParameters
:
{
fileID
:
0
}
m_LightmapParameters
:
{
fileID
:
0
}
m_SortingLayerID
:
-2078941185
m_SortingLayerID
:
-2078941185
m_SortingLayer
:
6
m_SortingLayer
:
8
m_SortingOrder
:
0
m_SortingOrder
:
0
m_Sprite
:
{
fileID
:
21300000
,
guid
:
92d166e0c2a85a14facee45f5a5a8444
,
type
:
3
}
m_Sprite
:
{
fileID
:
21300000
,
guid
:
92d166e0c2a85a14facee45f5a5a8444
,
type
:
3
}
m_Color
:
{
r
:
1
,
g
:
1
,
b
:
1
,
a
:
1
}
m_Color
:
{
r
:
1
,
g
:
1
,
b
:
1
,
a
:
1
}
...
...
Assets/Prefabs/TetrisMap/TestTools.prefab
View file @
2664fff9
...
@@ -149,23 +149,6 @@ GameObject:
...
@@ -149,23 +149,6 @@ GameObject:
m_NavMeshLayer
:
0
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
m_IsActive
:
1
---
!u!1
&1192259543566692
GameObject
:
m_ObjectHideFlags
:
1
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
serializedVersion
:
6
m_Component
:
-
component
:
{
fileID
:
224718253185442684
}
-
component
:
{
fileID
:
222728410615879860
}
-
component
:
{
fileID
:
114201015544643294
}
m_Layer
:
5
m_Name
:
comboString
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!1
&1202151931231562
---
!u!1
&1202151931231562
GameObject
:
GameObject
:
m_ObjectHideFlags
:
1
m_ObjectHideFlags
:
1
...
@@ -412,23 +395,6 @@ GameObject:
...
@@ -412,23 +395,6 @@ GameObject:
m_NavMeshLayer
:
0
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
m_IsActive
:
1
---
!u!1
&1476757860294118
GameObject
:
m_ObjectHideFlags
:
1
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
serializedVersion
:
6
m_Component
:
-
component
:
{
fileID
:
224363839195006936
}
-
component
:
{
fileID
:
222534792739815650
}
-
component
:
{
fileID
:
114177053965581520
}
m_Layer
:
5
m_Name
:
comboTime
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!1
&1515372648492700
---
!u!1
&1515372648492700
GameObject
:
GameObject
:
m_ObjectHideFlags
:
1
m_ObjectHideFlags
:
1
...
@@ -1261,39 +1227,6 @@ MonoBehaviour:
...
@@ -1261,39 +1227,6 @@ MonoBehaviour:
m_VerticalOverflow
:
0
m_VerticalOverflow
:
0
m_LineSpacing
:
1
m_LineSpacing
:
1
m_Text
:
Destroy Number
m_Text
:
Destroy Number
---
!u!114
&114177053965581520
MonoBehaviour
:
m_ObjectHideFlags
:
1
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1476757860294118
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
708705254
,
guid
:
f70555f144d8491a825f0804e09c671c
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
m_Material
:
{
fileID
:
0
}
m_Color
:
{
r
:
0.19607843
,
g
:
0.19607843
,
b
:
0.19607843
,
a
:
1
}
m_RaycastTarget
:
1
m_OnCullStateChanged
:
m_PersistentCalls
:
m_Calls
:
[]
m_TypeName
:
UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_FontData
:
m_Font
:
{
fileID
:
10102
,
guid
:
0000000000000000e000000000000000
,
type
:
0
}
m_FontSize
:
20
m_FontStyle
:
0
m_BestFit
:
0
m_MinSize
:
2
m_MaxSize
:
40
m_Alignment
:
4
m_AlignByGeometry
:
0
m_RichText
:
1
m_HorizontalOverflow
:
0
m_VerticalOverflow
:
0
m_LineSpacing
:
1
m_Text
:
New Text
---
!u!114
&114196760162585638
---
!u!114
&114196760162585638
MonoBehaviour
:
MonoBehaviour
:
m_ObjectHideFlags
:
1
m_ObjectHideFlags
:
1
...
@@ -1441,41 +1374,6 @@ MonoBehaviour:
...
@@ -1441,41 +1374,6 @@ MonoBehaviour:
m_FallbackScreenDPI
:
96
m_FallbackScreenDPI
:
96
m_DefaultSpriteDPI
:
96
m_DefaultSpriteDPI
:
96
m_DynamicPixelsPerUnit
:
1
m_DynamicPixelsPerUnit
:
1
---
!u!114
&114201015544643294
MonoBehaviour
:
m_ObjectHideFlags
:
1
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1192259543566692
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
708705254
,
guid
:
f70555f144d8491a825f0804e09c671c
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
m_Material
:
{
fileID
:
0
}
m_Color
:
{
r
:
0.19607843
,
g
:
0.19607843
,
b
:
0.19607843
,
a
:
1
}
m_RaycastTarget
:
1
m_OnCullStateChanged
:
m_PersistentCalls
:
m_Calls
:
[]
m_TypeName
:
UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_FontData
:
m_Font
:
{
fileID
:
10102
,
guid
:
0000000000000000e000000000000000
,
type
:
0
}
m_FontSize
:
40
m_FontStyle
:
0
m_BestFit
:
0
m_MinSize
:
0
m_MaxSize
:
40
m_Alignment
:
4
m_AlignByGeometry
:
0
m_RichText
:
1
m_HorizontalOverflow
:
0
m_VerticalOverflow
:
0
m_LineSpacing
:
1
m_Text
:
'
test
'
---
!u!114
&114213890665286158
---
!u!114
&114213890665286158
MonoBehaviour
:
MonoBehaviour
:
m_ObjectHideFlags
:
1
m_ObjectHideFlags
:
1
...
@@ -3565,13 +3463,6 @@ CanvasRenderer:
...
@@ -3565,13 +3463,6 @@ CanvasRenderer:
m_PrefabInternal
:
{
fileID
:
100100000
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1931804548930462
}
m_GameObject
:
{
fileID
:
1931804548930462
}
m_CullTransparentMesh
:
0
m_CullTransparentMesh
:
0
---
!u!222
&222534792739815650
CanvasRenderer
:
m_ObjectHideFlags
:
1
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1476757860294118
}
m_CullTransparentMesh
:
0
---
!u!222
&222557486963309136
---
!u!222
&222557486963309136
CanvasRenderer
:
CanvasRenderer
:
m_ObjectHideFlags
:
1
m_ObjectHideFlags
:
1
...
@@ -3628,13 +3519,6 @@ CanvasRenderer:
...
@@ -3628,13 +3519,6 @@ CanvasRenderer:
m_PrefabInternal
:
{
fileID
:
100100000
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1080262509988266
}
m_GameObject
:
{
fileID
:
1080262509988266
}
m_CullTransparentMesh
:
0
m_CullTransparentMesh
:
0
---
!u!222
&222728410615879860
CanvasRenderer
:
m_ObjectHideFlags
:
1
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1192259543566692
}
m_CullTransparentMesh
:
0
---
!u!222
&222776509415662164
---
!u!222
&222776509415662164
CanvasRenderer
:
CanvasRenderer
:
m_ObjectHideFlags
:
1
m_ObjectHideFlags
:
1
...
@@ -4026,24 +3910,6 @@ RectTransform:
...
@@ -4026,24 +3910,6 @@ RectTransform:
m_AnchoredPosition
:
{
x
:
0
,
y
:
0
}
m_AnchoredPosition
:
{
x
:
0
,
y
:
0
}
m_SizeDelta
:
{
x
:
0
,
y
:
0
}
m_SizeDelta
:
{
x
:
0
,
y
:
0
}
m_Pivot
:
{
x
:
0
,
y
:
0
}
m_Pivot
:
{
x
:
0
,
y
:
0
}
---
!u!224
&224363839195006936
RectTransform
:
m_ObjectHideFlags
:
1
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1476757860294118
}
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_Children
:
[]
m_Father
:
{
fileID
:
224395958577644168
}
m_RootOrder
:
7
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
0
,
y
:
1
}
m_AnchorMax
:
{
x
:
0
,
y
:
1
}
m_AnchoredPosition
:
{
x
:
1391.8002
,
y
:
-65
}
m_SizeDelta
:
{
x
:
447.59998
,
y
:
30
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
---
!u!224
&224388504707880396
---
!u!224
&224388504707880396
RectTransform
:
RectTransform
:
m_ObjectHideFlags
:
1
m_ObjectHideFlags
:
1
...
@@ -4078,8 +3944,6 @@ RectTransform:
...
@@ -4078,8 +3944,6 @@ RectTransform:
-
{
fileID
:
224071041299093070
}
-
{
fileID
:
224071041299093070
}
-
{
fileID
:
224804297962416264
}
-
{
fileID
:
224804297962416264
}
-
{
fileID
:
224008356030171754
}
-
{
fileID
:
224008356030171754
}
-
{
fileID
:
224718253185442684
}
-
{
fileID
:
224363839195006936
}
m_Father
:
{
fileID
:
4884929250924374
}
m_Father
:
{
fileID
:
4884929250924374
}
m_RootOrder
:
1
m_RootOrder
:
1
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
...
@@ -4442,24 +4306,6 @@ RectTransform:
...
@@ -4442,24 +4306,6 @@ RectTransform:
m_AnchoredPosition
:
{
x
:
0
,
y
:
0
}
m_AnchoredPosition
:
{
x
:
0
,
y
:
0
}
m_SizeDelta
:
{
x
:
0
,
y
:
0
}
m_SizeDelta
:
{
x
:
0
,
y
:
0
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
---
!u!224
&224718253185442684
RectTransform
:
m_ObjectHideFlags
:
1
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1192259543566692
}
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_Children
:
[]
m_Father
:
{
fileID
:
224395958577644168
}
m_RootOrder
:
6
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
0
,
y
:
1
}
m_AnchorMax
:
{
x
:
0
,
y
:
1
}
m_AnchoredPosition
:
{
x
:
1391
,
y
:
-122.100006
}
m_SizeDelta
:
{
x
:
449.2
,
y
:
84.20001
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
---
!u!224
&224719946011532306
---
!u!224
&224719946011532306
RectTransform
:
RectTransform
:
m_ObjectHideFlags
:
1
m_ObjectHideFlags
:
1
...
...
Assets/Prefabs/UI/In-Game UI/CharPrefab.prefab
0 → 100644
View file @
2664fff9
%YAML
1.1
%TAG
!u!
tag:unity3d.com,2011:
---
!u!1001
&100100000
Prefab
:
m_ObjectHideFlags
:
1
serializedVersion
:
2
m_Modification
:
m_TransformParent
:
{
fileID
:
0
}
m_Modifications
:
[]
m_RemovedComponents
:
[]
m_SourcePrefab
:
{
fileID
:
0
}
m_RootGameObject
:
{
fileID
:
1095428380981576
}
m_IsPrefabAsset
:
1
---
!u!1
&1095428380981576
GameObject
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
serializedVersion
:
6
m_Component
:
-
component
:
{
fileID
:
224950667710839896
}
-
component
:
{
fileID
:
222825601916116362
}
-
component
:
{
fileID
:
114195692063160650
}
m_Layer
:
5
m_Name
:
CharPrefab
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!114
&114195692063160650
MonoBehaviour
:
m_ObjectHideFlags
:
1
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1095428380981576
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
-765806418
,
guid
:
f70555f144d8491a825f0804e09c671c
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
m_Material
:
{
fileID
:
0
}
m_Color
:
{
r
:
1
,
g
:
1
,
b
:
1
,
a
:
1
}
m_RaycastTarget
:
1
m_OnCullStateChanged
:
m_PersistentCalls
:
m_Calls
:
[]
m_TypeName
:
UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_Sprite
:
{
fileID
:
0
}
m_Type
:
0
m_PreserveAspect
:
0
m_FillCenter
:
1
m_FillMethod
:
4
m_FillAmount
:
1
m_FillClockwise
:
1
m_FillOrigin
:
0
---
!u!222
&222825601916116362
CanvasRenderer
:
m_ObjectHideFlags
:
1
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1095428380981576
}
m_CullTransparentMesh
:
0
---
!u!224
&224950667710839896
RectTransform
:
m_ObjectHideFlags
:
1
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1095428380981576
}
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_Children
:
[]
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
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
:
0
,
y
:
0
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
Assets/Prefabs/UI/In-Game UI/CharPrefab.prefab.meta
0 → 100644
View file @
2664fff9
fileFormatVersion: 2
guid: 56ca0b4beca882947a7267a94985352b
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 100100000
userData:
assetBundleName:
assetBundleVariant:
Assets/Prefabs/UI/In-Game UI/ComboUI.prefab
0 → 100644
View file @
2664fff9
%YAML
1.1
%TAG
!u!
tag:unity3d.com,2011:
---
!u!1001
&100100000
Prefab
:
m_ObjectHideFlags
:
1
serializedVersion
:
2
m_Modification
:
m_TransformParent
:
{
fileID
:
0
}
m_Modifications
:
[]
m_RemovedComponents
:
[]
m_SourcePrefab
:
{
fileID
:
0
}
m_RootGameObject
:
{
fileID
:
1379113144309236
}
m_IsPrefabAsset
:
1
---
!u!1
&1379113144309236
GameObject
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
serializedVersion
:
6
m_Component
:
-
component
:
{
fileID
:
224473505326681690
}
-
component
:
{
fileID
:
114835525296742934
}
m_Layer
:
5
m_Name
:
ComboUI
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!1
&1573367569156034
GameObject
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
serializedVersion
:
6
m_Component
:
-
component
:
{
fileID
:
224686579988098898
}
m_Layer
:
5
m_Name
:
CharUI
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!1
&1688191540496162
GameObject
:
m_ObjectHideFlags
:
0
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
serializedVersion
:
6
m_Component
:
-
component
:
{
fileID
:
224756934921147816
}
-
component
:
{
fileID
:
222456733401175092
}
-
component
:
{
fileID
:
114480143646333180
}
m_Layer
:
5
m_Name
:
TimeUI
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!114
&114480143646333180
MonoBehaviour
:
m_ObjectHideFlags
:
1
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1688191540496162
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
-765806418
,
guid
:
f70555f144d8491a825f0804e09c671c
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
m_Material
:
{
fileID
:
0
}
m_Color
:
{
r
:
1
,
g
:
1
,
b
:
1
,
a
:
1
}
m_RaycastTarget
:
1
m_OnCullStateChanged
:
m_PersistentCalls
:
m_Calls
:
[]
m_TypeName
:
UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_Sprite
:
{
fileID
:
0
}
m_Type
:
0
m_PreserveAspect
:
0
m_FillCenter
:
1
m_FillMethod
:
4
m_FillAmount
:
1
m_FillClockwise
:
1
m_FillOrigin
:
0
---
!u!114
&114835525296742934
MonoBehaviour
:
m_ObjectHideFlags
:
1
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1379113144309236
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
11500000
,
guid
:
0296171c22d97e64baf3fa3893e42f81
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
charUI
:
{
fileID
:
1573367569156034
}
timeUI
:
{
fileID
:
1688191540496162
}
charPrefab
:
{
fileID
:
1095428380981576
,
guid
:
56ca0b4beca882947a7267a94985352b
,
type
:
2
}
normalCombo
:
-
{
fileID
:
21300000
,
guid
:
0f9aa2df06e79a64d8981a956eb12226
,
type
:
3
}
-
{
fileID
:
21300000
,
guid
:
8a73c5ced4d09b74f89078836b9bd890
,
type
:
3
}
-
{
fileID
:
21300000
,
guid
:
eff9d90dcca182243875912722e0cec7
,
type
:
3
}
charSpaceR
:
0.4
---
!u!222
&222456733401175092
CanvasRenderer
:
m_ObjectHideFlags
:
1
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1688191540496162
}
m_CullTransparentMesh
:
0
---
!u!224
&224473505326681690
RectTransform
:
m_ObjectHideFlags
:
1
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1379113144309236
}
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_Children
:
-
{
fileID
:
224686579988098898
}
-
{
fileID
:
224756934921147816
}
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
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
:
429
}
m_SizeDelta
:
{
x
:
0
,
y
:
0
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
---
!u!224
&224686579988098898
RectTransform
:
m_ObjectHideFlags
:
1
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1573367569156034
}
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_Children
:
[]
m_Father
:
{
fileID
:
224473505326681690
}
m_RootOrder
:
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
:
-1
}
m_SizeDelta
:
{
x
:
100
,
y
:
58
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
---
!u!224
&224756934921147816
RectTransform
:
m_ObjectHideFlags
:
1
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1688191540496162
}
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_Children
:
[]
m_Father
:
{
fileID
:
224473505326681690
}
m_RootOrder
:
1
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
:
45.5
}
m_SizeDelta
:
{
x
:
100
,
y
:
10
}
m_Pivot
:
{
x
:
0.5
,
y
:
0.5
}
Assets/Prefabs/UI/In-Game UI/ComboUI.prefab.meta
0 → 100644
View file @
2664fff9
fileFormatVersion: 2
guid: 51507e73c8b2b094e8299991dfe7fe46
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 100100000
userData:
assetBundleName:
assetBundleVariant:
Assets/Scripts/Characters/PlayerAttack.cs
View file @
2664fff9
...
@@ -9,12 +9,12 @@ public class PlayerAttack : MonoBehaviour {
...
@@ -9,12 +9,12 @@ public class PlayerAttack : MonoBehaviour {
private
bool
comboEndDelay
=
true
;
private
bool
comboEndDelay
=
true
;
public
float
originComboTime
;
public
float
originComboTime
;
public
float
comboTime
;
public
float
comboTime
;
public
Text
time
,
combo
;
public
string
comboArray
;
public
string
comboArray
;
public
float
StartTime
;
public
float
StartTime
;
public
Animator
anim
;
public
Animator
anim
;
public
AnimatorOverrideController
aoc
;
public
AnimatorOverrideController
aoc
;
public
AnimationClip
[]
normalAttack
=
new
AnimationClip
[
3
];
public
AnimationClip
[]
normalAttack
=
new
AnimationClip
[
3
];
public
ComboUI
comboUI
;
InventoryManager
inventoryManager
;
InventoryManager
inventoryManager
;
LifeStoneManager
lifeStoneManager
;
LifeStoneManager
lifeStoneManager
;
...
@@ -65,36 +65,18 @@ public class PlayerAttack : MonoBehaviour {
...
@@ -65,36 +65,18 @@ public class PlayerAttack : MonoBehaviour {
public
void
SetComboText
()
public
void
SetComboText
()
{
{
string
conString
=
""
;
comboUI
.
SetCombo
(
comboArray
);
if
(
comboArray
.
Equals
(
""
))
{
combo
.
text
=
""
;
return
;
}
conString
+=
comboArray
[
0
];
for
(
int
i
=
1
;
i
<
comboArray
.
Length
;
i
++)
conString
+=
" "
+
comboArray
[
i
];
combo
.
text
=
conString
;
}
}
public
void
SetTimeText
(
float
fullTime
,
float
currentTime
)
public
void
SetTimeText
(
float
fullTime
,
float
currentTime
)
{
{
if
(
comboTimeOn
)
if
(
comboTimeOn
)
{
{
for
(
int
i
=
0
;
i
<
20
;
i
++)
comboUI
.
SetTime
(
currentTime
,
fullTime
);
{
if
(
currentTime
/
fullTime
<
(
i
+
1
)
*
0.05f
)
{
string
str
=
""
;
for
(
int
j
=
0
;
j
<
i
+
1
;
j
++)
str
+=
"-"
;
time
.
text
=
str
;
break
;
}
}
}
}
else
else
{
{
time
.
text
=
""
;
comboUI
.
SetTime
()
;
}
}
}
}
IEnumerator
ComboEndDelay
()
IEnumerator
ComboEndDelay
()
...
@@ -116,7 +98,8 @@ public class PlayerAttack : MonoBehaviour {
...
@@ -116,7 +98,8 @@ public class PlayerAttack : MonoBehaviour {
IEnumerator
ComboTextReset
()
IEnumerator
ComboTextReset
()
{
{
yield
return
new
WaitForSeconds
(
1.5f
);
yield
return
new
WaitForSeconds
(
1.5f
);
SetComboText
();
if
(
comboArray
.
Equals
(
""
))
SetComboText
();
}
}
IEnumerator
SkillEndCoroutine
()
IEnumerator
SkillEndCoroutine
()
{
{
...
...
Assets/Scripts/UI/In-game UI/ComboUI.cs
0 → 100644
View file @
2664fff9
using
System.Collections
;
using
System.Collections.Generic
;
using
UnityEngine
;
using
UnityEngine.UI
;
public
class
ComboUI
:
MonoBehaviour
{
public
GameObject
charUI
;
public
GameObject
timeUI
;
public
GameObject
charPrefab
;
public
Sprite
[]
normalCombo
=
new
Sprite
[
3
];
public
float
charSpaceR
;
float
timeUILength
;
float
charSpace
;
GameObject
[]
charObj
;
string
currentCombo
;
void
Awake
()
{
RectTransform
rtt
=
timeUI
.
GetComponent
<
RectTransform
>();
timeUILength
=
rtt
.
sizeDelta
.
x
;
rtt
.
sizeDelta
=
new
Vector2
(
0
,
rtt
.
sizeDelta
.
y
);
charObj
=
new
GameObject
[
8
];
for
(
int
i
=
0
;
i
<
8
;
i
++)
{
charObj
[
i
]
=
Instantiate
(
charPrefab
,
charUI
.
transform
);
charObj
[
i
].
SetActive
(
false
);
}
currentCombo
=
""
;
charSpace
=
charUI
.
GetComponent
<
RectTransform
>().
sizeDelta
.
y
*
charSpaceR
;
}
public
void
SetCombo
(
string
combo
)
{
for
(
int
i
=
0
;
i
<
8
;
i
++)
{
if
(
combo
.
Length
<=
i
&&
currentCombo
.
Length
<=
i
)
{
break
;
}
else
if
(
combo
.
Length
<=
i
)
{
charObj
[
i
].
SetActive
(
false
);
}
else
{
Sprite
currentSprite
=
normalCombo
[
combo
[
i
]
-
'A'
];
charObj
[
i
].
SetActive
(
true
);
charObj
[
i
].
GetComponent
<
Image
>().
sprite
=
currentSprite
;
charObj
[
i
].
GetComponent
<
RectTransform
>().
sizeDelta
=
new
Vector2
(
currentSprite
.
bounds
.
extents
.
x
/
currentSprite
.
bounds
.
extents
.
y
*
charUI
.
GetComponent
<
RectTransform
>().
sizeDelta
.
y
,
charUI
.
GetComponent
<
RectTransform
>().
sizeDelta
.
y
);
charObj
[
i
].
transform
.
localPosition
=
new
Vector3
((
i
==
0
)
?
0
:
charObj
[
i
-
1
].
transform
.
localPosition
.
x
+
charObj
[
i
-
1
].
GetComponent
<
RectTransform
>().
sizeDelta
.
x
/
2f
+
charObj
[
i
].
GetComponent
<
RectTransform
>().
sizeDelta
.
x
/
2f
+
charSpace
,
0
,
0
);
}
}
if
(
combo
.
Length
>
0
)
{
Vector3
shift
=
new
Vector3
((
charObj
[
0
].
transform
.
position
.
x
-
charObj
[
combo
.
Length
-
1
].
transform
.
position
.
x
)/
2f
,
0
,
0
);
for
(
int
i
=
0
;
i
<
8
;
i
++)
{
if
(
charObj
[
i
].
activeSelf
)
{
charObj
[
i
].
transform
.
localPosition
=
charObj
[
i
].
transform
.
localPosition
+
shift
;
charObj
[
i
].
transform
.
localScale
=
new
Vector3
((
i
==
combo
.
Length
-
1
)
?
1.3f
:
1
,
(
i
==
combo
.
Length
-
1
)
?
1.3f
:
1
,
1
);
}
}
StartCoroutine
(
EmphasizeCoroutine
(
combo
.
Length
-
1
));
}
currentCombo
=
combo
;
}
IEnumerator
EmphasizeCoroutine
(
int
n
)
{
for
(
float
timer
=
0f
;
timer
<
0.5f
;
timer
+=
Time
.
deltaTime
)
{
charObj
[
n
].
transform
.
localScale
=
new
Vector3
(-
2.5f
*
Mathf
.
Pow
(
timer
*
2
-
0.45f
,
2f
)
+
1.75625f
,
-
2.5f
*
Mathf
.
Pow
(
timer
*
2
-
0.45f
,
2f
)
+
1.75625f
,
1
);
yield
return
null
;
}
charObj
[
n
].
transform
.
localScale
=
new
Vector3
(
1
,
1
,
1
);
}
public
void
SetTime
()
{
RectTransform
rtt
=
timeUI
.
GetComponent
<
RectTransform
>();
rtt
.
sizeDelta
=
new
Vector2
(
0
,
rtt
.
sizeDelta
.
y
);
}
public
void
SetTime
(
float
currentTime
,
float
fullTime
)
{
RectTransform
rtt
=
timeUI
.
GetComponent
<
RectTransform
>();
rtt
.
sizeDelta
=
new
Vector2
(
timeUILength
*
(
currentTime
/
fullTime
),
rtt
.
sizeDelta
.
y
);
}
}
Assets/Scripts/UI/In-game UI/ComboUI.cs.meta
0 → 100644
View file @
2664fff9
fileFormatVersion: 2
guid: 0296171c22d97e64baf3fa3893e42f81
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment