TransitionFunction changed

Transition function can be accessed through game object.