Exemplo n.º 1
0
EaseBackOut* EaseBackOut::create(ActionInterval* action)
{
    EaseBackOut *ret = new (std::nothrow) EaseBackOut();
    if (ret && ret->initWithAction(action))
    {
        ret->autorelease();
        return ret;
    }

    delete ret;
    return nullptr;
}
Exemplo n.º 2
0
EaseBackOut* EaseBackOut::create(ActionInterval* action)
{
    EaseBackOut *ret = new (std::nothrow) EaseBackOut();
    if (ret)
    {
        if (ret->initWithAction(action))
        {
            ret->autorelease();
        }
        else
        {
            CC_SAFE_RELEASE_NULL(ret);
        }
    }

    return ret;
}
Exemplo n.º 3
0
EaseBackOut* EaseBackOut::create(ActionInterval* pAction)
{
    EaseBackOut *pRet = new EaseBackOut();
    if (pRet)
    {
        if (pRet->initWithAction(pAction))
        {
            pRet->autorelease();
        }
        else
        {
            CC_SAFE_RELEASE_NULL(pRet);
        }
    }

    return pRet;
}