2021-12-14 22:53:53 +00:00
|
|
|
|
using QSB.Player;
|
2021-11-09 17:46:46 +00:00
|
|
|
|
|
|
|
|
|
namespace QSB.Tools.SignalscopeTool
|
|
|
|
|
{
|
2021-11-09 19:39:56 +00:00
|
|
|
|
internal static class SignalscopeCreator
|
2021-11-09 17:46:46 +00:00
|
|
|
|
{
|
2021-12-14 22:53:53 +00:00
|
|
|
|
internal static void CreateSignalscope(PlayerInfo player)
|
2021-11-09 17:46:46 +00:00
|
|
|
|
{
|
2022-02-17 16:58:51 -08:00
|
|
|
|
var REMOTE_Signalscope = player.CameraBody.transform.Find("REMOTE_Signalscope").gameObject;
|
2022-02-02 11:58:00 +00:00
|
|
|
|
|
2022-02-17 16:58:51 -08:00
|
|
|
|
var Props_HEA_Signalscope = REMOTE_Signalscope.transform.Find("Props_HEA_Signalscope");
|
2021-11-25 11:27:58 +00:00
|
|
|
|
|
2022-02-17 16:58:51 -08:00
|
|
|
|
var tool = REMOTE_Signalscope.GetComponent<QSBTool>();
|
2021-11-09 17:46:46 +00:00
|
|
|
|
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;
|
2021-11-09 17:46:46 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|