Add a projectile script for cannonballs.
The script should apply a forward force in OnEnable().
When the projectile collides with a ship, it should find the ShipHealth component and call Damage(). Have a public DamageValue variable that is passed to the Damage() method.
After hitting, the projectile's gameobject should be DISABLED (not destroyed, I'll explain why later).
Add a projectile script for cannonballs. The script should apply a forward force in OnEnable(). When the projectile collides with a ship, it should find the ShipHealth component and call Damage(). Have a public DamageValue variable that is passed to the Damage() method. After hitting, the projectile's gameobject should be DISABLED (not destroyed, I'll explain why later).