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
21922661
Commit
21922661
authored
Jan 27, 2019
by
15김민규
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
피격 구현할 준비
parent
68c7d68d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Goblin.prefab
Assets/Prefabs/Characters/Enemy/Goblin.prefab
+2
-2
Enemy.cs
Assets/Scripts/Characters/Enemy.cs
+1
-1
No files found.
Assets/Prefabs/Characters/Enemy/Goblin.prefab
View file @
21922661
...
...
@@ -119,7 +119,7 @@ Rigidbody2D:
m_Mass
:
1
m_LinearDrag
:
0
m_AngularDrag
:
0.05
m_GravityScale
:
1
m_GravityScale
:
30
m_Material
:
{
fileID
:
0
}
m_Interpolate
:
0
m_SleepingMode
:
1
...
...
@@ -209,7 +209,7 @@ MonoBehaviour:
weight
:
3
patrolRange
:
2
noticeRange
:
1
attackRange
:
1
attackRange
:
2
patrolSpeed
:
3
trackSpeed
:
5
attackDelay
:
1
...
...
Assets/Scripts/Characters/Enemy.cs
View file @
21922661
...
...
@@ -61,7 +61,7 @@ public class Enemy : MonoBehaviour {
return
;
}
float
knockback_dist
=
damage
*
unitDist
/
weight
;
//
gameObject.GetComponent<Animator>().SetTrigger("DamagedTrigger");
gameObject
.
GetComponent
<
Animator
>().
SetTrigger
(
"DamagedTrigger"
);
}
...
...
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