Mister_Nebula 80b64202f6 fix stuff
2022-02-12 22:21:19 +00:00

25 lines
682 B
C#

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