本文整理汇总了C#中cocos2d.CCObject类的典型用法代码示例。如果您正苦于以下问题:C# CCObject类的具体用法?C# CCObject怎么用?C# CCObject使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CCObject类属于cocos2d命名空间,在下文中一共展示了CCObject类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: backCallback
public void backCallback(CCObject pSender)
{
CCScene s = new RenderTextureScene();
s.addChild(RenderTextureScene.backTestCase());
CCDirector.sharedDirector().replaceScene(s);
//s->release();
}
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:7,代码来源:RenderTextureTestDemo.cs
示例2: onPause
public void onPause(CCObject pSender)
{
if (CCDirector.sharedDirector().isPaused)
CCDirector.sharedDirector().resume();
else
CCDirector.sharedDirector().pause();
}
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:7,代码来源:IntervalLayer.cs
示例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);
}
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:60,代码来源:BugsTestMainLayer.cs
示例4: restartCallback
public void restartCallback(CCObject pSender)
{
CCScene s = new ActionManagerTestScene();
s.addChild(restartActionManagerAction());
CCDirector.sharedDirector().replaceScene(s);
}
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:7,代码来源:ActionManagerTest.cs
示例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;
}
}
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:26,代码来源:PerformanceMainLayer.cs
示例6: onPushScene
public void onPushScene(CCObject pSender)
{
CCScene scene = new SceneTestScene();
CCLayer pLayer = new SceneTestLayer2();
scene.addChild(pLayer, 0);
CCDirector.sharedDirector().pushScene(scene);
}
开发者ID:ChowZenki,项目名称:cocos2d-x-for-xna,代码行数:7,代码来源:SceneTestLayer1.cs
示例7: backCallback
public void backCallback(CCObject pSender)
{
CCScene s = new ProgressActionsTestScene();
s.addChild(ProgressActionsTestScene.backAction());
CCDirector.sharedDirector().replaceScene(s);
//s->release();
}
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:7,代码来源:SpriteDemo.cs
示例8: backCallback
public void backCallback(CCObject pSender)
{
CCScene s = new TextInputTestScene();
s.addChild(textinputTestScene.backTextInputTest());
CCDirector.sharedDirector().replaceScene(s);
//s->release();
}
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:7,代码来源:TextInputTest.cs
示例9: restartCallback
public void restartCallback(CCObject pSender)
{
CCScene s = new TileMapTestScene();
s.addChild(TileMapTestScene.restartTileMapAction());
CCDirector.sharedDirector().replaceScene(s);
}
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:7,代码来源:TileDemo.cs
示例10: restartCallback
public void restartCallback(CCObject pSender)
{
CCScene s = new ParallaxTestScene();
s.addChild(ParallaxTestScene.restartParallaxAction());
CCDirector.sharedDirector().replaceScene(s);
}
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:7,代码来源:ParallaxDemo.cs
示例11: restartCallback
public void restartCallback(CCObject pSender)
{
CCScene s = new CocosNodeTestScene();//CCScene.node();
s.addChild(CocosNodeTestScene.restartCocosNodeAction());
CCDirector.sharedDirector().replaceScene(s);
}
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:7,代码来源:TestCocosNodeDemo.cs
示例12: onReplaceScene
public void onReplaceScene(CCObject pSender)
{
CCScene pScene = new SceneTestScene();
CCLayer pLayer = new SceneTestLayer3();
pScene.addChild(pLayer, 0);
CCDirector.sharedDirector().replaceScene(pScene);
}
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:7,代码来源:SceneTestLayer2.cs
示例13: restartCallback
public void restartCallback(CCObject pSender)
{
CCScene s = new SpriteTestScene();
s.addChild(SpriteTestScene.restartSpriteTestAction());
CCDirector.sharedDirector().replaceScene(s);
}
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:7,代码来源:SpriteTestDemo.cs
示例14: nextCallback
public void nextCallback(CCObject pSender)
{
CCScene s = new EaseActionsTestScene();
s.addChild(EaseTest.nextEaseAction());
CCDirector.sharedDirector().replaceScene(s);
;
}
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:7,代码来源:EaseActionsTest.cs
示例15: nextCallback
public virtual void nextCallback(CCObject pSender)
{
m_nCurCase++;
m_nCurCase = m_nCurCase % m_nMaxCases;
showCurrentTest();
}
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:7,代码来源:PerformBasicLayer.cs
示例16: MainMenuCallback
public virtual void MainMenuCallback(CCObject pSender)
{
CCScene pScene = CCScene.node();
CCLayer pLayer = new TestController();
pScene.addChild(pLayer);
CCDirector.sharedDirector().replaceScene(pScene);
}
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:8,代码来源:testBasic.cs
示例17: btnSettingClickHandle
public void btnSettingClickHandle(CCObject sender)
{
//CCScene _wolfGameSettingScene = new WolfGameSettingScene();
//CCDirector.sharedDirector().replaceScene(_wolfGameSettingScene);
CCScene _wolfGameSettingScene = new WolfGameSettingScene();
CCScene transScene = CCTransitionZoomFlipX.transitionWithDuration(12f, _wolfGameSettingScene, tOrientation.kOrientationLeftOver);//场景切换特效
CCDirector.sharedDirector().pushScene(transScene);
}
开发者ID:GhostSoar,项目名称:LearningCocos2d_xForXNA,代码行数:8,代码来源:WolfMenuLayer.cs
示例18: backCallback
public virtual void backCallback(CCObject pSender)
{
m_nCurCase--;
if (m_nCurCase < 0)
m_nCurCase += m_nMaxCases;
showCurrentTest();
}
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:8,代码来源:PerformBasicLayer.cs
示例19: onReplaceSceneTran
public void onReplaceSceneTran(CCObject pSender)
{
CCScene pScene = new SceneTestScene();
CCLayer pLayer = new SceneTestLayer3();
pScene.addChild(pLayer, 0);
CCDirector.sharedDirector().replaceScene(pScene);
//(CCTransitionFlipX.transitionWithDuration(2, pScene));
}
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:8,代码来源:SceneTestLayer2.cs
示例20: restartCallback
public void restartCallback(CCObject pSender)
{
CCScene pScene = new SchedulerTestScene();
CCLayer pLayer = SchedulerTestScene.restartSchedulerTest();
pScene.addChild(pLayer);
CCDirector.sharedDirector().replaceScene(pScene);
}
开发者ID:Ratel13,项目名称:cocos2d-x-for-xna,代码行数:8,代码来源:SchedulerTestLayer.cs
注:本文中的cocos2d.CCObject类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论