SwitchActiveStatus.txt 255 Bytes Edit Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 using UnityEngine; using System; public class SwitchActiveStatus : MonoBehaviour { private bool show = true; //Mostra ou esconde o GameObject associado ao script public void SwitchStatus() { show = !show; gameObject.SetActive(show); } }