private void SetCurrentScene() { if (currentSceneRoot) { SceneStreamer.SetCurrentScene(currentSceneRoot.name); } }
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 } }
public void Start() { SceneStreamer.SetCurrentScene(startSceneName); Destroy(this); }