Method: Actor#on_collision_do
- Defined in:
- lib/fantasy/actor.rb
#on_collision_do(other) ⇒ Object
This method is triggered when Actor collides with another Actor
501 502 503 |
# File 'lib/fantasy/actor.rb', line 501 def on_collision_do(other) instance_exec(other, &@on_collision_callback) unless @on_collision_callback.nil? end |