traxat
This commit is contained in:
parent
7dc77be602
commit
a6dc5ba179
@ -17,9 +17,9 @@ AnimatorStateTransition:
|
||||
m_Mute: 0
|
||||
m_IsExit: 0
|
||||
serializedVersion: 3
|
||||
m_TransitionDuration: 0.38631588
|
||||
m_TransitionDuration: 0.105819285
|
||||
m_TransitionOffset: 0
|
||||
m_ExitTime: 0.000000018719188
|
||||
m_ExitTime: 0.000000016145702
|
||||
m_HasExitTime: 1
|
||||
m_HasFixedDuration: 1
|
||||
m_InterruptionSource: 0
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -179,8 +179,9 @@ public partial class EnemyController : Pawn
|
||||
{
|
||||
isKilling = true;
|
||||
_target = null;
|
||||
_runSpeed = 0;
|
||||
_speedMul = 0;
|
||||
yield return new WaitForSeconds(7);
|
||||
_speedMul = 1;
|
||||
isKilling = false;
|
||||
aimTarget.position = transform.position;
|
||||
|
||||
@ -262,9 +263,8 @@ public partial class EnemyController : Pawn
|
||||
void TakeDamageAnimation(Pawn self)
|
||||
{
|
||||
canAttack = false;
|
||||
_runSpeed = 0;
|
||||
_speedMul = 0;
|
||||
animator.SetTrigger("damage");
|
||||
// animator.SetTrigger("stun"); тут!!!
|
||||
hitVFX.Stop();
|
||||
hitVFX.Play();
|
||||
StartCoroutine(AfterTakeDamage());
|
||||
@ -272,8 +272,8 @@ public partial class EnemyController : Pawn
|
||||
|
||||
IEnumerator AfterTakeDamage()
|
||||
{
|
||||
yield return new WaitForSeconds(4);
|
||||
_runSpeed = 4.974f;
|
||||
yield return new WaitForSeconds(6);
|
||||
_speedMul = 1;
|
||||
canAttack = true;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user