aboutsummaryrefslogtreecommitdiff
path: root/td/Assets/Scripts/EnemySpawner.cs
diff options
context:
space:
mode:
Diffstat (limited to 'td/Assets/Scripts/EnemySpawner.cs')
-rw-r--r--td/Assets/Scripts/EnemySpawner.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/td/Assets/Scripts/EnemySpawner.cs b/td/Assets/Scripts/EnemySpawner.cs
index 7ee8680..5b0249d 100644
--- a/td/Assets/Scripts/EnemySpawner.cs
+++ b/td/Assets/Scripts/EnemySpawner.cs
@@ -9,13 +9,13 @@ public class EnemySpawner : MonoBehaviour {
public Enemy EnemyPrefab;
public Transform PathWay;
[Header("Scripting vars")]
- public Player Player; // Reference to the player object, should be set when instantiating
+ public Player Player; // Reference to the player object, should be set in designer
private Transform _parentObject;
- List<Vector3> _waypoints = new List<Vector3>();
- int _next = 1;
- int _n = 0;
+ private List<Vector3> _waypoints = new List<Vector3>();
+ private int _next = 1;
+ private int _n = 0;
void Awake() {
foreach (Transform child in PathWay) {