public void OnTriggerEnter(Collider other) { if (other.CompareTag("Player")) { Service.Get <ActionConfirmationService>().ConfirmAction(typeof(ZoneTransition), null, delegate { ClubPenguin.SceneRefs.FullScreenPopupManager.CreatePopup(prefabContentKey, accessibilityKey, useCameraSpace: true, onPrefabSpawned); }); outOfBoundsWarper = other.GetComponent <OutOfBoundsWarper>(); } }
private void OnApplicationPause(bool pauseStatus) { if (pauseStatus && LocomotionHelper.IsCurrentControllerOfType <RaceController>(base.gameObject)) { CPDataEntityCollection cPDataEntityCollection = Service.Get <CPDataEntityCollection>(); if (cPDataEntityCollection.TryGetComponent <PausedStateData>(cPDataEntityCollection.LocalPlayerHandle, out var component)) { OutOfBoundsWarper component2 = GetComponent <OutOfBoundsWarper>(); component.Position = component2.StartingPosition; } } }