public Monster(Game1 game, SkinnedModel skinnedModel, Unit unit) : base(game, unit, new MonsterModel(game, skinnedModel)) { monsterModel = ((MonsterModel)cModel); monsterUnit = ((MonsterUnit)unit); foreach (ModelMesh mesh in skinnedModel.Model.Meshes) foreach (SkinnedEffect effect in mesh.Effects) effect.EnableDefaultLighting(); }
public Monster(MyGame game, CModel model, Unit unit) : base(game, unit, model) { monsterModel = ((MonsterModel)cModel); monsterUnit = ((MonsterUnit)unit); }