quantum-space-buddies/QSB/Tools/ProbeLauncherTool/ProbeLauncherCreator.cs

18 lines
577 B
C#
Raw Normal View History

2021-12-14 22:53:53 +00:00
using QSB.Player;
2022-03-03 03:46:33 +00:00
namespace QSB.Tools.ProbeLauncherTool;
2023-07-28 18:49:30 +00:00
public static class ProbeLauncherCreator
{
2022-03-03 03:46:33 +00:00
internal static void CreateProbeLauncher(PlayerInfo player)
{
2022-03-03 03:46:33 +00:00
var REMOTE_ProbeLauncher = player.CameraBody.transform.Find("REMOTE_ProbeLauncher").gameObject;
2022-03-03 03:46:33 +00:00
var REMOTE_Props_HEA_ProbeLauncher = REMOTE_ProbeLauncher.transform.Find("Props_HEA_ProbeLauncher");
2022-03-03 03:46:33 +00:00
var tool = REMOTE_ProbeLauncher.GetComponent<QSBProbeLauncherTool>();
tool.Type = ToolType.ProbeLauncher;
tool.ToolGameObject = REMOTE_Props_HEA_ProbeLauncher.gameObject;
tool.Player = player;
}
}