我是新手, 在学习cpp-tests时, 在ActionManagerTest中跟踪发现,
static int sceneIdx = -1;
#define MAX_LAYER 6
第一个问题: sceneIdx 的值始始终为 -1, 但跟进到
Layer* createActionManagerLayer(int nIndex)
中 nIndex 的值却发生了变化, 为什么呢?
第二个问题: MAX_LAYER 的值明明赋的是 6, 但跟踪发现它的值却是 5, 为什么呢?
百思不得其解, 求各位大神指点, 抱拳感谢.
