private void Configure()
 {
     instance = this;
     SceneManager.sceneLoaded += OnSceneLoaded;
 }
示例#2
0
 //Being called in awake, singleton pattern
 private void Configure()
 {
     instance = this;
     SceneManager.sceneLoaded += OnSceneLoaded; //subscribes to the event
 }