mirror of https://github.com/axmolengine/axmol.git
change time of initialization
This commit is contained in:
parent
8e3eb8580f
commit
4806ef5c6f
|
@ -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);
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue