mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-03 17:53:57 +00:00
18 lines
394 B
C#
18 lines
394 B
C#
using QSB.Player;
|
|
using UnityEngine;
|
|
|
|
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();
|
|
}
|
|
}
|
|
}
|