public void Gather() { var maskZoneController = QSBWorldSync.GetUnityObjects <MaskZoneController>().First(); if (maskZoneController._maskInstrument == AttachedObject) { var shuttleController = QSBWorldSync.GetUnityObjects <EyeShuttleController>().First(); foreach (var player in MaskManager.WentOnSolanumsWildRide) { player.SetVisible(true, 2); } maskZoneController._whiteSphere.SetActive(false); shuttleController._maskObject.SetActive(true); } AttachedObject.Gather(); }
private void OnSceneLoaded(OWScene oldScene, OWScene newScene, bool inUniverse) { if (newScene != OWScene.EyeOfTheUniverse) { return; } var mapController = QSBWorldSync.GetUnityObjects <GalaxyMapController>().First(); var map = mapController._interactVolume.gameObject; map.SetActive(false); Tree = map.AddComponent <QSBCharacterDialogueTree>(); Tree._xmlCharacterDialogueAsset = QSBCore.TextAssetsBundle.LoadAsset <TextAsset>("Assets/TextAssets/GalaxyMap.txt"); Tree._attentionPoint = map.transform; Tree._attentionPointOffset = new Vector3(0, 1, 0); Tree._turnOffFlashlight = true; Tree._turnOnFlashlight = true; map.SetActive(true); }