Dash tweaks, quality of code

This commit is contained in:
2025-09-05 17:47:06 +02:00
parent 38704518b0
commit a11c5a8dd7
3 changed files with 10 additions and 2 deletions

View File

@@ -236,6 +236,7 @@ public class EnemyMovement : MonoBehaviour
}
}
/* ========= PATROLLING IN CASE PLAYER IS FAR ========== */
private void GenerateNewPatrolTarget()
{
Vector2 randomCircle = Random.insideUnitCircle * patrolRange;
@@ -266,6 +267,8 @@ public class EnemyMovement : MonoBehaviour
Destroy(gameObject, 2f);
}
/*====== FOR DEBUGGING PURPOSES ONLY ========== */
private void OnDrawGizmosSelected()
{
Gizmos.color = Color.red;