/// <summary> /// 初期化 /// </summary> void IScene.Initialize() { AudioManager.Instance.FadeIn((int)SceneController.Instance.FadeTime); AudioManager.Instance.Play(AudioManager.SE.GameStart); AudioManager.Instance.Play(AudioManager.BGM.Game); StartTimer = 90; StatusManager.ClearMinitue = 0; StatusManager.ClearSecond = 0; StatusManager.Start_Camera_End = false; StatusManager.Start_Camera_Skip = false; StatusManager.Player_Inoperable_Time = 0; BulletManager.Instance.Initialize(); EnemyManager.Instance.MyStart(); if (player == null) { player = UnityEngine.GameObject.FindObjectOfType <Player>(); } player.Initialized(); Debug.Log("name=" + player.gameObject); if (Timer.Instance == null) { Timer.Instance = UnityEngine.GameObject.FindObjectOfType <Timer>(); } Timer.Instance.MyStart(); if (mainCamera == null) { mainCamera = UnityEngine.GameObject.FindObjectOfType <MainCamera>(); } mainCamera.Initialize(); //追加 if (cameraParent == null) { cameraParent = UnityEngine.GameObject.FindObjectOfType <CameraParent>(); } cameraParent.Initialize(); if (startEvent == null) { startEvent = UnityEngine.GameObject.FindObjectOfType <StartEvent>(); } startEvent.Initialize(); if (readyGo == null) { readyGo = UnityEngine.GameObject.FindObjectOfType <ReadyGo>(); } readyGo.Initialize(); }