Search Unity

How to have Global Scripts outside of Scenes?

Discussion in 'Scripting' started by AwDogsGo2Heaven, Jan 18, 2014.

  1. AwDogsGo2Heaven

    AwDogsGo2Heaven

    Joined:
    Jan 17, 2014
    Posts:
    102
    I understand I can add an empty gameobject and attach a script to it in a scene. But what If I need a global object like a game manager that needs to stay alive between scenes to manage the entire game? How and where do I put that script, and guarantee I am accessing the same instance in every scene?
     
  2. landon912

    landon912

    Joined:
    Nov 8, 2011
    Posts:
    1,579