タイプ CubeDescriptor の変数を配列に追加しようとすると、「エラー: 配列初期化子は変数またはフィールド初期化子でのみ使用できます」というエラーが表示されます。代わりに新しい式を使用してみてください。このフォーラムで他のトピックを見てきましたが、ここで何が間違っているのかわかりません。
public class CubeDescriptor
{
public EcubeType CubeType;
public Texture2D Texture;
public bool isMineable;
}
public static CubeDescriptor[] TypeTable = {
{EcubeType.Air, null, false},
{EcubeType.Grass, grass, false},
{EcubeType.Stone, stone, true}
};