Added RC_DEBUG consition for Unity
This commit is contained in:
parent
f3b863692b
commit
1fb2ad6f7a
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user