private bool onLocalPlayerReadyToSpawn(PlayerSpawnedEvents.LocalPlayerReadyToSpawn evt) { eventDispatcher.RemoveListener <PlayerSpawnedEvents.LocalPlayerReadyToSpawn>(onLocalPlayerReadyToSpawn); ParticipationData component = dataEntityCollection.GetComponent <ParticipationData>(dataEntityCollection.LocalPlayerHandle); if (component != null) { component.CurrentParticipationState = ParticipationState.Ready; } createLocalPlayer(LocalPlayerGameObject, evt.Handle); Quest activeQuest = Service.Get <QuestService>().ActiveQuest; if (activeQuest == null || activeQuest.Definition.name != Service.Get <GameStateController>().FTUEConfig.FtueQuestId) { Service.Get <EventDispatcher>().DispatchEvent(default(UIDisablerEvents.EnableAllUIElements)); } readyForAvatar(); return(false); }
private bool onLocalPlayerReadyToSpawn(PlayerSpawnedEvents.LocalPlayerReadyToSpawn evt) { eventDispatcher.RemoveListener <PlayerSpawnedEvents.LocalPlayerReadyToSpawn>(onLocalPlayerReadyToSpawn); spawnLocalPlayerInZone(); return(false); }