public float EnemyHp_Max = 100;
void OnTriggerEnter(Collider Col)
{
if (Col.gameObject.tag == "PlayerSword")
{
GameObject.FindGameObjectWithTag("PlayerSword").GetComponent<PlayerDamage>().Damage -= EnemyHp_Max;
in this case the damage value in “sword” object decreases by the enemy’s hp, I need to do the opposite XD