mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-09 12:54:51 +00:00
18 lines
565 B
C#
18 lines
565 B
C#
using QSB.Player;
|
|
|
|
namespace QSB.Tools.TranslatorTool;
|
|
|
|
internal static class TranslatorCreator
|
|
{
|
|
internal static void CreateTranslator(PlayerInfo player)
|
|
{
|
|
var REMOTE_NomaiTranslatorProp = player.CameraBody.transform.Find("REMOTE_NomaiTranslatorProp").gameObject;
|
|
|
|
var REMOTE_TranslatorGroup = REMOTE_NomaiTranslatorProp.transform.Find("TranslatorGroup");
|
|
|
|
var tool = REMOTE_NomaiTranslatorProp.GetComponent<QSBNomaiTranslator>();
|
|
tool.Type = ToolType.Translator;
|
|
tool.ToolGameObject = REMOTE_TranslatorGroup.gameObject;
|
|
tool.Player = player;
|
|
}
|
|
} |