Exemple #1
0
    // Use this for initialization
    void Start()
    {
        //ButtonInformationのボタンを使うので変数にいれる
        buttonInformation = GetComponent <ButtonInformation>();
        //PlayerItemInformationのイメージを使うので変数にいれる
        playerItemInformation = GetComponent <PlayerItemInformation>();

        //配列にイメージを入れるところの情報を写す
        PlayerHaveItem[0] = playerItemInformation.PlayerHaveItemA;
        PlayerHaveItem[1] = playerItemInformation.PlayerHaveItemB;
        PlayerHaveItem[2] = playerItemInformation.PlayerHaveItemC;
        PlayerHaveItem[3] = playerItemInformation.PlayerHaveItemD;
        PlayerHaveItem[4] = playerItemInformation.PlayerHaveItemE;
        PlayerHaveItem[5] = playerItemInformation.PlayerHaveItemF;

        //配列にボタンの情報を写す
        ItemSlot[0] = buttonInformation.ItemSlotA;
        ItemSlot[1] = buttonInformation.ItemSlotB;
        ItemSlot[2] = buttonInformation.ItemSlotC;
        ItemSlot[3] = buttonInformation.ItemSlotD;
        ItemSlot[4] = buttonInformation.ItemSlotE;
        ItemSlot[5] = buttonInformation.ItemSlotF;

        //プレイヤーの情報取得
        playerMove = FindObjectOfType <Saitou.Player.PlayerMove>();
    }
        // Use this for initialization
        void Start()
        {
            //ButtonInformationの変数を使うためにこのクラスの変数にいれる
            buttonInformation = GetComponent <ButtonInformation>();
            //PlayerItemInformationのイメージを使うので変数にいれる
            playerItemInformation = GetComponent <PlayerItemInformation>();
            //DiceRollInformationのイメージを使うので変数にいれる
            diceRollInformation = GetComponent <DiceRollInformation>();

            playerMove = FindObjectOfType <Saitou.Player.PlayerMove>();
        }