我写了个GameObject 继承CCSprite实现 update(float dt),然后Monster继承GameObject实现update(float dt).为何,我不管在GameObject实例化时候执行scheduleUpdateWithPriority还是Monster实例化时候执行scheduleUpdateWithPriority都只是GameObject中的Update执行的?
我想最后继承类Monster中update能运行,并且父类GameObject中的update也能执行。
就是不懂为何virtual update(float dt)已经都在GameObject和Monster中重写了,还是不行,只提示GameObject中的Update运行。