Install Playeranimator Version | 099 Or Later Better

Here's a simple example of how this feature could be implemented in a Unity project: