platform class inherits from gameobject.