Example #1
0
        private void createFishBucketAnimationController()
        {
            animationController = new FishBucketAnimationController();
            FishBucketAnimationController fishBucketAnimationController = animationController;

            fishBucketAnimationController.CannonRotationCompleteAction = (System.Action)Delegate.Combine(fishBucketAnimationController.CannonRotationCompleteAction, new System.Action(onCannonRotationComplete));
        }
Example #2
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));
 }