private void Awake() { Mino_Con = this.GetComponent <Mino_Controller>(); Mino_create = this.GetComponent <Mino_Create>(); audio[0].volume = ConfigScene_Manager.BGMVolume; for (int i = 1; i < audio.Length; i++) { audio[i].volume = ConfigScene_Manager.SEVolume; } ScoreDisplay_Canvas.SetActive(false); }
/// <summary> /// ゲームオーバーした後にスコアを表示する処理 /// </summary> /// <returns></returns> IEnumerator Score_Display() { int ChildCount = INITIAL_VALUE; ScoreDisplay_Canvas.SetActive(true); yield return(new WaitForSeconds(DISPLAY_INTERVALS)); ScoreDisplay_Canvas.transform.GetChild(ChildCount).gameObject.SetActive(true); ChildCount++; yield return(new WaitForSeconds(DISPLAY_INTERVALS)); ScoreDisplay_Canvas.transform.GetChild(ChildCount).gameObject.SetActive(true); UnityEngine.EventSystems.EventSystem.current.SetSelectedGameObject(ScoreDisplay_Canvas.transform.GetChild(ChildCount).gameObject); ChildCount++; ScoreDisplay_Canvas.transform.GetChild(ChildCount).gameObject.SetActive(true); }