protected function _onEnterState(Transition $transition)
{
//echo '_onEnterState: ' . $transition . PHP_EOL;
$state = $transition->getStateTo()->getName();
switch ($state) {
case "posing":
case "fighting":
case "resqueing":
case "superhero":
case "normal":
echo "{$state} ";
$this->updateStatistics($state);
break;
default:
break;
}
}