Fixed passing parameter and cganged GameObjectFactory to a singleton