public void Draw(SpriteBatch batch) { if (!Globals.displayPower) { return; } batch.Draw(powerTexture, position, null, Color.White, 0f, powerTextureOrigin, 1f, SpriteEffects.None, 1f); if (connectingWire && Input.mouseCell != cell) // Connecting of the wire { DebugTextures.DrawDebugLine(batch, position, Input.mousePositionGame, Color.Red, 4); } }
public void Draw(SpriteBatch batch) { DebugTextures.DrawDebugLine(batch, input.position, output.position, color, 3); }