Advertisement
Guest User

Untitled

a guest
Aug 1st, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using AC;
  5.  
  6. public class managerDeVideos : MonoBehaviour {
  7.  
  8. public Transform rootVideos;
  9. public bool activar;
  10. // Use this for initialization
  11. void Start ()
  12. {
  13. rootVideos.gameObject.SetActive(false);
  14. }
  15.  
  16. // Update is called once per frame
  17.  
  18.  
  19. void Update ()
  20. {
  21. activar = GlobalVariables.GetBooleanValue(75);
  22.  
  23. if (activar)
  24. rootVideos.gameObject.SetActive(true);
  25. else
  26. rootVideos.gameObject.SetActive(false);
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement