SwitchActiveStatus.cs
318 Bytes
using UnityEngine;
using System;
public class SwitchActiveStatus : MonoBehaviour, ChangeState {
public bool show = true;
// Mostra ou esconde o GameObject associado ao script
public void SwitchStatus()
{
show = !show;
gameObject.SetActive(show);
}
public bool getChangeState()
{
return show;
}
}