Modify RewardDialog constructor to take scoreProperty:Property<number>, so that one instance can be reused. This is important for PhET-iO instrumentation of games, like the "Solve It!" game in equality-explorer https://github.com/phetsims/equality-explorer/issues/192. The alternative is to use PhetioCapsule.
Modify
RewardDialog
constructor to takescoreProperty:Property<number>
, so that one instance can be reused. This is important for PhET-iO instrumentation of games, like the "Solve It!" game in equality-explorer https://github.com/phetsims/equality-explorer/issues/192. The alternative is to use PhetioCapsule.