У меня небольшое сомнение в CCAnimation. Есть ли разница между code1 и code 2 в производительности?
code1:
id Action1 = [CCAnimate actionWithAnimation: numberAnimation restoreOriginalFrame:NO];
id Action2 = [CCFadeOut actionWithDuration:0.1f];
id Action3 = [CCCallFunc actionWithTarget:self selector:@selector(Method1:)];
[player runAction: [CCSequence actions:Action1, Action2, Action3, nil]];
code2:
[player runAction: [CCSequence actions: [CCAnimate actionWithAnimation: numberAnimation restoreOriginalFrame:NO], [CCFadeOut actionWithDuration:0.1f], [CCCallFunc actionWithTarget:self selector:@selector(enemyGunDrawMethod:)], nil ] ];`
Какой способ лучше написать, и объясните, пожалуйста, почему?
Спасибо.