コード例 #1
0
ファイル: CloseCombatEnemy.cs プロジェクト: sergik/Cardio
        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));
        }
コード例 #2
0
 public CloseCombatEnemyAttackScript(CloseCombatEnemy combatant)
 {
     Combatant = combatant;
 }