Skip to content

Commit

Permalink
camera.On (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiwei authored Nov 28, 2021
1 parent 8a1c85c commit 94c3436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion camera.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (c *Camera) screenToWorld(point *math32.Vector2) *math32.Vector2 {
}

func (c *Camera) On(obj interface{}) {
switch v := c.on_.(type) {
switch v := obj.(type) {
case string:
sp := c.g.findSprite(v)
if sp == nil {
Expand Down

0 comments on commit 94c3436

Please sign in to comment.