示例#1
0
 void OnSceneChanged(Scene previous, Scene next)
 {
     previousScene = previous;
     current       = FindObjectOfType <SceneBase>();
 }
示例#2
0
 void Start()
 {
     SceneManager.activeSceneChanged += OnSceneChanged;
     instance = this;
     current  = FindObjectOfType <SceneBase>();
 }