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
f10c39a4
Commit
f10c39a4
authored
Feb 14, 2019
by
18류지석
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
처음 공격 일반공격 나가는거 수정함. 공격 히트박스 조정함
parent
5472a6ec
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
44 additions
and
38 deletions
+44
-38
Player animator.controller
Assets/Animation/Player/Player animator.controller
+5
-5
Player.prefab
Assets/Prefabs/Characters/Player.prefab
+3
-2
DroppedItem.prefab
Assets/Prefabs/UI/In-Game UI/InventoryUI/DroppedItem.prefab
+1
-0
daggerAttack1.anim
Assets/Resources/Animations/daggerAttack1.anim
+10
-10
daggerAttack2.anim
Assets/Resources/Animations/daggerAttack2.anim
+10
-10
normalAttackA.anim
Assets/Resources/Animations/normalAttackA.anim
+2
-2
normalAttackB.anim
Assets/Resources/Animations/normalAttackB.anim
+2
-2
normalAttackC.anim
Assets/Resources/Animations/normalAttackC.anim
+2
-2
AttackProperty.cs
Assets/Scripts/Characters/AttackProperty.cs
+3
-1
PlayerAttack.cs
Assets/Scripts/Characters/PlayerAttack.cs
+4
-3
InventoryManager.cs
Assets/Scripts/Item/InventoryManager.cs
+2
-1
No files found.
Assets/Animation/Player/Player animator.controller
View file @
f10c39a4
...
...
@@ -630,19 +630,19 @@ AnimatorStateMachine:
m_Position
:
{
x
:
168
,
y
:
-132
,
z
:
0
}
-
serializedVersion
:
1
m_State
:
{
fileID
:
1102478016988564962
}
m_Position
:
{
x
:
283.63446
,
y
:
453.63867
,
z
:
0
}
m_Position
:
{
x
:
180
,
y
:
408
,
z
:
0
}
-
serializedVersion
:
1
m_State
:
{
fileID
:
1102120881417498060
}
m_Position
:
{
x
:
1
27.35602
,
y
:
552.162
,
z
:
0
}
m_Position
:
{
x
:
1
80
,
y
:
456
,
z
:
0
}
-
serializedVersion
:
1
m_State
:
{
fileID
:
1102717063814967854
}
m_Position
:
{
x
:
422.9261
,
y
:
608.218
4
,
z
:
0
}
m_Position
:
{
x
:
180
,
y
:
50
4
,
z
:
0
}
-
serializedVersion
:
1
m_State
:
{
fileID
:
1102227438932548068
}
m_Position
:
{
x
:
-2
8.922424
,
y
:
411.1717
,
z
:
0
}
m_Position
:
{
x
:
-2
4
,
y
:
408
,
z
:
0
}
-
serializedVersion
:
1
m_State
:
{
fileID
:
1102949526718564970
}
m_Position
:
{
x
:
-
32.319763
,
y
:
496.10
56
,
z
:
0
}
m_Position
:
{
x
:
-
24
,
y
:
4
56
,
z
:
0
}
m_ChildStateMachines
:
[]
m_AnyStateTransitions
:
-
{
fileID
:
1101150420884930214
}
...
...
Assets/Prefabs/Characters/Player.prefab
View file @
f10c39a4
...
...
@@ -312,6 +312,7 @@ MonoBehaviour:
doubleJumpSpeed
:
10
dashAcceleration
:
50
platformCollider
:
{
fileID
:
0
}
airAttack
:
1
groundLayer
:
serializedVersion
:
2
m_Bits
:
6400
...
...
@@ -366,7 +367,7 @@ MonoBehaviour:
comboTime
:
1
time
:
{
fileID
:
0
}
combo
:
{
fileID
:
0
}
comboArray
:
AB
comboArray
:
StartTime
:
0
anim
:
{
fileID
:
95992411616135034
}
aoc
:
{
fileID
:
0
}
...
...
@@ -422,7 +423,7 @@ SpriteRenderer:
m_AutoUVMaxAngle
:
89
m_LightmapParameters
:
{
fileID
:
0
}
m_SortingLayerID
:
-2078941185
m_SortingLayer
:
7
m_SortingLayer
:
6
m_SortingOrder
:
0
m_Sprite
:
{
fileID
:
21300000
,
guid
:
92d166e0c2a85a14facee45f5a5a8444
,
type
:
3
}
m_Color
:
{
r
:
1
,
g
:
1
,
b
:
1
,
a
:
1
}
...
...
Assets/Prefabs/UI/In-Game UI/InventoryUI/DroppedItem.prefab
View file @
f10c39a4
...
...
@@ -131,6 +131,7 @@ MonoBehaviour:
m_EditorClassIdentifier
:
itemAddon
:
0
highlight
:
{
fileID
:
1886512004533810
}
itemSizeMultiplier
:
0.007
---
!u!212
&212078234558260036
SpriteRenderer
:
m_ObjectHideFlags
:
1
...
...
Assets/Resources/Animations/daggerAttack1.anim
View file @
f10c39a4
...
...
@@ -38,7 +38,7 @@ AnimationClip:
inWeight
:
0
outWeight
:
0
-
serializedVersion
:
3
time
:
0.1
5
time
:
0.1
8333334
value
:
0
inSlope
:
Infinity
outSlope
:
Infinity
...
...
@@ -58,7 +58,7 @@ AnimationClip:
m_Curve
:
-
serializedVersion
:
3
time
:
0
value
:
-0.3
5727715
value
:
-0.3
119259
inSlope
:
0
outSlope
:
0
tangentMode
:
136
...
...
@@ -77,7 +77,7 @@ AnimationClip:
m_Curve
:
-
serializedVersion
:
3
time
:
0
value
:
-0.1
7332983
value
:
-0.1
5569305
inSlope
:
0
outSlope
:
0
tangentMode
:
136
...
...
@@ -96,7 +96,7 @@ AnimationClip:
m_Curve
:
-
serializedVersion
:
3
time
:
0
value
:
1.
4124017
value
:
1.
2813864
inSlope
:
0
outSlope
:
0
tangentMode
:
136
...
...
@@ -115,7 +115,7 @@ AnimationClip:
m_Curve
:
-
serializedVersion
:
3
time
:
0
value
:
0.
5327382
value
:
0.
34629345
inSlope
:
0
outSlope
:
0
tangentMode
:
136
...
...
@@ -281,7 +281,7 @@ AnimationClip:
inWeight
:
0
outWeight
:
0
-
serializedVersion
:
3
time
:
0.1
5
time
:
0.1
8333334
value
:
0
inSlope
:
Infinity
outSlope
:
Infinity
...
...
@@ -301,7 +301,7 @@ AnimationClip:
m_Curve
:
-
serializedVersion
:
3
time
:
0
value
:
-0.3
5727715
value
:
-0.3
119259
inSlope
:
0
outSlope
:
0
tangentMode
:
136
...
...
@@ -320,7 +320,7 @@ AnimationClip:
m_Curve
:
-
serializedVersion
:
3
time
:
0
value
:
-0.1
7332983
value
:
-0.1
5569305
inSlope
:
0
outSlope
:
0
tangentMode
:
136
...
...
@@ -339,7 +339,7 @@ AnimationClip:
m_Curve
:
-
serializedVersion
:
3
time
:
0
value
:
1.
4124017
value
:
1.
2813864
inSlope
:
0
outSlope
:
0
tangentMode
:
136
...
...
@@ -358,7 +358,7 @@ AnimationClip:
m_Curve
:
-
serializedVersion
:
3
time
:
0
value
:
0.
5327382
value
:
0.
34629345
inSlope
:
0
outSlope
:
0
tangentMode
:
136
...
...
Assets/Resources/Animations/daggerAttack2.anim
View file @
f10c39a4
...
...
@@ -38,7 +38,7 @@ AnimationClip:
inWeight
:
0
outWeight
:
0
-
serializedVersion
:
3
time
:
0.
28333333
time
:
0.
31666666
value
:
0
inSlope
:
Infinity
outSlope
:
Infinity
...
...
@@ -58,7 +58,7 @@ AnimationClip:
m_Curve
:
-
serializedVersion
:
3
time
:
0
value
:
-0.8
663552
value
:
-0.8
0588675
inSlope
:
0
outSlope
:
0
tangentMode
:
136
...
...
@@ -77,7 +77,7 @@ AnimationClip:
m_Curve
:
-
serializedVersion
:
3
time
:
0
value
:
-0.012122154
value
:
0.0911783
inSlope
:
0
outSlope
:
0
tangentMode
:
136
...
...
@@ -96,7 +96,7 @@ AnimationClip:
m_Curve
:
-
serializedVersion
:
3
time
:
0
value
:
0.9
7120047
value
:
0.9
9135685
inSlope
:
0
outSlope
:
0
tangentMode
:
136
...
...
@@ -115,7 +115,7 @@ AnimationClip:
m_Curve
:
-
serializedVersion
:
3
time
:
0
value
:
0.
78727865
value
:
0.
25817847
inSlope
:
0
outSlope
:
0
tangentMode
:
136
...
...
@@ -278,7 +278,7 @@ AnimationClip:
inWeight
:
0
outWeight
:
0
-
serializedVersion
:
3
time
:
0.
28333333
time
:
0.
31666666
value
:
0
inSlope
:
Infinity
outSlope
:
Infinity
...
...
@@ -298,7 +298,7 @@ AnimationClip:
m_Curve
:
-
serializedVersion
:
3
time
:
0
value
:
-0.8
663552
value
:
-0.8
0588675
inSlope
:
0
outSlope
:
0
tangentMode
:
136
...
...
@@ -317,7 +317,7 @@ AnimationClip:
m_Curve
:
-
serializedVersion
:
3
time
:
0
value
:
-0.012122154
value
:
0.0911783
inSlope
:
0
outSlope
:
0
tangentMode
:
136
...
...
@@ -336,7 +336,7 @@ AnimationClip:
m_Curve
:
-
serializedVersion
:
3
time
:
0
value
:
0.9
7120047
value
:
0.9
9135685
inSlope
:
0
outSlope
:
0
tangentMode
:
136
...
...
@@ -355,7 +355,7 @@ AnimationClip:
m_Curve
:
-
serializedVersion
:
3
time
:
0
value
:
0.
78727865
value
:
0.
25817847
inSlope
:
0
outSlope
:
0
tangentMode
:
136
...
...
Assets/Resources/Animations/normalAttackA.anim
View file @
f10c39a4
...
...
@@ -38,7 +38,7 @@ AnimationClip:
inWeight
:
0
outWeight
:
0
-
serializedVersion
:
3
time
:
0.2
time
:
0.2
3333333
value
:
0
inSlope
:
Infinity
outSlope
:
Infinity
...
...
@@ -278,7 +278,7 @@ AnimationClip:
inWeight
:
0
outWeight
:
0
-
serializedVersion
:
3
time
:
0.2
time
:
0.2
3333333
value
:
0
inSlope
:
Infinity
outSlope
:
Infinity
...
...
Assets/Resources/Animations/normalAttackB.anim
View file @
f10c39a4
...
...
@@ -38,7 +38,7 @@ AnimationClip:
inWeight
:
0
outWeight
:
0
-
serializedVersion
:
3
time
:
0.2
time
:
0.2
3333333
value
:
0
inSlope
:
Infinity
outSlope
:
Infinity
...
...
@@ -278,7 +278,7 @@ AnimationClip:
inWeight
:
0
outWeight
:
0
-
serializedVersion
:
3
time
:
0.2
time
:
0.2
3333333
value
:
0
inSlope
:
Infinity
outSlope
:
Infinity
...
...
Assets/Resources/Animations/normalAttackC.anim
View file @
f10c39a4
...
...
@@ -38,7 +38,7 @@ AnimationClip:
inWeight
:
0
outWeight
:
0
-
serializedVersion
:
3
time
:
0.
26666668
time
:
0.
3
value
:
0
inSlope
:
Infinity
outSlope
:
Infinity
...
...
@@ -278,7 +278,7 @@ AnimationClip:
inWeight
:
0
outWeight
:
0
-
serializedVersion
:
3
time
:
0.
26666668
time
:
0.
3
value
:
0
inSlope
:
Infinity
outSlope
:
Infinity
...
...
Assets/Scripts/Characters/AttackProperty.cs
View file @
f10c39a4
...
...
@@ -25,11 +25,13 @@ public class AttackProperty : MonoBehaviour{
Enemy
enemyInfo
=
collision
.
transform
.
GetChild
(
0
).
GetComponent
<
Enemy
>();
collision
.
transform
.
GetChild
(
0
).
GetComponent
<
Enemy
>().
GetDamaged
(
curAttack
);
//make effect
foreach
(
Collider2D
col
in
GetComponents
<
Collider2D
>())
if
(
col
.
isActiveAndEnabled
)
tmpBounds
=
col
.
bounds
;
if
(!
tmpBounds
.
Equals
(
new
Bounds
()))
;
if
(!
tmpBounds
.
Equals
(
new
Bounds
()))
effectManager
.
StartEffect
(
0
,
tmpBounds
,
collision
.
bounds
);
}
}
...
...
Assets/Scripts/Characters/PlayerAttack.cs
View file @
f10c39a4
...
...
@@ -132,13 +132,14 @@ public class PlayerAttack : MonoBehaviour {
void
CheckCombo
()
{
List
<
Item
>
itemList
=
inventoryManager
.
itemList
;
foreach
(
Item
item
in
itemList
)
foreach
(
Item
item
in
itemList
)
{
for
(
int
i
=
0
;
i
<
item
.
skillNum
;
i
++)
{
if
(
item
.
combo
[
i
].
Equals
(
comboArray
))
{
aoc
[
"PlayerAttackAnim"
]
=
item
.
animation
[
i
];
anim
.
SetTrigger
(
"attack"
);
item
.
ComboAction
(
i
);
...
...
@@ -146,6 +147,7 @@ public class PlayerAttack : MonoBehaviour {
if
(
playerController
.
playerState
!=
PlayerState
.
GoingUp
&&
playerController
.
playerState
!=
PlayerState
.
GoingDown
)
GetComponent
<
Rigidbody2D
>().
velocity
=
new
Vector2
(
Mathf
.
Clamp
(
GetComponent
<
Rigidbody2D
>().
velocity
.
x
,-
0.5f
,
0.5f
),
GetComponent
<
Rigidbody2D
>().
velocity
.
y
);
playerController
.
playerState
=
PlayerState
.
Attack
;
return
;
}
}
...
...
@@ -158,7 +160,6 @@ public class PlayerAttack : MonoBehaviour {
GetComponent
<
Rigidbody2D
>().
velocity
=
new
Vector2
(
Mathf
.
Clamp
(
GetComponent
<
Rigidbody2D
>().
velocity
.
x
,
-
0.5f
,
0.5f
),
GetComponent
<
Rigidbody2D
>().
velocity
.
y
);
playerController
.
playerState
=
PlayerState
.
Attack
;
if
(!
CheckLongerCombo
())
comboArray
=
comboArray
[
comboArray
.
Length
-
1
]
+
""
;
}
bool
CheckLongerCombo
()
...
...
Assets/Scripts/Item/InventoryManager.cs
View file @
f10c39a4
...
...
@@ -24,7 +24,6 @@ public class InventoryManager : MonoBehaviour {
SetPool
();
ItemInstantiate
(
"Dagger"
,
player
.
transform
.
position
,
0f
);
StartCoroutine
(
TestCoroutine
());
}
/// <summary>
...
...
@@ -227,6 +226,8 @@ public class InventoryManager : MonoBehaviour {
itemList
.
Add
(
item
);
ui
.
SetOnPosition
(
itemList
,
addonList
);
Debug
.
Log
(
itemList
[
0
].
combo
[
0
]
+
" "
+
itemList
[
0
].
combo
[
1
]);
return
true
;
}
/// <summary>
...
...
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