summaryrefslogtreecommitdiff
path: root/input/input.go
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-08-13 14:18:13 +0200
committerewy <ewy0@protonmail.com>2026-08-13 14:18:13 +0200
commita5ce1401312b97fd447d00656b250571c4db4880 (patch)
tree48e7ce203080d7757072609333933aadc0ba2838 /input/input.go
parentbaa1ee4dee3cab84dce105a649e191e0d73c2cf4 (diff)
use ecs.IsGameObject instead of cast
Diffstat (limited to 'input/input.go')
-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
}