aboutsummaryrefslogtreecommitdiff
path: root/td/Assets/Scripts/EnemySpawner.cs
diff options
context:
space:
mode:
authorJakob Stendahl <jakob.stendahl@outlook.com>2017-10-08 22:43:20 +0200
committerJakob Stendahl <jakob.stendahl@outlook.com>2017-10-08 22:43:20 +0200
commit112a91b7084a5365291c712fabcb8ceeb4c644ce (patch)
tree54edd59c73ae7a5e435ff1c338c4384be73397cc /td/Assets/Scripts/EnemySpawner.cs
parent2338b4e43c35dd1990db69da5751bb28a9c4122c (diff)
downloadTD-112a91b7084a5365291c712fabcb8ceeb4c644ce.tar.gz
TD-112a91b7084a5365291c712fabcb8ceeb4c644ce.zip
Added game over screen
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) {