@@ -28,17 +28,7 @@ public static void Init(Transform camera)
2828 CreateFlashlight ( ) ;
2929 CreateSignalscope ( ) ;
3030 CreateProbeLauncher ( ) ;
31-
32- QSB . Helper . Events . Subscribe < NomaiTranslatorProp > ( OWML . Common . Events . AfterStart ) ;
33- QSB . Helper . Events . OnEvent += OnEvent ;
34- }
35-
36- private static void OnEvent ( MonoBehaviour behaviour , OWML . Common . Events ev )
37- {
38- if ( behaviour is NomaiTranslatorProp translatorProp && ev == OWML . Common . Events . AfterStart )
39- {
40- CreateTranslator ( translatorProp ) ;
41- }
31+ CreateTranslator ( ) ;
4232 }
4333
4434 public static void CreateProbe ( Transform body , PlayerInfo player )
@@ -106,10 +96,13 @@ private static void CreateSignalscope()
10696 signalscopeRoot . SetActive ( true ) ;
10797 }
10898
109- private static void CreateTranslator ( NomaiTranslatorProp translatorProp )
99+ private static void CreateTranslator ( )
110100 {
111- var translatorRoot = Object . Instantiate ( translatorProp . gameObject ) ;
112- translatorRoot . SetActive ( false ) ;
101+ var original = GameObject . Find ( "NomaiTranslatorProp" ) ;
102+
103+ original . SetActive ( false ) ;
104+ var translatorRoot = GameObject . Instantiate ( original ) ;
105+ original . SetActive ( true ) ;
113106
114107 var group = translatorRoot . transform . Find ( "TranslatorGroup" ) ;
115108 var model = group . Find ( "Props_HEA_Translator" ) ;
@@ -141,7 +134,7 @@ private static void CreateTranslator(NomaiTranslatorProp translatorProp)
141134 translatorRoot . transform . parent = _cameraBody ;
142135 translatorRoot . transform . localPosition = Vector3 . zero ;
143136 translatorRoot . transform . localScale = TranslatorScale ;
144- translatorRoot . SetActive ( true ) ;
137+ QSB . Helper . Events . Unity . FireOnNextUpdate ( ( ) => translatorRoot . SetActive ( true ) ) ;
145138 }
146139
147140 private static void CreateProbeLauncher ( )
0 commit comments