enum Item
{
ID,
Name
};
var pItem : Item;
function Start ()
{/*
Item apple = new Item();
apple.ID = 1;
apple.Name = "Apple";*/
var apple;
pItem.ID = 1;
pItem.Name = "Apple";
}
Editor tells me that the fields are read only, why is that?
↧