From 9141a6a7be13671a94d7d51918792e180c6a5d8e Mon Sep 17 00:00:00 2001 From: hongyaohongyao <1207105685@qq.com> Date: Wed, 25 Dec 2024 04:35:49 +0800 Subject: [PATCH] fix OnGetHit in CustomLogicCollisionHandler --- .../CustomLogic/Component/CustomLogicCollisionHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/CustomLogic/Component/CustomLogicCollisionHandler.cs b/Assets/Scripts/CustomLogic/Component/CustomLogicCollisionHandler.cs index b4ea3bd1b..e2111b024 100644 --- a/Assets/Scripts/CustomLogic/Component/CustomLogicCollisionHandler.cs +++ b/Assets/Scripts/CustomLogic/Component/CustomLogicCollisionHandler.cs @@ -26,7 +26,7 @@ public void GetHit(BaseCharacter character, string name, int damage, string type else if (character is BaseShifter) builtin = new CustomLogicShifterBuiltin((BaseShifter)character); foreach (var classInstance in _classInstances) - classInstance.OnGetHit(builtin, name, damage, type, position); + classInstance.OnGetHit(builtin, name, damage, type, new CustomLogicVector3Builtin(position)); } public void GetHooked(Human human, Vector3 position, bool left)