mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-08 18:51:19 +00:00
18 lines
579 B
C#
18 lines
579 B
C#
using QSB.Player;
|
|
|
|
namespace QSB.Tools.ProbeLauncherTool;
|
|
|
|
internal static class ProbeLauncherCreator
|
|
{
|
|
internal static void CreateProbeLauncher(PlayerInfo player)
|
|
{
|
|
var REMOTE_ProbeLauncher = player.CameraBody.transform.Find("REMOTE_ProbeLauncher").gameObject;
|
|
|
|
var REMOTE_Props_HEA_ProbeLauncher = REMOTE_ProbeLauncher.transform.Find("Props_HEA_ProbeLauncher");
|
|
|
|
var tool = REMOTE_ProbeLauncher.GetComponent<QSBProbeLauncherTool>();
|
|
tool.Type = ToolType.ProbeLauncher;
|
|
tool.ToolGameObject = REMOTE_Props_HEA_ProbeLauncher.gameObject;
|
|
tool.Player = player;
|
|
}
|
|
} |