change the privacy of reg/unreg function of GameObject