20 lines
545 B
C#
Raw Normal View History

2021-12-14 22:53:53 +00:00
using QSB.Player;
namespace QSB.Tools.SignalscopeTool
{
2021-11-09 19:39:56 +00:00
internal static class SignalscopeCreator
{
2021-12-14 22:53:53 +00:00
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");
2021-11-25 11:27:58 +00:00
var tool = REMOTE_Signalscope.GetComponent<QSBTool>();
tool.Type = ToolType.Signalscope;
2021-11-25 11:27:58 +00:00
tool.ToolGameObject = Props_HEA_Signalscope.gameObject;
2021-12-14 22:53:53 +00:00
tool.Player = player;
}
}
}