예제 #1
0
 void actor_Collided(Actor collideactor)
 {
     if (!actor.IsDead && actor.Faction.GetRelationship(collideactor.Faction) != FactionRelationship.Allied)
     {
         actor.IssueMeleeAttack(actor.Position);
         actor.Die();
     }
 }
예제 #2
0
 void meleeTimer_Triggered(GameTime gameTime)
 {
     actor.IssueMeleeAttack(engagement);
 }