diff options
author | chai <chaifix@163.com> | 2021-08-05 20:05:44 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-08-05 20:05:44 +0800 |
commit | ee4d8f4187059f177c17c8c818352826c6347d38 (patch) | |
tree | 239c116dac01b20f1ce42e0f3324472ad122132a /Assets/Scripts/Unit/Controller | |
parent | 8d4a4c7c781de11ba3735e8ffb435b23c483af7a (diff) |
*misc
Diffstat (limited to 'Assets/Scripts/Unit/Controller')
-rw-r--r-- | Assets/Scripts/Unit/Controller/UnitController.cs | 23 |
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();
+ }
}
|