Exemple #1
0
    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()
 {
     MA = this.GetComponent <Mino_ArrayAssistant>();
 }