mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-25 15:35:22 +00:00
f434ed027b
* wrapper for sector * using world registry for sectors * using order id as unique sector key * sector manager * not checking closest sector every frame
32 lines
545 B
C#
32 lines
545 B
C#
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()
|
|
{
|
|
gameObject.SetActive(true);
|
|
gameObject.Show();
|
|
}
|
|
|
|
private void Deactivate()
|
|
{
|
|
gameObject.Hide();
|
|
}
|
|
}
|
|
}
|