public class SimpleLightningEmitterBehaviour
Inherits MonoBehaviour
Singleton utility class that can generate cheap lightning bolts
Fields
public static SimpleLightningEmitterBehaviour Instance
The main instance of the emitter
public GameObject PoolableLightningPrefab
No description provided
Methods
public void Emit(Vector2 origin, Vector2 direction, float maxSearchRange, float width, System.Action<PhysicalBehaviour, Vector2> onHit, Color color, LayerMask layers, in float attractionInfluence = 3, in int maxIterations = 128, in float maxStep = 0.07f, in float randomness = 0.05f)
Emit a lightning bolt from a point into a direction.
bi bij bibi