Implemented the pure virtual function for the gameObject.