public Goliath() { this.goliathEventLog = new UIEventLog(this); this.goliathHpBar = new UIHPbar(this, new Vector2(2, 2), 20, 3, 1); this.AnimationAssetCurrentFrame = 1; this.reverseAnimation = false; this.currentState = State.IdleForward; this.AttackSpeedDelay = 0.3; this.AttackDamage = 20; this.IntervalBetweenAttack = TimeSpan.FromSeconds(AttackSpeedDelay + 0.1); this.isAttackingNow = false; }
protected Enemy() { this.enemyHpBar = new UIHPbar(this, new Vector2(this.Position.X + 50, this.Position.Y), 7, 1, 1); }