quantum-space-buddies/QSB/Tools/SignalscopeTool/SignalscopeCreator.cs
2022-03-02 19:46:33 -08:00

18 lines
530 B
C#

using QSB.Player;
namespace QSB.Tools.SignalscopeTool;
internal static class SignalscopeCreator
{
internal static void CreateSignalscope(PlayerInfo player)
{
var REMOTE_Signalscope = player.CameraBody.transform.Find("REMOTE_Signalscope").gameObject;
var Props_HEA_Signalscope = REMOTE_Signalscope.transform.Find("Props_HEA_Signalscope");
var tool = REMOTE_Signalscope.GetComponent<QSBTool>();
tool.Type = ToolType.Signalscope;
tool.ToolGameObject = Props_HEA_Signalscope.gameObject;
tool.Player = player;
}
}