Esempio n. 1
0
 private bool onSceneTransition(SceneTransitionEvents.TransitionStart evt)
 {
     dispatcher.RemoveListener <SceneTransitionEvents.TransitionStart>(onSceneTransition);
     PartyGameUtils.EnableMainNavigation();
     PartyGameUtils.EnableLocomotionControls();
     PartyGameUtils.EnableCellPhoneButton();
     enableDanceMoveControls();
     dispatcher.RemoveListener <ControlsScreenEvents.ControlLayoutLoadComplete>(onControlLayoutLoadComplete);
     return(false);
 }
Esempio n. 2
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);
 }
Esempio n. 3
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));
 }