From 425cd8d6f91cf271986e2e3ee3c0138412330387 Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Tue, 4 Feb 2025 17:15:00 +0100 Subject: [PATCH] Unity thing are starting to work --- Thing.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Thing.cs b/Thing.cs index a51e7c1..d275014 100644 --- a/Thing.cs +++ b/Thing.cs @@ -148,6 +148,8 @@ namespace Passer.Control.Core { Thing.Add(this); } + public virtual void CreateComponent() {} + #endregion Init #region Update @@ -193,7 +195,6 @@ namespace Passer.Control.Core { public static event ThingHandler OnNewThing; public static void Add(Thing thing, bool invokeEvent = true) { - //UnityEngine.Debug.Log("added thing"); Console.WriteLine("added thing"); Thing foundThing = Get(thing.networkId, thing.id); @@ -203,7 +204,7 @@ namespace Passer.Control.Core { allThings.Add(thing); if (invokeEvent) OnNewThing?.Invoke(thing); - //UnityEngine.Debug.Log($"Add thing [{thing.networkId}/{thing.id}] {thing.name}"); + Console.Write($"Add thing [{thing.networkId}/{thing.id}] {thing.name}"); } }