From a5ce1401312b97fd447d00656b250571c4db4880 Mon Sep 17 00:00:00 2001 From: ewy Date: Thu, 13 Aug 2026 14:18:13 +0200 Subject: use ecs.IsGameObject instead of cast --- input/input.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'input') diff --git a/input/input.go b/input/input.go index 94f4e56..48eeb02 100644 --- a/input/input.go +++ b/input/input.go @@ -19,8 +19,8 @@ func ProcessTree(root any, ev Event) { if inp, ok := root.(Handler); ok { inp.Process(ev) } - if g, ok := root.(*ecs.GameObject); ok { - for _, c := range g.Children { + if g, ok := root.(ecs.IsGameObject); ok { + for _, c := range g.GO().Children { if c == nil { continue } -- cgit v1.3.1