CCTransitionCrossFade* CCTransitionCrossFade::transitionWithDuration(ccTime d, CCScene* s)
{
    CCTransitionCrossFade* Transition = new CCTransitionCrossFade();
    Transition->initWithDuration(d, s);
    Transition->autorelease();

    return Transition;
}
Exemple #2
0
CCTransitionCrossFade* CCTransitionCrossFade::create(float t, CAWindow* scene)
{
    CCTransitionCrossFade* pScene = new CCTransitionCrossFade();
    if(pScene && pScene->initWithDuration(t, scene))
    {
        pScene->autorelease();
        return pScene;
    }
    CC_SAFE_DELETE(pScene);
    return NULL;
}