public class LEDBulbBehaviour

Inherits MonoBehaviour, Messages.IUse

Behaviour for an RGB LED lightbulb

Fields

public Color Color

The color of the light


public SpriteRenderer LightSprite

[SkipSerialisation]

Reference to the light sprite


public SpriteRenderer GlowSprite

[SkipSerialisation]

Reference to the little glow sprite


public SpriteRenderer BulbMask

[SkipSerialisation]

Reference to the colored bulb sprite


public PhysicalBehaviour PhysicalBehaviour

[SkipSerialisation]

Reference to the light sprite


public float MinBrightness

[SkipSerialisation]

The brightness of the LED at 0 charge


public float MaxCharge

[SkipSerialisation]

The charge required to max out the LED brightness


public bool Activated

Is the LED on?


Methods

public void UpdateBulbMaskColour()

Should be called every time you change the colour


public void Use(ActivationPropagation activation)

No description provided


Attention!

This member is obsolete and should not be used. It is a remnant from the past.

bi bij bibi