ProjectileEffect
A class in Root.Township, the global namespace.
Plays a pooled effect and a sound where its projectile hits, facing out from the surface.
- Listed in Global namespace: P
- Inherits or implements
ProjectileComponent
Constructors
| Member | What it is |
|---|---|
ProjectileEffect() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
| Member | What it is |
|---|---|
private PooledObjectDefinition effectDefinition | Optional pooled effect at the hit point. |
private SoundEffectSet soundEffect | Optional sound at the hit point. |
Methods
| Member | What it is |
|---|---|
protected override void ProjectileCollided(Projectile projectile) | Spawns effectDefinition and plays soundEffect at the hit point. |