change time of initialization

This commit is contained in:
Dhilan007 2014-01-06 18:26:14 +08:00
parent 8e3eb8580f
commit 4806ef5c6f
2 changed files with 10 additions and 4 deletions

View File

@ -749,14 +749,19 @@ std::string RemoveListenerAfterAddingTest::subtitle() const
// //
//DirectorEventTest //DirectorEventTest
// //
DirectorEventTest::DirectorEventTest()
:_count1(0)
,_count2(0)
,_count3(0)
,_count4(0)
{
}
void DirectorEventTest::onEnter() void DirectorEventTest::onEnter()
{ {
EventDispatcherTestDemo::onEnter(); EventDispatcherTestDemo::onEnter();
_count1 = 0;
_count2 = 0;
_count3 = 0;
_count4 = 0;
Size s = Director::getInstance()->getWinSize(); Size s = Director::getInstance()->getWinSize();
_label1 = Label::createWithTTF("Update: 0", "fonts/arial.ttf", 20); _label1 = Label::createWithTTF("Update: 0", "fonts/arial.ttf", 20);

View File

@ -117,6 +117,7 @@ class DirectorEventTest : public EventDispatcherTestDemo
{ {
public: public:
CREATE_FUNC(DirectorEventTest); CREATE_FUNC(DirectorEventTest);
DirectorEventTest();
virtual void onEnter() override; virtual void onEnter() override;
virtual void onExit() override; virtual void onExit() override;