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); } }
private void OnEnable() { controller = (SceneAutoLoader)target; }