public void DealDamage(int dmg, int hpTarget, int currentTargetHealth)
{
currentTargetHealth = hpTarget - dmg;
}
public void PlayerAttack()
{
DealDamage(playerData[0].strStat, playerData[0].hpStat, playerData[0].hpStat);
//Debug.Log(playerData[0].hpStat);
}
So not sure what i’m doing wrong, but while testing this, the player hp isnt dropping when i debug this. I have PlayerAttack() hooked up to a ui button.