An implementation of behavior trees for Unity