2021-12-14 22:53:53 +00:00
|
|
|
|
using QSB.Player;
|
2021-11-09 17:46:46 +00:00
|
|
|
|
|
2022-03-03 03:46:33 +00:00
|
|
|
|
namespace QSB.Tools.ProbeLauncherTool;
|
|
|
|
|
|
2023-07-28 18:49:30 +00:00
|
|
|
|
public static class ProbeLauncherCreator
|
2021-11-09 17:46:46 +00:00
|
|
|
|
{
|
2022-03-03 03:46:33 +00:00
|
|
|
|
internal static void CreateProbeLauncher(PlayerInfo player)
|
2021-11-09 17:46:46 +00:00
|
|
|
|
{
|
2022-03-03 03:46:33 +00:00
|
|
|
|
var REMOTE_ProbeLauncher = player.CameraBody.transform.Find("REMOTE_ProbeLauncher").gameObject;
|
2021-11-09 17:46:46 +00:00
|
|
|
|
|
2022-03-03 03:46:33 +00:00
|
|
|
|
var REMOTE_Props_HEA_ProbeLauncher = REMOTE_ProbeLauncher.transform.Find("Props_HEA_ProbeLauncher");
|
2021-11-09 17:46:46 +00:00
|
|
|
|
|
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;
|
2021-11-09 17:46:46 +00:00
|
|
|
|
}
|
2022-02-25 06:04:54 +00:00
|
|
|
|
}
|