2022-02-03 18:31:09 -08:00

17 lines
375 B
C#

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