Skip to content
Snippets Groups Projects
Commit fff73da6 authored by Ghazi Akmal Fauzan's avatar Ghazi Akmal Fauzan
Browse files

feat: pet DOT

parent d227e9ee
No related merge requests found
......@@ -48,9 +48,11 @@ public class DOT : MonoBehaviour
// Assuming you've set damage on your projectiles
PlayerHealth playerHealth = playerCollider.GetComponent<PlayerHealth>();
PetHealth petHealth = playerCollider.GetComponent<PetHealth>();
if (playerHealth != null)
{
playerHealth.TakeDamage(damagePerSecond);
petHealth.TakeDamage(damagePerSecond);
}
}
}
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