diff --git a/Assets/Scripts/Characters/PersonController/Interactions.cs b/Assets/Scripts/Characters/PersonController/Interactions.cs index 78688f9..79a6b93 100644 --- a/Assets/Scripts/Characters/PersonController/Interactions.cs +++ b/Assets/Scripts/Characters/PersonController/Interactions.cs @@ -217,12 +217,6 @@ public class Interactions : NetworkBehaviour { RpcReductStamina(player); } - - [Command] - void CmdHitAlien(EnemyController alien) - { - alien.TakeDamage(); - } [ClientRpc] void RpcReductStamina(PersonController player) @@ -230,6 +224,18 @@ public class Interactions : NetworkBehaviour player.TakeDamage(); player.InstantStaminaReduction(controller.shootDepletion * 0.7f); } + + [Command] + void CmdHitAlien(EnemyController alien) + { + RpcHitAlien(alien); + } + + [ClientRpc] + void RpcHitAlien(EnemyController alien) + { + alien.TakeDamage(); + } [Command] void CmdShoot(Vector3 pos, Quaternion rot)