public void ExitAfterBan() { SessionManager sessionManager = Service.Get <SessionManager>(); ZoneTransitionService zoneTransitionService = Service.Get <ZoneTransitionService>(); dataEntityCollection.ClearZoneScope(); sessionManager.DisposeSession(); GoOffline(); if (zoneTransitionService.IsTransitioning || zoneTransitionService.IsConnecting) { Service.Get <ZoneTransitionService>().CancelTransition(SceneConfig.HomeSceneName); gameStateMachine.SendEvent(DefaultEvent); } else { Service.Get <LoadingController>().ClearAllLoadingSystems(); ReturnToHome(); } }
private void returnToPreviousScene() { isCancelledSceneTransitionRequested = false; PresenceData component = dataEntityCollection.GetComponent <PresenceData>(dataEntityCollection.LocalPlayerHandle); dataEntityCollection.ClearZoneScope(); Service.Get <GameStateController>().GoOffline(); Service.Get <LoadingController>().ClearAllLoadingSystems(); if (component.IsInInstancedRoom) { LoadIgloo(component.InstanceRoom, Service.Get <Localizer>().Language, SceneStateData.SceneState.Play, Service.Get <GameStateController>().SceneConfig.TransitionSceneName); } else { LoadZone(component.Room, Service.Get <GameStateController>().SceneConfig.TransitionSceneName, component.World); } Service.Get <GameStateController>().TriggerZoneConnectingEvent(); }
private void clearData() { dataEntityCollection.ClearZoneScope(); }