mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-26 09:35:26 +00:00
17 lines
375 B
C#
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();
|
|
}
|
|
}
|
|
}
|