summaryrefslogtreecommitdiff
path: root/input
diff options
context:
space:
mode:
Diffstat (limited to 'input')
-rw-r--r--input/input.go4
1 files changed, 2 insertions, 2 deletions
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
}