Guest User

Untitled

a guest
Aug 1st, 2018
60
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data