Answer by DRRosen3
You don't have to have every ability in the enemy script. Put this in the enemy script. public void AdjustHealth(int amount) { health += amount; } Now you need some sort of mediator between player and...
View ArticleAnswer by Hollow Mockery
Set up parameters in your damage function. like this for example: public float CurrentHealth; public float DamageThreshold; public float DamageResistance; public void takeDamage(float Damage, float...
View ArticleAnswer by DRRosen3
You don't have to have every ability in the enemy script. Put this in the enemy script. public void AdjustHealth(int amount) { health += amount; } Now you need some sort of mediator between player and...
View ArticleAnswer by Hollow Mockery
Set up parameters in your damage function. like this for example: public float CurrentHealth; public float DamageThreshold; public float DamageResistance; public void takeDamage(float Damage, float...
View Article