diff --git a/Assets/Scripts/Player/PlayerAttribute.cs b/Assets/Scripts/Player/PlayerAttribute.cs index 7656ac2fd787e295a0be6b78523f062104723311..d7e2b53fe36b7692439301b9f56f56756fccb46d 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; }