Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Multi Path Storytelling

Discussion in 'Game Design' started by Ciarawc, Mar 2, 2019.

  1. Ciarawc


    Mar 2, 2019
    Hey I'm trying to write a code (using C sharp) to be able to go from scene A to scene B OR C.
    For example if YES is chosen, you are directed to scene B
    If NO is chosen you are directed to scene C
    Any help or advice would be appreciated thanks!
    Ciara WC
  2. Joe-Censored


    Mar 26, 2013
    What part of this are you having trouble with?

    Code (csharp):
    1. if (choice)
    2. {
    3.     SceneManager.LoadScene("SceneB");
    4. }
    5. else
    6. {
    7.     SceneManager.LoadScene("SceneC");
    8. }
    MW_Industries, konsic and SparrowGS like this.