using UnityEngine; using System.Collections; public interface IDamageable{ void OnDamage (); } public class Enemy1 : MonoBehaviour, IDamageable { public void OnDamage (){ Debug.Log ("Damage"); } // Use this for initialization void Start () { } // Update is called once per frame void Update () { } }