天天看點

Cocos2D v2.0至v3.x簡潔轉換指南(四)

實作通用的update方法

在cocos2d 2.x你需要2個步驟去實作在每幀調用update方法:

在cocos2d 3.x 你再也不需要調用scheduleupdate了,你隻需要在ccnode子類中重載以下方法: