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