Guest User

Untitled

a guest
Feb 21st, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. public Light Lights;
  2.  
  3. public Flare Flares;
  4.  
  5.  
  6.  
  7.  
  8. public void LightCont() {
  9.  
  10.  
  11.  
  12. Lights = GetComponentsInChildren<Light>();
  13.  
  14.  
  15.  
  16. if (Lights.light.enabled) {
  17.  
  18. Lights.light.enabled = false;
  19.  
  20. }
  21.  
  22.  
  23.  
  24. else{
  25.  
  26. Lights.light.enabled = true;
  27.  
  28. }
  29.  
  30. }
Add Comment
Please, Sign In to add comment