2020-08-16 17:15:36 +02:00
|
|
|
|
using QSB.Utility;
|
|
|
|
|
using UnityEngine;
|
2020-08-07 20:39:07 +01:00
|
|
|
|
|
|
|
|
|
namespace QSB.Tools
|
|
|
|
|
{
|
|
|
|
|
public class QSBProbe : MonoBehaviour
|
|
|
|
|
{
|
2020-08-10 19:44:04 +02:00
|
|
|
|
public void SetState(bool state)
|
|
|
|
|
{
|
|
|
|
|
if (state)
|
|
|
|
|
{
|
|
|
|
|
Activate();
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
Deactivate();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void Activate()
|
2020-08-07 20:39:07 +01:00
|
|
|
|
{
|
2020-08-14 22:05:56 +01:00
|
|
|
|
gameObject.SetActive(true);
|
2020-08-16 17:15:36 +02:00
|
|
|
|
gameObject.Show();
|
2020-08-07 20:39:07 +01:00
|
|
|
|
}
|
|
|
|
|
|
2020-08-10 19:44:04 +02:00
|
|
|
|
private void Deactivate()
|
2020-08-07 20:39:07 +01:00
|
|
|
|
{
|
2020-08-16 17:15:36 +02:00
|
|
|
|
gameObject.Hide();
|
2020-08-07 20:39:07 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|