Dash tweaks, quality of code
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user