using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class CircleEnemy : MonoBehaviour {

	//Damage
	int damage = 38;
	
	// Use this for initialization
	void Start () {
	}
	
	// Update is called once per frame
	void Update () {

		//Set damage amount
		GetComponent<Enemy>().damageAmount = damage;
		
		//Move based on the layer's position and local position
		transform.position = new Vector3(GetComponent<Enemy>().layers[GetComponent<Enemy>().layerName].transform.position.x + GetComponent<Enemy>().localX,
		                                 GetComponent<Enemy>().layers[GetComponent<Enemy>().layerName].transform.position.y,
		                                 GetComponent<Enemy>().layers[GetComponent<Enemy>().layerName].transform.position.z + GetComponent<Enemy>().localZ);
		
	}
}
