mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-04 03:39:55 +00:00
34 lines
738 B
C#
34 lines
738 B
C#
|
using OWML.Common;
|
|||
|
using QSB.Utility;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
namespace QSB.Tools
|
|||
|
{
|
|||
|
public class QSBProbe : MonoBehaviour
|
|||
|
{
|
|||
|
private uint _attachedNetId;
|
|||
|
|
|||
|
public void Init(uint netid)
|
|||
|
{
|
|||
|
_attachedNetId = netid;
|
|||
|
}
|
|||
|
|
|||
|
void Start()
|
|||
|
{
|
|||
|
gameObject.SetActive(false);
|
|||
|
}
|
|||
|
|
|||
|
public void Activate()
|
|||
|
{
|
|||
|
DebugLog.ToConsole($"Activating player {_attachedNetId}'s probe.", MessageType.Info);
|
|||
|
gameObject.SetActive(true);
|
|||
|
}
|
|||
|
|
|||
|
public void Deactivate()
|
|||
|
{
|
|||
|
DebugLog.ToConsole($"Deactivating player {_attachedNetId}'s probe.", MessageType.Info);
|
|||
|
gameObject.SetActive(false);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|