private void DealDamage(Character_Stats targetsStats) { print("Test2"); if (targetsStats) { print("Test3"); targetsStats.TakeDamage(characterStats.GetStrength(), 0, CalculateKnockbackPower(targetsStats.GetComponent <Transform>())); } }
private void DealDamage(Character_Stats targetStats) { //targetStats.KnockingBack(20f, 0.25f, -Vector3.up); targetStats.TakeDamage(totalPhysicalDamage, totalMagicalDamage, CalculateKnockbackPower(targetStats.transform)); }