Add base component and gameobject code