Method: ActorViewDefinition#setup
- Defined in:
- lib/gamebox/core/actor_view_definition.rb
#setup(&setup_block) ⇒ Object
Setup callback that is called when the view is constructed. The actor will be set before your setup block is executed.
setup do
resource_manager.load_image('something.png')
end
21 22 23 |
# File 'lib/gamebox/core/actor_view_definition.rb', line 21 def setup(&setup_block) @setup_block = setup_block end |