TempLaser
A class in Root.Township, the global namespace.
Prototype light emitter: raycasts forward each frame and tells any ILightDetectorTemp it hits when the beam starts and stops hitting it.
- Listed in Global namespace: T to X
- Inherits or implements
MonoBehaviour,ILightEmitterTemp
Constructors
| Member | What it is |
|---|---|
TempLaser() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
3 private and internal fields
| Member | What it is |
|---|---|
private float distance | Ray length. |
private LayerMask mask | Layers the ray hits. |
private ILightDetectorTemp oldDetector | Detector hit last frame. |