Refactoring gameobjects and engineobjects