summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Unit/Controller/UnitController.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-08-05 20:05:44 +0800
committerchai <chaifix@163.com>2021-08-05 20:05:44 +0800
commitee4d8f4187059f177c17c8c818352826c6347d38 (patch)
tree239c116dac01b20f1ce42e0f3324472ad122132a /Assets/Scripts/Unit/Controller/UnitController.cs
parent8d4a4c7c781de11ba3735e8ffb435b23c483af7a (diff)
*misc
Diffstat (limited to 'Assets/Scripts/Unit/Controller/UnitController.cs')
-rw-r--r--Assets/Scripts/Unit/Controller/UnitController.cs23
1 files changed, 22 insertions, 1 deletions
diff --git a/Assets/Scripts/Unit/Controller/UnitController.cs b/Assets/Scripts/Unit/Controller/UnitController.cs
index b1e708bb..4169ca6a 100644
--- a/Assets/Scripts/Unit/Controller/UnitController.cs
+++ b/Assets/Scripts/Unit/Controller/UnitController.cs
@@ -2,7 +2,14 @@
using System.Collections.Generic;
using UnityEngine;
-public class UnitController : MonoBehaviour
+public interface Interactable
+{
+ void OnHit();
+ void OnHurt();
+ void OnGrab();
+}
+
+public class UnitController : MonoBehaviour, Interactable
{
// 角色共有的组件
@@ -88,4 +95,18 @@ public class UnitController : MonoBehaviour
unitRootMotion.OnUpdate();
}
+ public void OnHit()
+ {
+ throw new System.NotImplementedException();
+ }
+
+ public void OnHurt()
+ {
+ throw new System.NotImplementedException();
+ }
+
+ public void OnGrab()
+ {
+ throw new System.NotImplementedException();
+ }
}