quantum-space-buddies/QSB/Tools/FlashlightTool/FlashlightCreator.cs

17 lines
412 B
C#
Raw Normal View History

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