aboutsummaryrefslogtreecommitdiff
path: root/td/Assets/Scripts/Enemy.cs
diff options
context:
space:
mode:
authorJakob Stendahl <jakob.stendahl@outlook.com>2017-09-30 16:52:54 +0200
committerJakob Stendahl <jakob.stendahl@outlook.com>2017-09-30 16:52:54 +0200
commit44bbc99517da0b0ee0251fbf519f117a3e7abfdb (patch)
tree40baabf071ffa191bc7dfb3ffc8c790c842f6f62 /td/Assets/Scripts/Enemy.cs
parentbbf0d25b4681366780a9ed3755c6a1f1619d9996 (diff)
downloadTD-44bbc99517da0b0ee0251fbf519f117a3e7abfdb.tar.gz
TD-44bbc99517da0b0ee0251fbf519f117a3e7abfdb.zip
Worked on UI scaling, and added description to some of the scripts
Diffstat (limited to 'td/Assets/Scripts/Enemy.cs')
-rw-r--r--td/Assets/Scripts/Enemy.cs10
1 files changed, 6 insertions, 4 deletions
diff --git a/td/Assets/Scripts/Enemy.cs b/td/Assets/Scripts/Enemy.cs
index bd64bd5..eec02c9 100644
--- a/td/Assets/Scripts/Enemy.cs
+++ b/td/Assets/Scripts/Enemy.cs
@@ -3,12 +3,14 @@ using System.Collections.Generic;
using UnityEngine;
public class Enemy : MonoBehaviour {
+ /* This is a general class that contains an enemy,
+ * Currently it follows the pathway, and dies when reacing the end */
- public float speed;
- public float initialHp;
- public List<Vector3> waypoints;
+ public float speed; // Speed multiplier
+ public float initialHp; // HealthPoints
+ public List<Vector3> waypoints; // Pathway waypoints, should be set by the spawner
- Vector3 waypointPos;
+ Vector3 waypointPos; // Current waypoint position
int waypointNum = -1; // Using minus one so that first addition returns 0, first element in array
void Update () {