using System; namespace Quantum { /// /// Using this system is optional. It is only used to aim the Debugger on the Unity side. /// It is also safe to copy logic from this system into your own systems, if it better suits your architecture. /// public class BotSDKDebuggerSystem : SystemMainThread { // Used for DEBUGGING purposes only public static Action OnVerifiedFrame; public static Action SetEntityDebugLabel; /// /// Use this to add an entity to the Debugger Window on Unity. /// You can provide a custom label of your preference if you want to identify your bots in a custom way. /// Use the separator '/' on the custom label if you want to create an Hierarchy on the Debugger Window. /// public static void AddToDebugger(EntityRef entity, string customLabel = default) { if (SetEntityDebugLabel != null) { SetEntityDebugLabel(entity, customLabel); } } public override void Update(Frame frame) { if (frame.IsVerified) { OnVerifiedFrame?.Invoke(frame); } } } }