From ee4d8f4187059f177c17c8c818352826c6347d38 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 5 Aug 2021 20:05:44 +0800 Subject: *misc --- Assets/Scripts/Unit/Controller/UnitController.cs | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'Assets/Scripts/Unit/Controller/UnitController.cs') 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(); + } } -- cgit v1.1-26-g67d0