摘要: 在实际情况中,我们有时候需要根据不同的游戏场景来决定wp的后退“场景”。所以,我们可以先建一个常量类,里面放上一个常量,用来标记不同页面的代表值,例如:class GameMain { public static int CurrentScreen; }然后再在不同场景的类的构造函数给之赋值class ChooseScreen : CCScene { private static ChooseScreen _current; public static ChooseScreen Current { ... 阅读全文
posted @ 2013-02-18 14:34 Dieaz5 阅读(240) 评论(0) 推荐(0)