Skip to main content

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.

Constructors​

MemberWhat it is
ProjectileEffect()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private PooledObjectDefinition effectDefinitionOptional pooled effect at the hit point.
private SoundEffectSet soundEffectOptional sound at the hit point.

Methods​

MemberWhat it is
protected override void ProjectileCollided(Projectile projectile)Spawns effectDefinition and plays soundEffect at the hit point.