- PopCorrectMole.anim => plays when you hit a correct mole
- PopWrongMole.anim => plays when you hit a distractor mole, or when a correct mole disappear via its timer
Modification of the diskMole prefab :
- Addition of a ImagePlaceholder game object
- Adding checkmark-correct and checkmark-wrong as child of ImagePlaceholder.
Modification of the diskMole.cs script to be able to play the new animations : not much has really changed in the code, beside some minor changes in the name of animations to play, depending on the mole state :
Here is an exemple of what PopCorrectMole.anim and PopWrongMole.anim will look like :
This animation plays when :
- Player succesfully click on a correct mole before it disappears ;
This animation plays when :
- Player misses a correct mole (it disappears via its timer) ;
- Player clicks on a distractor mole ;
Addition of two new animations :
Modification of the diskMole prefab :
Modification of the diskMole.cs script to be able to play the new animations : not much has really changed in the code, beside some minor changes in the name of animations to play, depending on the mole state :
Here is an exemple of what PopCorrectMole.anim and PopWrongMole.anim will look like :
This animation plays when :
This animation plays when :
See the old conversation about this issue here :
221