public Room(TheGame game) : base(game) { _bullet = new Bullet(Game, this); _hero = new Hero(Game, this, _bullet); _hero.OnChestHappened += OnHeroChestHappened; _hero.OnLifeFired += OnHeroLifeFired; _hero.OnRoomFinished += OnHeroRoomFinished; _biomass = new Biomass(Game, this); _wall = new Wall(Game, this); _devil1 = new Devil(Game, this, _hero, DevilNumberEnum.First); _devil2 = new Devil(Game, this, _hero, DevilNumberEnum.Second); _devil1.OnLifeFired += OnHeroLifeFired; _devil2.OnLifeFired += OnHeroLifeFired; _hero.OnReportPostion += OnCheckCollision; Reset(); }
public Devil(TheGame game, Room room, Hero hero, DevilNumberEnum number) : base(game, room, 3) { Number = number; _hero = hero; }