2022-02-17 17:31:38 -08:00

17 lines
412 B
C#

using QSB.Player;
namespace QSB.Tools.FlashlightTool
{
internal 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();
}
}
}