Пример #1
0
 protected override void destroy()
 {
     itemIdToItemGameObject.Clear();
     removeListeners();
     PartyGameUtils.RemoveParticipationFilter(localPlayerParticipationController);
     enableLocomotionControls();
     changeToDefaultCamera();
     PartyGameUtils.RemoveActionConfirmationFilter();
     enableMainNavigation();
     resetPropControls();
     if (playerIdToRoleIndicators.Count > 0)
     {
         foreach (KeyValuePair <long, GameObject> playerIdToRoleIndicator in playerIdToRoleIndicators)
         {
             Service.Get <EventDispatcher>().DispatchEvent(new PlayerIndicatorEvents.RemovePlayerIndicator(playerIdToRoleIndicator.Key, isStored: false));
         }
         playerIdToRoleIndicators.Clear();
     }
     if (hudUI != null)
     {
         Object.Destroy(hudUI.gameObject);
     }
     Object.Destroy(parentTransform.gameObject);
     CoroutineRunner.StopAllForOwner(this);
     Service.Get <EventDispatcher>().DispatchEvent(new PartyGameEvents.PartyGameEnded(partyGameDefinition));
 }
Пример #2
0
 protected override void destroy()
 {
     PartyGameUtils.EnableMainNavigation();
     PartyGameUtils.RemoveParticipationFilter(localPlayerParticipationController);
     PartyGameUtils.RemoveActionConfirmationFilter();
     PartyGameUtils.EnableCellPhoneButton();
     removeEventListeners();
     changeToDefaultCamera();
     changeControlState(ControlsState.Enabled);
     Service.Get <EventDispatcher>().DispatchEvent(new UIDisablerEvents.EnableUIElement("ChatButtons"));
     if (danceBattleVisualsController != null)
     {
         danceBattleVisualsController.RemoveTopHud();
     }
 }
Пример #3
0
 protected override void destroy()
 {
     dispatcher.RemoveListener <InputEvents.ActionEvent>(onActionEvent);
     ResetCamera();
     showRemotePlayers();
     removeListeners();
     PartyGameUtils.RemoveParticipationFilter(localPlayerParticipationController);
     PartyGameUtils.RemoveActionConfirmationFilter();
     PartyGameUtils.EnableMainNavigation();
     PartyGameUtils.EnableLocomotionControls();
     dispatcher.DispatchEvent(default(ControlsScreenEvents.ReturnToDefaultLeftOption));
     Object.Destroy(boardGameObject);
     Object.Destroy(hudUI.gameObject);
     PartyGameUtils.EnableCellPhoneButton();
     dispatcher.DispatchEvent(new PlayerCardEvents.SetEnablePlayerCard(enable: true));
     CoroutineRunner.StopAllForOwner(this);
 }
Пример #4
0
 protected override void destroy()
 {
     PartyGameUtils.RemoveParticipationFilter(localPlayerParticipationController);
     PartyGameUtils.RemoveActionConfirmationFilter();
     PartyGameUtils.EnableMainNavigation();
     PartyGameUtils.EnableLocomotionControls();
     animationController.Destroy();
     removeListeners();
     ResetCamera();
     UnityEngine.Object.Destroy(hudUI.gameObject);
     UnityEngine.Object.Destroy(cannonGameObject);
     if (animationController != null)
     {
         FishBucketAnimationController fishBucketAnimationController = animationController;
         fishBucketAnimationController.CannonRotationCompleteAction = (System.Action)Delegate.Remove(fishBucketAnimationController.CannonRotationCompleteAction, new System.Action(onCannonRotationComplete));
     }
     CoroutineRunner.StopAllForOwner(this);
     currentState = FishBucketState.Finished;
     PartyGameUtils.EnableCellPhoneButton();
     Service.Get <EventDispatcher>().DispatchEvent(new PartyGameEvents.PartyGameEnded(partyGameDefinition));
 }