mirror of https://github.com/axmolengine/axmol.git
Standardize code
This commit is contained in:
parent
cba46082ce
commit
8ff088da53
|
@ -309,7 +309,8 @@ std::string TestPerformance::subtitle()
|
|||
}
|
||||
void TestPerformance::addArmature(cocos2d::extension::CCArmature *armature)
|
||||
{
|
||||
addChild(armature, armatureCount++);
|
||||
armatureCount++;
|
||||
addChild(armature, armatureCount);
|
||||
}
|
||||
void TestPerformance::update(float delta)
|
||||
{
|
||||
|
@ -479,7 +480,8 @@ std::string TestParticleDisplay::subtitle()
|
|||
}
|
||||
bool TestParticleDisplay::ccTouchBegan(CCTouch *pTouch, CCEvent *pEvent)
|
||||
{
|
||||
animationID = (++animationID) % armature->getAnimation()->getMovementCount();
|
||||
++animationID;
|
||||
animationID = animationID % armature->getAnimation()->getMovementCount();
|
||||
armature->getAnimation()->playByIndex(animationID);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue