}
@Override
protected void onAdd() {
AnimationHabit animation = addHabit(new AnimationHabit());
DynamicHabit dynamic =
addHabit(new DynamicHabit(new Rectangle(startPosition, new Vector(24, 48)).toPolygon(), 60));
addHabit(new GravityHabit(dynamic));
state = addHabit(new PlatformCharacterStateHabit(dynamic));
addHabit(new PatrolHabit(state));
addHabit(new PlatformCharacterAnimationHabit("soldier", 52, animation, state));
addHabit(new PlatformCharacterMovementHabit(state, dynamic, animation));
addHabit(new HurtHabit(this, dynamic.getPolygon()));
addHabit(new MetalHabit(dynamic));
}