A class in Root.Township, the global namespace.
Light puzzle emitter: casts a Beam forward from its transform every frame. Base class for PuzzleLightMirror.
Constructors
| Member | What it is |
|---|
PuzzleLightBeam() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
| Member | What it is |
|---|
protected float distance | Beam reach, 100 by default. |
2 private and internal fields
| Member | What it is |
|---|
private Beam beam | The beam this emitter casts. |
private LayerMask mask | Layers the beam raycast hits. |
Properties
| Member | What it is |
|---|
float Distance { get; } | How far the beam reaches. |
LayerMask Mask { get; } | Layers the beam can hit. |
Methods
| Member | What it is |
|---|
protected virtual void Awake() | Creates the beam. |
protected virtual void Update() | Emits the beam from the object's position along its forward direction. |