Adding Components To A Projectile
A simple explanation of how to add components to a projectile.
Difficulty: 1/10
Adding the Component
ExampleComponent componentReference = projectile.gameObject.GetOrAddComponent<ExampleComponent>();Useful Components
Bouncing
BounceProjModifier bounce = projectile.gameObject.GetOrAddComponent<BounceProjModifier>();
bounce.numberOfBounces += 3;Last updated
Was this helpful?