예제 #1
0
 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;         
 }
예제 #2
0
 protected Enemy() 
 {
     this.enemyHpBar = new UIHPbar(this, new Vector2(this.Position.X + 50, this.Position.Y), 7, 1, 1);
 }