| 1017 | } |
| 1018 | |
| 1019 | void PlayerObject::toggleMini(bool active) |
| 1020 | { |
| 1021 | _mini = active; |
| 1022 | _vehicleSize = active ? 0.6f : 1.f; |
| 1023 | auto ac = ScaleTo::create(0.5f, active ? 0.6f : 1.f); |
| 1024 | auto bounce = EaseBounceOut::create(ac); |
| 1025 | this->runAction(bounce); |
| 1026 | } |
| 1027 | |
| 1028 | void PlayerObject::pushButton() |
| 1029 | { |
no test coverage detected