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()
{
}
}