Mister_Nebula 5dce7a8a03
Probe + Launcher (with associated events/transformsync changes) (#117)
* Added probe + probe launcher, with general event/transformsync/player refactors and improvements
2020-08-07 20:39:07 +01:00

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);
}
}
}