A new function

Add a func to update function of AnimationLayer to sense the collision
of bullets and objects.