private bool onLocalPlayerAdded(NetworkControllerEvents.LocalPlayerJoinedRoomEvent evt) { eventDispatcher.RemoveListener <NetworkControllerEvents.LocalPlayerJoinedRoomEvent>(onLocalPlayerAdded); localPlayerHandle = evt.Handle; dataEntityCollection.GetComponent <HeldObjectsData>(localPlayerHandle).PlayerHeldObjectChanged += onHeldObjectChanged; return(false); }
private bool onLocalPlayerAdded(NetworkControllerEvents.LocalPlayerJoinedRoomEvent evt) { eventDispatcher.RemoveListener <NetworkControllerEvents.LocalPlayerJoinedRoomEvent>(onLocalPlayerAdded); localPlayerHandle = evt.Handle; anim = SceneRefs.ZoneLocalPlayerManager.LocalPlayerGameObject.GetComponent <Animator>(); return(false); }
private bool onLocalPlayerJoinedRoom(NetworkControllerEvents.LocalPlayerJoinedRoomEvent evt) { if (!base.IsInHandledState) { return(false); } isLocalPlayerInZone = true; localPlayerHandle = evt.Handle; if (!Service.Get <SceneTransitionService>().AllowSceneActivation()) { prepareToSpawnIfReady(); } return(false); }