//method to deal damage to public void StrikeCurrentTarget() { if (strikeTarget != null) { Health hp = strikeTarget.GetComponent <Health>(); if (hp) { hp.TakeDamage(Damage); dmgControl.DisplayDamage(Damage, strikeTarget); Debug.Log("Dealing " + Damage + " to: " + strikeTarget.name); } } }