quantum-space-buddies/QSB/Tools/ProbeLauncherTool/ProbeLauncherCreator.cs
2022-03-02 19:46:33 -08:00

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;
}
}