Mister_Nebula 80b64202f6 fix stuff
2022-02-12 22:21:19 +00:00

25 lines
748 B
C#

using QSB.Player;
using QSB.PlayerBodySetup.Remote;
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;
FixMaterialsInAllChildren.ReplaceMaterials(REMOTE_NomaiTranslatorProp.transform);
REMOTE_NomaiTranslatorProp.SetActive(true);
}
}
}