Jump to content
  • 0

[Issue] Let us skip the Obsidian Intro Movie


Sensuki

Question

Please let us skip the Obsidian intro movie ... what's more here's the code to do it, courtesy of Bester.

 

The update method of the CompanyIntroManager needs to be changed to:

private void Update()
  {
    this.m_delay -= Time.deltaTime;
    if ((double) this.m_delay > 0.0 && (Input.GetMouseButtonDown(0) || Input.GetMouseButtonDown(1) || (Input.GetKeyDown(KeyCode.Escape) || Input.GetKeyDown(KeyCode.Return)) || Input.GetKeyDown(KeyCode.Space)))
    {
      this.IntroMovieManager.StopMovie();
      this.m_delay = 0.0f;
    }
    if (!this.m_started && (double) this.m_delay <= 0.0)
    {
      this.IntroMovieManager.PlayMovieAtPath("Movies/obsidian_intro", false);
      this.m_delay = this.IntroMovieManager.GetMovieDuration() + 1f;
      this.m_started = true;
    }
    else
    {
      if ((double) this.m_delay > 0.0)
        return;
      Debug.Log((object) "LOAD TO MAIN MENU.\n\n");
      Application.LoadLevel("MainMenu");
    }
  }
}
Edited by Sensuki
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

×
×
  • Create New...