Exemplo n.º 1
0
Spawn *Spawn::createWithTwoActions(FiniteTimeAction *action1, FiniteTimeAction *action2)
{
    Spawn *spawn = new(std::nothrow) Spawn();
    spawn->initWithTwoActions(action1, action2);

    return spawn;
}
Exemplo n.º 2
0
Spawn* Spawn::createWithTwoActions(FiniteTimeAction *pAction1, FiniteTimeAction *pAction2)
{
    Spawn *pSpawn = new Spawn();
    pSpawn->initWithTwoActions(pAction1, pAction2);
    pSpawn->autorelease();

    return pSpawn;
}