private SpikeBlock CreateSpikeBlock(XElement node) { SpikeBlock newSpikeBlock = new SpikeBlock(); newSpikeBlock.WorldPosition = new Vector2((float)node.Attribute("x"), (float)node.Attribute("y")) + (new Vector2(Definitions.Grid_Cell_Pixel_Size) / 2.0f); return(newSpikeBlock); }
private SpikeBlock CreateSpikeBlock(XElement node) { SpikeBlock newSpikeBlock = new SpikeBlock(); newSpikeBlock.WorldPosition = new Vector2((float)node.Attribute("x"), (float)node.Attribute("y")) + (new Vector2(Definitions.Grid_Cell_Pixel_Size) / 2.0f); return newSpikeBlock; }