public ControlPanel(Game game, Vector2 position, Texture2D texture) { maxActionDistance = 200; score = 0; this.game = game; console = new HackingConsole(game); this.texture = texture; this.position = new Vector2(position.X, position.Y - texture.Bounds.Height); }
public Door(Game game, String animationPath, Vector2 position) : base(game) { //Poprawa wspolrzednych this.position = position + new Vector2(25, 11); this.animationPath = "Devices/" + animationPath; maxActionDistance = 200; doorState = state.closed; prevDoorState = doorState; isClosed = true; isUnlocked = false; hackingConsole = new HackingConsole(this.Game); }