This commit is contained in:
Nadar 2024-03-17 01:02:25 +03:00
parent 7dc77be602
commit a6dc5ba179
4 changed files with 5167 additions and 10313 deletions

View File

@ -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

View File

@ -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;
}
}

View File

@ -19,7 +19,7 @@ public class NetworkGameManager : NetworkBehaviour
// public List<Pawn> alive;
// public List<Pawn> dead;
public event Action RestartCallback;
public event Action RestartCallback;
void Awake()
{