From 84518bdb823d8e3fc49d597e3f1027e7fc6214c6 Mon Sep 17 00:00:00 2001 From: Nikita Kruglickiy Date: Sun, 17 Mar 2024 01:34:15 +0300 Subject: [PATCH] #2 zxc? --- Assets/Scripts/Characters/PersonController/Interactions.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Assets/Scripts/Characters/PersonController/Interactions.cs b/Assets/Scripts/Characters/PersonController/Interactions.cs index 7435ec3..0e06240 100644 --- a/Assets/Scripts/Characters/PersonController/Interactions.cs +++ b/Assets/Scripts/Characters/PersonController/Interactions.cs @@ -221,12 +221,14 @@ public class Interactions : NetworkBehaviour [Command(requiresAuthority = false)] void CmdHitPawn(Pawn pawn) { + pawn.TakeDamage(); RpcHitPawn(pawn); } [ClientRpc] void RpcHitPawn(Pawn pawn) { + print("HIT " + pawn.name); pawn.TakeDamage(); }