コード例 #1
0
        public override void Activate()
        {
            base.Activate();

            _avatar.SkinBones(AvatarComponentManager.FrontFacingAvatarSkin(Profile.Settings.SelectedAvatarSlot));
            _avatar.StartRestingAnimationSequence();

            SynchroniseComponentsWithDialog();

            _outcomePopup.Outcome = Outcome;
            _outcomePopup.Reset();

            _resultsAnnouncementTimer.NextActionDuration = Delay_Before_Result_Announcement_In_Milliseconds;
            _resultsSoundInstance = SoundEffectManager.PlayEffect("race-results");

            _glowBurst.Visible = false;
            _displayLivesAward = false;
        }
コード例 #2
0
        public override void Activate()
        {
            base.Activate();

            _playerOne.SkinBones(AvatarComponentManager.FrontFacingAvatarSkin(PlayerOneSkinSlotIndex));
            _playerOne.StartRestingAnimationSequence();

            _playerTwo.SkinBones(AvatarComponentManager.FrontFacingAvatarSkin(PlayerTwoSkinSlotIndex));
            _playerTwo.StartRestingAnimationSequence();

            _outcomePopup.PlayerOneSkinSlotIndex = PlayerOneSkinSlotIndex;
            _outcomePopup.PlayerTwoSkinSlotIndex = PlayerTwoSkinSlotIndex;
            _outcomePopup.Outcome = Outcome;
            _outcomePopup.Reset();

            _glowBurst.Visible = false;

            SynchroniseComponentsWithDialog();

            _resultsAnnouncementTimer.NextActionDuration = Delay_Before_Result_Announcement_In_Milliseconds;
            _resultsSoundInstance = SoundEffectManager.PlayEffect("race-results");
        }