Ejemplo n.º 1
0
 bool onAnimate(const SkAnimTimer& timer) override {
     if (timer.isStopped()) {
         fRY = 0;
     } else {
         fRY = timer.scaled(90, 360);
     }
     return true;
 }
 bool onAnimate(const SkAnimTimer& timer) override {
     if (timer.isStopped()) {
         this->resetBounce();
     } else if (timer.isRunning()) {
         this->bounceMe();
     }
     return true;
 }