Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var lightStep : float = 10;
- public var Bar : UnityEngine.UI.Image;
- public var fillAmount: float;
- var Bl : float = 0.00025;
- var fireLight : Light;
- function Update() {
- fireLight.GetComponent.<Light>().intensity -= lightStep;
- Bar.fillAmount = (Bar.fillAmount - Bl);
- }
Add Comment
Please, Sign In to add comment