32 lines
545 B
C#
Raw Normal View History

using QSB.Utility;
using UnityEngine;
namespace QSB.Tools
{
public class QSBProbe : MonoBehaviour
{
public void SetState(bool state)
{
if (state)
{
Activate();
}
else
{
Deactivate();
}
}
private void Activate()
{
2020-08-14 22:05:56 +01:00
gameObject.SetActive(true);
gameObject.Show();
}
private void Deactivate()
{
gameObject.Hide();
}
}
}