public void Awake() { scene_trans = this; Debug.Util.Log("[SceneTransition] Instance is get Ready"); DontDestroyOnLoad(this); resouce_manager = ResourceManager.CreateInstance(); Debug.Util.Log("--- Resource Loaded"); sound_controller = SoundController.CreateInstance(); sound_controller.setDataLoader(resouce_manager.Bgm, resouce_manager.Se); Debug.Util.Log("--- Sound Loaded : " + sound_controller.ToString()); next_scene = SceneDefinition.Menu; ChangeScene(next_scene); Debug.Util.Log("--- Scene Changed"); }
private void Start() { _transition = FindObjectOfType <SceneTransition>(); }