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