Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using AC;
- public class managerDeVideos : MonoBehaviour {
- public Transform rootVideos;
- public bool activar;
- // Use this for initialization
- void Start ()
- {
- rootVideos.gameObject.SetActive(false);
- }
- // Update is called once per frame
- void Update ()
- {
- activar = GlobalVariables.GetBooleanValue(75);
- if (activar)
- rootVideos.gameObject.SetActive(true);
- else
- rootVideos.gameObject.SetActive(false);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement