private void playerDeath(BoardAction a) { BombermanVisualObj player = currentGameObjects.Find(x => x.ID == a.targetID); (player as VisualPlayer).death(); currentGameObjects.Remove(player); }
private void explodeBomb(BoardAction a) { BombermanVisualObj bomb = currentGameObjects.Find(x => x.ID == a.targetID); (bomb as VisualBomb).explodeBomb(); currentGameObjects.Remove(bomb); }