void Start(){
		if (instance != null){
			Destroy(this);
		}
		else{
			instance = this;
		
			for (int i = 0; i < otherScenes.Length; i++){
				if (SceneManager.GetActiveScene().name != otherScenes[i]){
					SceneManager.LoadScene(otherScenes[i], LoadSceneMode.Additive);
				}
			}
			Instantiate(effectBankPrefab);
		}
	}
示例#2
0
 private void OnEnable()
 {
     controller = (SceneAutoLoader)target;
 }