void GafFeatures::playpause(cocos2d::Ref*)
{
    if (!m_objects || !m_objects->count())
    {
        return;
    }

    GAFAnimatedObject *object = (GAFAnimatedObject *)m_objects->getObjectAtIndex(0);

    if (object->isAnimationRunning())
    {
        object->pauseAnimation();
    }
    else
    {
        object->resumeAnimation();
    }
}
void GafFeatures::playpause()
{
	if (!_objects || !_objects->count())
	{
		return;
	}
	GAFAnimatedObject *object = (GAFAnimatedObject *)_objects->objectAtIndex(0);
	

	if (object->isAnimationRunning())
	{
		object->pause();
	}
	else
	{
		object->resume();
	}

}