예제 #1
0
 public MoveToPostionMobState(Vector2 position, Mob mob)
 {
     this.position = position;
     this.mob = mob;
 }
예제 #2
0
 public MoveToGameObjectMobState(GameObject gameObject, Mob mob)
 {
     this.gameObject = gameObject;
     this.mob = mob;
 }
예제 #3
0
 public IdleMobState(int lengthTime, Mob mob)
 {
     this.lengthTime = lengthTime;
 }
예제 #4
0
파일: Mob.cs 프로젝트: ZacJ/BroodLord
 public void AttackMob(Mob mob)
 {
     mob.TakeDamage((int)GetAttackDamage());
 }
예제 #5
0
파일: Toon.cs 프로젝트: ZacJ/BroodLord
 private void InteractWithObject(Mob mob)
 {
     interactionOffCooldown = DateTime.Now.AddMilliseconds(interactionCooldown); //<--- this allows the interaction to define the cooldown, ie chopping may take longer than attacking
     AttackMob(mob);
     //base.Interact(tree);
     //Console.WriteLine("Toon chopped");
        // tree.GotChopped(this);
 }