1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

schedule_selectorの変更点

Last updated at Posted at 2013-12-17

schedule_selectorは下記のようにfloatを引数にとるメソッドを指定する必要があります。

typedef void (Object::*SEL_SCHEDULE)(float);

#define schedule_selector(_SELECTOR) static_cast<cocos2d::SEL_SCHEDULE>(&_SELECTOR)

例えば、このような感じになります。

void showCountdown(float fDelta);

    // カウントダウン開始.
    this->scheduleOnce(schedule_selector(GameScene::showCountdown), 1);
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?