333GameStudio

Light

Feb 15th, 2016
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. var lightStep : float = 10;
  3.  public var Bar : UnityEngine.UI.Image;  
  4.  public var fillAmount: float;
  5. var Bl : float = 0.00025;
  6.  var fireLight : Light;
  7.  
  8.  
  9. function Update() {
  10.  
  11.  
  12.         fireLight.GetComponent.<Light>().intensity -= lightStep;
  13.         Bar.fillAmount = (Bar.fillAmount - Bl);
  14.        
  15.      
  16.  
  17. }
Add Comment
Please, Sign In to add comment