*
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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 () {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user