Skip to content

Commit a56dc06

Browse files
committed
chore: Clean up debugPrint statements and formatting in UnityControllerWeb
1 parent 77ddd2f commit a56dc06

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

engines/unity/dart/lib/src/unity_controller_web.dart

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,8 @@ class UnityControllerWeb implements GameEngineController {
205205
'streamingAssetsUrl': '$buildUrl/StreamingAssets',
206206
'companyName':
207207
_getConfigValue<String>('companyName') ?? 'DefaultCompany',
208-
'productName':
209-
_getConfigValue<String>('productName') ?? 'Unity Game',
210-
'productVersion':
211-
_getConfigValue<String>('productVersion') ?? '1.0',
208+
'productName': _getConfigValue<String>('productName') ?? 'Unity Game',
209+
'productVersion': _getConfigValue<String>('productVersion') ?? '1.0',
212210
});
213211

214212
_emitProgress(0.3);
@@ -336,7 +334,8 @@ class UnityControllerWeb implements GameEngineController {
336334
_makeEnvelope(msg.target, msg.method, msg.data),
337335
]);
338336
} catch (e) {
339-
debugPrint('Failed to flush queued message ${msg.target}.${msg.method}: $e');
337+
debugPrint(
338+
'Failed to flush queued message ${msg.target}.${msg.method}: $e');
340339
}
341340
}
342341
}
@@ -352,8 +351,7 @@ class UnityControllerWeb implements GameEngineController {
352351
'Unity WebGL message queue full ($_maxQueueSize). Dropped oldest message.');
353352
}
354353
_messageQueue.add(_QueuedMessage(target, method, data));
355-
debugPrint(
356-
'Unity WebGL not ready. Message queued: $target.$method '
354+
debugPrint('Unity WebGL not ready. Message queued: $target.$method '
357355
'(${_messageQueue.length}/$_maxQueueSize)');
358356
return;
359357
}

0 commit comments

Comments
 (0)