public static void FillWithMetadata(CloseCombatEnemy enemy, CloseCombatEnemyMetadata metadata, ContentManager contentManager) { enemy.Acceleration = metadata.Acceleration; enemy.AttackDamage = metadata.AttackDamage; enemy.AttackRange = metadata.AttackRange; enemy.MaxVelocity = metadata.MaxVelocity; ObstacleGameObject.FillWithMetadata(enemy, metadata, contentManager); enemy.AddScript(new CloseCombatEnemyAttackScript(enemy)); }
public CloseCombatEnemyAttackScript(CloseCombatEnemy combatant) { Combatant = combatant; }