﻿using UnityEngine;
using System.Collections;
using UnityEngine.Networking;

public class ZombieHealth : NetworkBehaviour {

	private int health = 20;


	public void DeductHealth(int dmg) {
		health -= dmg;
		CheckHealth ();
	}

	void CheckHealth() {
		if(health <= 0) {
			Destroy (gameObject);
		}

	}
}
