def onUpdate(actor, resources):