private void Awake() { //コンポーネントの取得 GM = this.GetComponent <Game_Manager>(); MA = this.GetComponent <Mino_ArrayAssistant>(); Mino_operation = this.GetComponent <Mino_KeyInput>(); Mino_create = this.GetComponent <Mino_Create>(); Mino_move = this.GetComponent <Mino_Move>(); Mino_moveghost = this.GetComponent <Mino_MoveGhost>(); Mino_rotation = this.GetComponent <Mino_Rotation>(); Mino_hold = this.GetComponent <Mino_Hold>(); Dbgcode = this.GetComponent <Mino_DebugCode>(); audioSource = this.GetComponent <AudioSource>(); //初期設定 Mino = new MINOs_Array(0, new int[MINOSIZE, MINOSIZE], new GameObject[4], new GameObject[4]); MINO = (GameObject)Resources.Load("Prefabs/MINO"); MINOs = Instantiate(MINO, MINO.transform.position, Quaternion.identity); GHOSTMINOs = Instantiate(MINO, MINO.transform.position, Quaternion.identity); GHOSTMINOs.name = ("GHOSTMINOs"); NowColorObj = (GameObject)Resources.Load("Prefabs/MINO_I"); //UseMinoGhost配列の初期設定 for (int i = 0; i < Mino.UseMinoGhost.Length; i++) { Mino.UseMinoGhost[i] = Instantiate(NowColorObj, MINOs.transform.position, Quaternion.identity, GHOSTMINOs.transform); } }
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); }