using UnityEngine;
using System.Collections;
namespace TowerDefenceTemplate
{
public class Enemy : MonoBehaviour
{
public enum EnemyType//敌方炮车类型
{
Jeep,
Tank,
Plane
};
public EnemyType enemyType;
public EllipsoidParticleEmitter Explosion;
public float
Health,//血量
Speed,//行进速度
current_health;
public GameObject HealthBar;
private Transform CurrentWaypoint;
private Transform[] Waypoints;
private GameManager gameManager;
private int
Award,//打死一个炮车奖励的金币
WaypointIndex;
private bool Dead;
void Start()
{
gameManager = FindObjectOfType<GameManager>();
if (gameManager == null)
{
Debug.