2021-12-14 22:53:53 +00:00
|
|
|
|
using QSB.Player;
|
2021-11-09 17:46:46 +00:00
|
|
|
|
|
|
|
|
|
namespace QSB.Tools.FlashlightTool
|
|
|
|
|
{
|
2021-11-09 19:39:56 +00:00
|
|
|
|
internal static class FlashlightCreator
|
2021-11-09 17:46:46 +00:00
|
|
|
|
{
|
2021-12-14 22:53:53 +00:00
|
|
|
|
internal static void CreateFlashlight(PlayerInfo player)
|
2021-11-09 17:46:46 +00:00
|
|
|
|
{
|
2022-02-18 01:31:38 +00:00
|
|
|
|
var REMOTE_FlashlightRoot = player.CameraBody.transform.Find("REMOTE_FlashlightRoot").gameObject;
|
2021-11-09 17:46:46 +00:00
|
|
|
|
|
2022-02-18 00:58:51 +00:00
|
|
|
|
var qsbFlashlight = REMOTE_FlashlightRoot.GetComponent<QSBFlashlight>();
|
|
|
|
|
qsbFlashlight.Player = player;
|
|
|
|
|
qsbFlashlight.Init();
|
2021-11-09 17:46:46 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|