예제 #1
0
        ////プレイヤーのアイテム情報をいれる変数(仮)
        //int[] a = { 0, 1, 2, 3, 4, 0 };

        // Use this for initialization
        void Start()
        {
            //ButtonInformationの変数を使うためにこのクラスの変数にいれる
            buttonInformation = GetComponent <ButtonInformation>();
            //PlayerItemInformationのイメージを使うので変数にいれる
            playerItemInformation = GetComponent <PlayerItemInformation>();
            //DiceRollInformationのイメージを使うので変数にいれる
            diceRollInformation = GetComponent <DiceRollInformation>();

            //配列にイメージを入れるところの情報を写す
            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;
        }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     //ButtonInformationの変数を使うためにこのクラスの変数にいれる
     buttonInformation = GetComponent <ButtonInformation>();
     //PlayerItemInformationのイメージを使うので変数にいれる
     playerItemInformation = GetComponent <PlayerItemInformation>();
     //DiceRollInformationのイメージを使うので変数にいれる
     diceRollInformation = GetComponent <DiceRollInformation>();
 }