Exemplo n.º 1
0
 public static void StartGameoverTimer()
 {
     if (m_gameOverTimer == null)
     {
         MyAudio.AddCue2D(MySoundCuesEnum.SfxClaxonAlert);
         MySmallShipBot.PlayFriendlyFireCue();
         MyDialogues.Stop();
         m_gameOverTimer = 10.0f; // 10s
     }
 }
Exemplo n.º 2
0
        public override void Update()
        {
            base.Update();

            if (!m_destinationReached && IsPlayerNearLocation())
            {
                DestinationReached();
            }

            if ((IsSuccess() || (SkipSubmission && (CanBeSkipped || MyFakes.TEST_MISSION_GAMEPLAY)))
                // complete submission only if player is in game play screen (In some missions there's possibility that mission will complete and player is in MainMenu,
                // progress dialog which follows will break gameplay)
                && MyGuiScreenGamePlay.Static != null && MyGuiScreenGamePlay.Static == MyGuiManager.GetScreenWithFocus())
            {
                if (SkipSubmission)
                {
                    MyDialogues.Stop();
                }
                SkipSubmission = false;
                Success();
            }
        }
Exemplo n.º 3
0
 public void SkipDialog()
 {
     MyDialogues.Stop();
     SkipDialogEnabled = true;
     Success();
 }
        protected override void OnClosed()
        {
            base.OnClosed();

            MyDialogues.Stop();
        }