Shooting Enemy Improvements

This commit is contained in:
2022-02-26 00:01:18 +03:00
parent 8c37322121
commit 622c1e373c
6 changed files with 215 additions and 15 deletions

View File

@@ -62,9 +62,7 @@ namespace AI
movement.BaseSpeed = 0f;
animator.SetBool("isAttacking", true);
animator.speed = 0f;
yield return new WaitForSeconds(focusingTime);
animator.speed = 1f;
while (canShoot)
{
@@ -74,6 +72,7 @@ namespace AI
}
movement.BaseSpeed = movementBaseSpeed;
animator.SetBool("isAttacking", false);
remainingCooldown = 0f;
isShooting = false;
}