Solve the environment conflict with Cocos.
Merge pull request #9486 from 2youyouo2/v3_EventFrame

fixed frame event
Merge pull request #9458 from natural-law/v3

Solve the environment conflict with Cocos.