Example #1
0
 private void SetCurrentScene()
 {
     if (currentSceneRoot)
     {
         SceneStreamer.SetCurrentScene(currentSceneRoot.name);
     }
 }
Example #2
0
        public void Awake()
        {
            if (s_instance)
            {
                Destroy(this);
            }
            else
            {
                s_instance = this;
                Object.DontDestroyOnLoad(this.gameObject);
#if !UNITY_5_3_OR_NEWER
                if (!sceneContainer)
                {
                    sceneContainer = gameObject;
                }
#endif
            }
        }
Example #3
0
		public void Start() 
		{
			SceneStreamer.SetCurrentScene(startSceneName);
			Destroy(this);
		}