From c5b572de48f43951ebe7cb2da92b419473d5448a Mon Sep 17 00:00:00 2001 From: Salomo309 <109785084+Salomo309@users.noreply.github.com> Date: Sat, 11 May 2024 14:25:20 +0700 Subject: [PATCH] belom final cheat yg one hit kill --- Assets/Scripts/Player/PlayerAttribute.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Assets/Scripts/Player/PlayerAttribute.cs b/Assets/Scripts/Player/PlayerAttribute.cs index 7656ac2..d7e2b53 100644 --- a/Assets/Scripts/Player/PlayerAttribute.cs +++ b/Assets/Scripts/Player/PlayerAttribute.cs @@ -19,17 +19,12 @@ public class PlayerAttribute : MonoBehaviour public void CheatOneHitKill() { isOneHitKill = true; - FindObjectOfType<GunAttack>().damagePerShot = 9999; - FindObjectOfType<ShotgunAttack>().damagePerBullet = 9999; - FindObjectOfType<SwordAttack>().damagePerSlash = 9999; + //FindObjectOfType<EnemyHealth>() } public void DeactivateCheatOneHitKill() { isOneHitKill = false; - FindObjectOfType<GunAttack>().damagePerShot = 20; - FindObjectOfType<ShotgunAttack>().damagePerBullet = 5; - FindObjectOfType<SwordAttack>().damagePerSlash = 40; } -- GitLab