Commit 21922661 authored by 15김민규's avatar 15김민규

피격 구현할 준비

parent 68c7d68d
......@@ -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
......
......@@ -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");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment