18 lines
565 B
C#
Raw Normal View History

2021-12-14 22:53:53 +00:00
using QSB.Player;
2022-03-02 19:46:33 -08:00
namespace QSB.Tools.TranslatorTool;
internal static class TranslatorCreator
{
2022-03-02 19:46:33 -08:00
internal static void CreateTranslator(PlayerInfo player)
{
2022-03-02 19:46:33 -08:00
var REMOTE_NomaiTranslatorProp = player.CameraBody.transform.Find("REMOTE_NomaiTranslatorProp").gameObject;
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;
}
}