// TimelineActionData
TimelineActionData* TimelineActionData::create(int actionTag)
{
    TimelineActionData * ret = new TimelineActionData();
    if (ret && ret->init(actionTag))
    {
        CC_SAFE_AUTORELEASE(ret);
    }
    else
    {
        CC_SAFE_DELETE(ret);
    }
    return ret;
}
示例#2
0
// TimelineActionData
TimelineActionData* TimelineActionData::create(int actionTag)
{
    TimelineActionData * ret = new TimelineActionData();
    if (ret && ret->init(actionTag))
    {
        ret->autorelease();
    }
    else
    {
        CC_SAFE_DELETE(ret);
    }
    return ret;
}