Added RC_DEBUG consition for Unity

This commit is contained in:
Pascal Serrarens 2025-06-05 11:44:58 +02:00
parent f3b863692b
commit 1fb2ad6f7a
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#if UNITY_5_3_OR_NEWER
#if UNITY_5_3_OR_NEWER && RC_DEBUG
using System.IO;
using System.Text;
using UnityEngine;

View File

@ -13,7 +13,9 @@ namespace RoboidControl.Unity {
//public Queue<RoboidControl.Thing> thingQueue = new();
protected virtual void Awake() {
#if RC_DEBUG
Console.SetOut(new UnityLogWriter());
#endif
this.coreParticipant = new RoboidControl.SiteServer(port);
}