mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2024-12-28 18:25:18 +00:00
15 lines
397 B
C#
15 lines
397 B
C#
using QSB.Player;
|
|
|
|
namespace QSB.Tools.FlashlightTool;
|
|
|
|
public 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();
|
|
}
|
|
} |