Add SendMessage method to GameObject class.