Aegistus / Untitled-Pirate-Game

Made for CS 325 Group Game Project
0 stars 0 forks source link

Add Projectile Script for Cannonballs #25

Closed Aegistus closed 1 year ago

Aegistus commented 1 year ago

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).

Aegistus commented 1 year ago

Also, ShipHealth and DamageValue can be found in Assets->Ship.