bool MyTouchEvent2::init()
{
if (!Layer::init())
{
return false;
}
Size visibleSize = Director::getInstance()->getVisibleSize();
Vec2 origin = Director::getInstance()->getVisibleOrigin();
/创建3个文本标签
Label * text1 = Label::create("", "Arial", 24);
text1->setPosition(Point(400, 280));
this->addChild(text1,1,1);
Label * text2 = Label::create("", "Arial", 24
{
if (!Layer::init())
{
return false;
}
Size visibleSize = Director::getInstance()->getVisibleSize();
Vec2 origin = Director::getInstance()->getVisibleOrigin();
/创建3个文本标签
Label * text1 = Label::create("", "Arial", 24);
text1->setPosition(Point(400, 280));
this->addChild(text1,1,1);
Label * text2 = Label::create("", "Arial", 24