Skip to content
Snippets Groups Projects
Commit 39caa5e5 authored by Alifia Rahmah's avatar Alifia Rahmah
Browse files

fix(pet): set killpet to false after cheating

parent 47cc84ef
Branches
No related merge requests found
...@@ -38,7 +38,7 @@ public class PetHealth : MonoBehaviour ...@@ -38,7 +38,7 @@ public class PetHealth : MonoBehaviour
petAttack = GetComponent<PetAttack>(); petAttack = GetComponent<PetAttack>();
petBuff = GetComponent<PetBuff>(); petBuff = GetComponent<PetBuff>();
AudioClip hurtClip = petAudio.clip; AudioClip hurtClip = petAudio.clip;
currentHealth = startingHealth; currentHealth = startingHealth;
// Show GameObject UI // Show GameObject UI
...@@ -65,6 +65,7 @@ public class PetHealth : MonoBehaviour ...@@ -65,6 +65,7 @@ public class PetHealth : MonoBehaviour
if (CheatMenu.killpet) if (CheatMenu.killpet)
{ {
Death(); Death();
CheatMenu.killpet = false;
} }
} }
......
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