title: Pause a CCNode for a while time
body: <p>I want to Pause a CCNode for a while and after that resume it again.
  when I use below code separately they work but when I want to resume this CCNode for a specific time when a button clicked it dose't work and occur an Assertion failed(that is:    pElement->paused == bPaused ).</p>
  
  <pre><code>//for pausing
  this-&gt;pauseSchedulerAndActions();
  
  //for resuming
  this-&gt;resumeSchedulerAndActions();
  </code></pre>
  
  <p>I use below codes:</p>
  
  <pre><code>    #define TIME_FOR_RESUME  5.0f
      //function that called when my button click
      void myClass::myFunc(CCObject * pSender)
     {
      this-&gt;pauseSchedulerAndActions();
      this-&gt;scheduleOnce(schedule_selector(myClass::myResumeFunction), TIME_FOR_RESUME);
      }
  
     void myClass::myResumeFunction(float dt)
     {
      this-&gt;resumeSchedulerAndActions();
     }
  </code></pre>