void SendDamage() { knockbackDir = target.transform.position - transform.position; print("test"); playerHPref.DamageHP(damage); playerRBref.AddForce(knockbackDir.normalized * knockbackForce); gameObject.SetActive(false); }
void SendDamage() { knockbackDir = target.transform.position - transform.position; print("test"); playerHPref.DamageHP(damage); playerRBref.AddForce(knockbackDir.normalized * knockbackForce); gameObject.SetActive(false); }