2021-12-14 22:53:53 +00:00
|
|
|
|
using QSB.Player;
|
2021-11-09 17:46:46 +00:00
|
|
|
|
|
2022-03-02 19:46:33 -08:00
|
|
|
|
namespace QSB.Tools.TranslatorTool;
|
|
|
|
|
|
|
|
|
|
internal static class TranslatorCreator
|
2021-11-09 17:46:46 +00:00
|
|
|
|
{
|
2022-03-02 19:46:33 -08:00
|
|
|
|
internal static void CreateTranslator(PlayerInfo player)
|
2021-11-09 17:46:46 +00:00
|
|
|
|
{
|
2022-03-02 19:46:33 -08:00
|
|
|
|
var REMOTE_NomaiTranslatorProp = player.CameraBody.transform.Find("REMOTE_NomaiTranslatorProp").gameObject;
|
2021-11-09 17:46:46 +00:00
|
|
|
|
|
2022-03-02 19:46:33 -08:00
|
|
|
|
var REMOTE_TranslatorGroup = REMOTE_NomaiTranslatorProp.transform.Find("TranslatorGroup");
|
2021-11-11 19:30:58 +00:00
|
|
|
|
|
2022-03-02 19:46:33 -08:00
|
|
|
|
var tool = REMOTE_NomaiTranslatorProp.GetComponent<QSBNomaiTranslator>();
|
|
|
|
|
tool.Type = ToolType.Translator;
|
|
|
|
|
tool.ToolGameObject = REMOTE_TranslatorGroup.gameObject;
|
|
|
|
|
tool.Player = player;
|
2021-11-09 17:46:46 +00:00
|
|
|
|
}
|
2022-02-24 22:04:54 -08:00
|
|
|
|
}
|