本文整理汇总了C#中cocos2d.CCObject类的典型用法代码示例。如果您正苦于以下问题:C# CCObject类的具体用法?C# CCObject怎么用?C# CCObject使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CCObject类属于cocos2d命名空间,在下文中一共展示了CCObject类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: backCallback
public void backCallback(CCObject pSender)
{
CCScene s = new RenderTextureScene();
s.addChild(RenderTextureScene.backTestCase());
CCDirector.sharedDirector().replaceScene(s);
//s->release();
}
示例2: onPause
public void onPause(CCObject pSender)
{
if (CCDirector.sharedDirector().isPaused)
CCDirector.sharedDirector().resume();
else
CCDirector.sharedDirector().pause();
}
示例3: menuCallback
public void menuCallback(CCObject pSender)
{
CCMenuItemFont pItem = (CCMenuItemFont)pSender;
int nIndex = pItem.zOrder - BugsTestScene.kItemTagBasic;
CCScene pScene = CCScene.node();
CCLayer pLayer = null;
switch (nIndex)
{
case 0:
pLayer = new Bug350Layer();
pLayer.init();
break;
case 1:
pLayer = new Bug422Layer();
pLayer.init();
break;
case 2:
pLayer = new Bug458Layer();
pLayer.init();
break;
case 3:
pLayer = new Bug624Layer();
pLayer.init();
break;
case 4:
pLayer = new Bug886Layer();
pLayer.init();
break;
case 5:
pLayer = new Bug899Layer();
pLayer.init();
break;
case 6:
pLayer = new Bug914Layer();
pLayer.init();
break;
case 7:
pLayer = new Bug1159Layer();
pLayer.init();
break;
case 8:
pLayer = new Bug1174Layer();
pLayer.init();
break;
case 9:
pLayer = new CCDefaultCodeBug();
pLayer.init();
break;
case 10:
pLayer = new DispatcherTest();
pLayer.init();
break;
default:
break;
}
pScene.addChild(pLayer);
CCDirector.sharedDirector().replaceScene(pScene);
}
示例4: restartCallback
public void restartCallback(CCObject pSender)
{
CCScene s = new ActionManagerTestScene();
s.addChild(restartActionManagerAction());
CCDirector.sharedDirector().replaceScene(s);
}
示例5: menuCallback
public void menuCallback(CCObject pSender)
{
CCMenuItemFont pItem = (CCMenuItemFont)pSender;
int nIndex = pItem.zOrder - PerformanceTestScene.kItemTagBasic;
switch (nIndex)
{
case 0:
PerformanceNodeChildrenTest.runNodeChildrenTest();
break;
case 1:
PerformanceParticleTest.runParticleTest();
break;
case 2:
PerformanceSpriteTest.runSpriteTest();
break;
case 3:
PerformanceTextureTest.runTextureTest();
break;
case 4:
PerformanceTouchesTest.runTouchesTest();
break;
default:
break;
}
}
示例6: onPushScene
public void onPushScene(CCObject pSender)
{
CCScene scene = new SceneTestScene();
CCLayer pLayer = new SceneTestLayer2();
scene.addChild(pLayer, 0);
CCDirector.sharedDirector().pushScene(scene);
}
示例7: backCallback
public void backCallback(CCObject pSender)
{
CCScene s = new ProgressActionsTestScene();
s.addChild(ProgressActionsTestScene.backAction());
CCDirector.sharedDirector().replaceScene(s);
//s->release();
}
示例8: backCallback
public void backCallback(CCObject pSender)
{
CCScene s = new TextInputTestScene();
s.addChild(textinputTestScene.backTextInputTest());
CCDirector.sharedDirector().replaceScene(s);
//s->release();
}
示例9: restartCallback
public void restartCallback(CCObject pSender)
{
CCScene s = new TileMapTestScene();
s.addChild(TileMapTestScene.restartTileMapAction());
CCDirector.sharedDirector().replaceScene(s);
}
示例10: restartCallback
public void restartCallback(CCObject pSender)
{
CCScene s = new ParallaxTestScene();
s.addChild(ParallaxTestScene.restartParallaxAction());
CCDirector.sharedDirector().replaceScene(s);
}
示例11: restartCallback
public void restartCallback(CCObject pSender)
{
CCScene s = new CocosNodeTestScene();//CCScene.node();
s.addChild(CocosNodeTestScene.restartCocosNodeAction());
CCDirector.sharedDirector().replaceScene(s);
}
示例12: onReplaceScene
public void onReplaceScene(CCObject pSender)
{
CCScene pScene = new SceneTestScene();
CCLayer pLayer = new SceneTestLayer3();
pScene.addChild(pLayer, 0);
CCDirector.sharedDirector().replaceScene(pScene);
}
示例13: restartCallback
public void restartCallback(CCObject pSender)
{
CCScene s = new SpriteTestScene();
s.addChild(SpriteTestScene.restartSpriteTestAction());
CCDirector.sharedDirector().replaceScene(s);
}
示例14: nextCallback
public void nextCallback(CCObject pSender)
{
CCScene s = new EaseActionsTestScene();
s.addChild(EaseTest.nextEaseAction());
CCDirector.sharedDirector().replaceScene(s);
;
}
示例15: nextCallback
public virtual void nextCallback(CCObject pSender)
{
m_nCurCase++;
m_nCurCase = m_nCurCase % m_nMaxCases;
showCurrentTest();
}