private void GameAttack(Direction direction) { if (gameIsTurnBased) { game.Attack(direction, random); } else // Only the player attacks since other movement occurs with timer tick. { game.PlayerAttack(direction, random); } UpdateCharacters(); }