using Cysharp.Threading.Tasks; using QSB.Tools.TranslatorTool.TranslationSync.WorldObjects; using QSB.WorldSync; using System.Threading; namespace QSB.Tools.TranslatorTool.TranslationSync { internal class SpiralManager : WorldObjectManager { public override WorldObjectType WorldObjectType => WorldObjectType.Both; public override async UniTask BuildWorldObjects(OWScene scene, CancellationToken cancellationToken) { // wait for all late initializers (which includes nomai text) to finish StartDelayedReady(); QSBCore.UnityEvents.RunWhen(() => LateInitializerManager.isDoneInitializing, () => { FinishDelayedReady(); QSBWorldSync.Init(typeof(GhostWallText)); }); } } }