quantum-space-buddies/QSB/Tools/FlashlightTool/FlashlightCreator.cs
2023-07-28 19:49:30 +01:00

15 lines
397 B
C#

using QSB.Player;
namespace QSB.Tools.FlashlightTool;
public static class FlashlightCreator
{
internal static void CreateFlashlight(PlayerInfo player)
{
var REMOTE_FlashlightRoot = player.CameraBody.transform.Find("REMOTE_FlashlightRoot").gameObject;
var qsbFlashlight = REMOTE_FlashlightRoot.GetComponent<QSBFlashlight>();
qsbFlashlight.Player = player;
qsbFlashlight.Init();
}
}