summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Unit/Controller/UnitController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Scripts/Unit/Controller/UnitController.cs')
-rw-r--r--Assets/Scripts/Unit/Controller/UnitController.cs29
1 files changed, 15 insertions, 14 deletions
diff --git a/Assets/Scripts/Unit/Controller/UnitController.cs b/Assets/Scripts/Unit/Controller/UnitController.cs
index 031f4697..a9baf595 100644
--- a/Assets/Scripts/Unit/Controller/UnitController.cs
+++ b/Assets/Scripts/Unit/Controller/UnitController.cs
@@ -2,14 +2,14 @@
using System.Collections.Generic;
using UnityEngine;
-public interface Interactable
-{
- void OnHit();
- void OnHurt();
- void OnGrab();
-}
-
-public class UnitController : MonoBehaviour, Interactable
+//public interface Interactable
+//{
+// void OnHit();
+// void OnHurt();
+// void OnGrab();
+//}
+
+public class UnitController : MonoBehaviour/*, Interactable*/
{
// 角色共有的组件
@@ -94,18 +94,19 @@ public class UnitController : MonoBehaviour, Interactable
unitRootMotion.OnUpdate();
}
- public void OnHit()
+ public virtual void OnDestroy()
+ {
+ }
+
+ public virtual void OnHit()
{
- throw new System.NotImplementedException();
}
- public void OnHurt()
+ public virtual void OnHurt()
{
- throw new System.NotImplementedException();
}
- public void OnGrab()
+ public virtual void OnGrab()
{
- throw new System.NotImplementedException();
}
}