From 44bbc99517da0b0ee0251fbf519f117a3e7abfdb Mon Sep 17 00:00:00 2001 From: Jakob Stendahl Date: Sat, 30 Sep 2017 16:52:54 +0200 Subject: Worked on UI scaling, and added description to some of the scripts --- td/Assets/Scripts/Enemy.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'td/Assets/Scripts/Enemy.cs') 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 waypoints; + public float speed; // Speed multiplier + public float initialHp; // HealthPoints + public List 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 () { -- cgit v1.2.3