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