//EntityColor public void EntityColor(byte r,byte g,byte b, byte layer) { col = new Color(255,r,g,b); EntityColor(col); } public void EntityColor(Color col) { node.SetMaterialFlag(EmfLighting, true); icolor = col; node.GetMaterial(layer).DiffuseColor = icolor; node.GetMaterial(layer).AmbientColor = icolor; }
Still fairly new to this c# malarky,
In this i am creating a new struct of col to transfer to a ready created, similar instance stored in my functions parent class called icolor.
Do i need to delete "col" after i transfer it to the color function?