When trying to add variables of type CubeDescriptor to an array, I get the error Error: Array initializers can only be used in a variable or field initializer. Try using a new expression instead. I've looked at some other topics on this forum but I can't seem to figure out what I'm doing wrong here.
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}
};