yes
This commit is contained in:
parent
78dddb4f6c
commit
6bc7c07444
1 changed files with 1 additions and 1 deletions
|
@ -57,8 +57,8 @@ func (g *Game) Update() error {
|
||||||
|
|
||||||
func (g *Game) registerComponent(c interface{}, path []interface{}) error {
|
func (g *Game) registerComponent(c interface{}, path []interface{}) error {
|
||||||
// register in g.dex
|
// register in g.dex
|
||||||
|
ct := reflect.TypeOf(c)
|
||||||
for _, b := range Behaviours {
|
for _, b := range Behaviours {
|
||||||
ct := reflect.TypeOf(c)
|
|
||||||
if !ct.Implements(b) {
|
if !ct.Implements(b) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue