AmazingAlek 22b028ce26
Alek/overhaul thing (#153)
* probe.SetState
* sectormessage enum
2020-08-10 19:44:04 +02:00

31 lines
506 B
C#

using UnityEngine;
namespace QSB.Tools
{
public class QSBProbe : MonoBehaviour
{
public void SetState(bool state)
{
if (state)
{
Activate();
}
else
{
Deactivate();
}
}
private void Activate()
{
gameObject.SetActive(true);
}
private void Deactivate()
{
gameObject.SetActive(false);
}
}
}