Skip to content
Snippets Groups Projects
Commit c5b572de authored by Salomo309's avatar Salomo309
Browse files

belom final cheat yg one hit kill

parent ce7b0468
Branches
No related merge requests found
...@@ -19,17 +19,12 @@ public class PlayerAttribute : MonoBehaviour ...@@ -19,17 +19,12 @@ public class PlayerAttribute : MonoBehaviour
public void CheatOneHitKill() public void CheatOneHitKill()
{ {
isOneHitKill = true; isOneHitKill = true;
FindObjectOfType<GunAttack>().damagePerShot = 9999; //FindObjectOfType<EnemyHealth>()
FindObjectOfType<ShotgunAttack>().damagePerBullet = 9999;
FindObjectOfType<SwordAttack>().damagePerSlash = 9999;
} }
public void DeactivateCheatOneHitKill() public void DeactivateCheatOneHitKill()
{ {
isOneHitKill = false; isOneHitKill = false;
FindObjectOfType<GunAttack>().damagePerShot = 20;
FindObjectOfType<ShotgunAttack>().damagePerBullet = 5;
FindObjectOfType<SwordAttack>().damagePerSlash = 40;
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment