//adds a visual to this object void addGfx(int itemID,string imageFile) { gfx = new EnemyAnimation(imageFile,1,1); AddChild (gfx); SetOrigin (width/2,0); gfx.SetOrigin (width/2, 0); SetItemType (itemID); alpha = 0; }
//adds a visual to this object void addGfx(int itemID, string imageFile) { gfx = new EnemyAnimation(imageFile, 1, 1); AddChild(gfx); SetOrigin(width / 2, 0); gfx.SetOrigin(width / 2, 0); SetItemType(itemID); alpha = 0; }