public void SetDamageOnContact() { DealDamageOnContact damage = GetComponent <DealDamageOnContact> (); damage.damage = playerBaseStats.baseContactDamage + contactDamge; }
public void SetBulletDamage() { DealDamageOnContact damage = playerBullet.GetComponent <DealDamageOnContact> (); damage.damage = Mathf.Max(playerBaseStats.minBulletDamage, playerBaseStats.baseBulletDamage + bulletDamage); }