public Weapon(Vector2 position, Texture2D texture, GameObject parent, Vector2 wrap) : base(position) // Weapon { this.parent = parent; this.wrap = wrap; this.addBehaviour("stuckBehaviour", new StuckBehavior(this)); Renderer = new TankRenderer(texture, this); }
public Tank(Vector2 position, Texture2D texture, float health, GameObject Gun) // Weapon : base(position) { addChild(Gun); this.health = health; Renderer = new TankRenderer(texture, this); msensor = new Sensor(); }