mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-30 12:32:55 +00:00
25 lines
682 B
C#
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);
|
|
}
|
|
}
|
|
}
|