예제 #1
0
        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);
            }
        }
예제 #2
0
 public void Draw(SpriteBatch batch)
 {
     DebugTextures.DrawDebugLine(batch, input.position, output.position, color, 3);
 }