PS Vita版ペルソナ4 ザゴールデンが発売された日さらに進化したジュブナイルRPGの傑作 斬新な手法のアニメ版も驚き今日は何の日

過去のこの日、ゲーム業界に何があったのかを振り返る。2012年(平成24年)6月14日は、プレイステーションVita用ソフト『ペルソナ4 ザ・ゴールデン』が発売された日。

from ゲームの最新情報やレビュー・発売予定も配信 – ファミ通.com https://ift.tt/DVQXHy2
via IFTTT

c# foreach文

<foreach文>

複数の要素をもつものを順番に取り出してくれるループ文

foreach(仮の入れ物 in 取り出し元)

{

}

————————–

using System.Collections;

using System.Collections.Generic;

using UnityEngine;

public class test : MonoBehaviour

{

    void Start()

    {

        int[] a = {1,2,3,4,5};

        foreach (int i in a)

        {

            Debug.Log(i);

        }

    }

    // Update is called once per frame

    void Update()

    {

    }

}

Unity C# 配列 for文

using System.Collections;

using System.Collections.Generic;

using UnityEngine;

public class test : MonoBehaviour

{

    void Start()

    {

    int[,,] a = new int[3,4,2];

    for(int i = 0; i < a.GetLength(0); ++i)

    {

        for(int j = 0; j < a.GetLength(1); ++j)

        {

            for(int k = 0; k < a.GetLength(2); ++k)

            {

                a[i,j,k] = i + j + k;//代入

                Debug.Log(“a[“+ i + “,” + j + “,” + k + “]に代入する”);

            }

        }

    }

    }

    // Update is called once per frame

    void Update()

    {

    }

}

C# Unity 多次元配列

using System.Collections;

using System.Collections.Generic;

using UnityEngine;

public class test : MonoBehaviour

{

    void Start()

    {

    int[,,] a = new int[3,4,2];

    Debug.Log(a.Length);

    Debug.Log(a.GetLength(1));  

    }

    // Update is called once per frame

    void Update()

    {

    }

}