﻿using UnityEngine;
using System.Collections;

public class AttackBuilding : MonoBehaviour
{

	BuildingProperties properties;
	SphereCollider collider;

	void Start () {
		properties = GetComponent<BuildingProperties> ();

		collider = gameObject.AddComponent<SphereCollider> ();
		collider.isTrigger = true;
		collider.radius = properties.radius;
	}

	void OnTriggerEnter (Collider col) {
		// TODO: target enemy
	}

}


﻿using UnityEngine;
using System.Collections;

public class AttackBuilding : MonoBehaviour
{

	BuildingProperties properties;
	SphereCollider attackZone;

	void Start () {
		properties = GetComponent<BuildingProperties> ();

		attackZone = gameObject.AddComponent<SphereCollider> ();
		attackZone.isTrigger = true;
		attackZone.radius = properties.radius;
	}

	void OnTriggerEnter (Collider col) {
		// TODO: target enemy
	}

}


Refactor collider name for attack behaviour
Refactor collider name for attack behaviour
