I'm developing my first Unity game, involving a frog jumping on lilypads. As the frog leaves a lilypad, I would like it to sink beneath the surface. Here's what I have currently, with the lilypads as static tiles:
What would be the easiest way to do this? I know how to make an animation, but I'm not sure how to get each
LilypadTile to be aware of the player's position, and trigger the animation/state change as the player leaves the
LilypadTile. I don't even think
Tiles have an
Update() function, so am I approaching this correctly? Should I instead make my lilypads be
Are there any good written references or example documentation regarding common Unity workflows/organization? I'm tired of watching long YouTube videos for each piece of information I need.