把大概率事件放在前面去判断,比如 cocos 的事件:
if event.name == 'moved' then elseif event.name == 'began' then elseif event.name == 'ended' then end